diff options
Diffstat (limited to 'src/setup/gnunet-setup-transport-plugins.c')
-rw-r--r-- | src/setup/gnunet-setup-transport-plugins.c | 48 |
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 | */ |
36 | static void | 36 | static void |
37 | test_plugin (GtkWidget *widget, | 37 | test_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 | ||
57 | void | 52 | void |
58 | GNUNET_setup_transport_tcp_checkbutton_realize_cb (GtkWidget *widget, | 53 | GNUNET_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 | ||
65 | void | 60 | void |
66 | GNUNET_setup_transport_udp_checkbutton_realize_cb (GtkWidget *widget, | 61 | GNUNET_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 | ||
73 | void | 68 | void |
74 | GNUNET_setup_transport_http_checkbutton_realize_cb (GtkWidget *widget, | 69 | GNUNET_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 | ||
81 | void | 76 | void |
82 | GNUNET_setup_transport_https_checkbutton_realize_cb (GtkWidget *widget, | 77 | GNUNET_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 | ||
89 | void | 84 | void |
90 | GNUNET_setup_transport_dv_checkbutton_realize_cb (GtkWidget *widget, | 85 | GNUNET_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 | ||
97 | void | 92 | void |
98 | GNUNET_setup_transport_wlan_checkbutton_realize_cb (GtkWidget *widget, | 93 | GNUNET_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 | |||