aboutsummaryrefslogtreecommitdiff
path: root/src/setup/gnunet-setup-datacache-plugins.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup/gnunet-setup-datacache-plugins.c')
-rw-r--r--src/setup/gnunet-setup-datacache-plugins.c36
1 files changed, 15 insertions, 21 deletions
diff --git a/src/setup/gnunet-setup-datacache-plugins.c b/src/setup/gnunet-setup-datacache-plugins.c
index 4e53f6df..022345d3 100644
--- a/src/setup/gnunet-setup-datacache-plugins.c
+++ b/src/setup/gnunet-setup-datacache-plugins.c
@@ -34,45 +34,40 @@
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_fs_datacache_sqlite_radiobutton_realize_cb (GtkWidget *widget, 53GNUNET_setup_fs_datacache_sqlite_radiobutton_realize_cb (GtkWidget * widget,
59 gpointer user_data) 54 gpointer user_data)
60{ 55{
61 test_plugin (widget, "libgnunet_plugin_datacache_sqlite"); 56 test_plugin (widget, "libgnunet_plugin_datacache_sqlite");
62} 57}
63 58
64 59
65void 60void
66GNUNET_setup_fs_datacache_mysql_radiobutton_realize_cb (GtkWidget *widget, 61GNUNET_setup_fs_datacache_mysql_radiobutton_realize_cb (GtkWidget * widget,
67 gpointer user_data) 62 gpointer user_data)
68{ 63{
69 test_plugin (widget, "libgnunet_plugin_datacache_mysql"); 64 test_plugin (widget, "libgnunet_plugin_datacache_mysql");
70} 65}
71 66
72 67
73void 68void
74GNUNET_setup_fs_datacache_postgres_radiobutton_realize_cb (GtkWidget *widget, 69GNUNET_setup_fs_datacache_postgres_radiobutton_realize_cb (GtkWidget * widget,
75 gpointer user_data) 70 gpointer user_data)
76{ 71{
77 test_plugin (widget, "libgnunet_plugin_datacache_postgres"); 72 test_plugin (widget, "libgnunet_plugin_datacache_postgres");
78} 73}
@@ -80,4 +75,3 @@ GNUNET_setup_fs_datacache_postgres_radiobutton_realize_cb (GtkWidget *widget,
80 75
81 76
82/* end of gnunet-setup-transport-plugins.c */ 77/* end of gnunet-setup-transport-plugins.c */
83