diff options
Diffstat (limited to 'src/setup/gnunet-setup-datacache-plugins.c')
-rw-r--r-- | src/setup/gnunet-setup-datacache-plugins.c | 36 |
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 | */ |
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_fs_datacache_sqlite_radiobutton_realize_cb (GtkWidget *widget, | 53 | GNUNET_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 | ||
65 | void | 60 | void |
66 | GNUNET_setup_fs_datacache_mysql_radiobutton_realize_cb (GtkWidget *widget, | 61 | GNUNET_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 | ||
73 | void | 68 | void |
74 | GNUNET_setup_fs_datacache_postgres_radiobutton_realize_cb (GtkWidget *widget, | 69 | GNUNET_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 | |||