aboutsummaryrefslogtreecommitdiff
path: root/src/setup/gnunet-setup-transport-plugins.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup/gnunet-setup-transport-plugins.c')
-rw-r--r--src/setup/gnunet-setup-transport-plugins.c48
1 files changed, 21 insertions, 27 deletions
diff --git a/src/setup/gnunet-setup-transport-plugins.c b/src/setup/gnunet-setup-transport-plugins.c
index 52fa9dea..f17b13d0 100644
--- a/src/setup/gnunet-setup-transport-plugins.c
+++ b/src/setup/gnunet-setup-transport-plugins.c
@@ -34,72 +34,66 @@
34 * @param name name of the plugin to check 34 * @param name name of the plugin to check
35 */ 35 */
36static void 36static void
37test_plugin (GtkWidget *widget, 37test_plugin (GtkWidget * widget, const char *name)
38 const char *name)
39{ 38{
40 if (GNUNET_YES == 39 if (GNUNET_YES == GNUNET_PLUGIN_test (name))
41 GNUNET_PLUGIN_test (name)) 40 {
42 { 41 gtk_widget_set_sensitive (widget, TRUE);
43 gtk_widget_set_sensitive (widget, 42 }
44 TRUE);
45 }
46 else 43 else
47 { 44 {
48 gtk_widget_set_sensitive (widget, 45 gtk_widget_set_sensitive (widget, FALSE);
49 FALSE); 46 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), FALSE);
50 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), 47 }
51 FALSE);
52 }
53} 48}
54 49
55 50
56 51
57void 52void
58GNUNET_setup_transport_tcp_checkbutton_realize_cb (GtkWidget *widget, 53GNUNET_setup_transport_tcp_checkbutton_realize_cb (GtkWidget * widget,
59 gpointer user_data) 54 gpointer user_data)
60{ 55{
61 test_plugin (widget, "libgnunet_plugin_transport_tcp"); 56 test_plugin (widget, "libgnunet_plugin_transport_tcp");
62} 57}
63 58
64 59
65void 60void
66GNUNET_setup_transport_udp_checkbutton_realize_cb (GtkWidget *widget, 61GNUNET_setup_transport_udp_checkbutton_realize_cb (GtkWidget * widget,
67 gpointer user_data) 62 gpointer user_data)
68{ 63{
69 test_plugin (widget, "libgnunet_plugin_transport_udp"); 64 test_plugin (widget, "libgnunet_plugin_transport_udp");
70} 65}
71 66
72 67
73void 68void
74GNUNET_setup_transport_http_checkbutton_realize_cb (GtkWidget *widget, 69GNUNET_setup_transport_http_checkbutton_realize_cb (GtkWidget * widget,
75 gpointer user_data) 70 gpointer user_data)
76{ 71{
77 test_plugin (widget, "libgnunet_plugin_transport_http"); 72 test_plugin (widget, "libgnunet_plugin_transport_http");
78} 73}
79 74
80 75
81void 76void
82GNUNET_setup_transport_https_checkbutton_realize_cb (GtkWidget *widget, 77GNUNET_setup_transport_https_checkbutton_realize_cb (GtkWidget * widget,
83 gpointer user_data) 78 gpointer user_data)
84{ 79{
85 test_plugin (widget, "libgnunet_plugin_transport_https"); 80 test_plugin (widget, "libgnunet_plugin_transport_https");
86} 81}
87 82
88 83
89void 84void
90GNUNET_setup_transport_dv_checkbutton_realize_cb (GtkWidget *widget, 85GNUNET_setup_transport_dv_checkbutton_realize_cb (GtkWidget * widget,
91 gpointer user_data) 86 gpointer user_data)
92{ 87{
93 test_plugin (widget, "libgnunet_plugin_transport_dv"); 88 test_plugin (widget, "libgnunet_plugin_transport_dv");
94} 89}
95 90
96 91
97void 92void
98GNUNET_setup_transport_wlan_checkbutton_realize_cb (GtkWidget *widget, 93GNUNET_setup_transport_wlan_checkbutton_realize_cb (GtkWidget * widget,
99 gpointer user_data) 94 gpointer user_data)
100{ 95{
101 test_plugin (widget, "libgnunet_plugin_transport_wlan"); 96 test_plugin (widget, "libgnunet_plugin_transport_wlan");
102} 97}
103 98
104/* end of gnunet-setup-transport-plugins.c */ 99/* end of gnunet-setup-transport-plugins.c */
105