diff options
Diffstat (limited to 'src/setup/gnunet-setup-datastore-plugins.c')
-rw-r--r-- | src/setup/gnunet-setup-datastore-plugins.c | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/src/setup/gnunet-setup-datastore-plugins.c b/src/setup/gnunet-setup-datastore-plugins.c index e7f448e6..7d55ba1e 100644 --- a/src/setup/gnunet-setup-datastore-plugins.c +++ b/src/setup/gnunet-setup-datastore-plugins.c | |||
@@ -33,44 +33,39 @@ | |||
33 | * @param name name of the plugin to check | 33 | * @param name name of the plugin to check |
34 | */ | 34 | */ |
35 | static void | 35 | static void |
36 | test_plugin (GtkWidget *widget, | 36 | test_plugin (GtkWidget * widget, const char *name) |
37 | const char *name) | ||
38 | { | 37 | { |
39 | if (GNUNET_YES == | 38 | if (GNUNET_YES == GNUNET_PLUGIN_test (name)) |
40 | GNUNET_PLUGIN_test (name)) | 39 | { |
41 | { | 40 | gtk_widget_set_sensitive (widget, TRUE); |
42 | gtk_widget_set_sensitive (widget, | 41 | } |
43 | TRUE); | ||
44 | } | ||
45 | else | 42 | else |
46 | { | 43 | { |
47 | gtk_widget_set_sensitive (widget, | 44 | gtk_widget_set_sensitive (widget, FALSE); |
48 | FALSE); | 45 | gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), FALSE); |
49 | gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), | 46 | } |
50 | FALSE); | ||
51 | } | ||
52 | } | 47 | } |
53 | 48 | ||
54 | 49 | ||
55 | void | 50 | void |
56 | GNUNET_setup_fs_datastore_sqlite_radiobutton_realize_cb (GtkWidget *widget, | 51 | GNUNET_setup_fs_datastore_sqlite_radiobutton_realize_cb (GtkWidget * widget, |
57 | gpointer user_data) | 52 | gpointer user_data) |
58 | { | 53 | { |
59 | test_plugin (widget, "libgnunet_plugin_datastore_sqlite"); | 54 | test_plugin (widget, "libgnunet_plugin_datastore_sqlite"); |
60 | } | 55 | } |
61 | 56 | ||
62 | 57 | ||
63 | void | 58 | void |
64 | GNUNET_setup_fs_datastore_mysql_radiobutton_realize_cb (GtkWidget *widget, | 59 | GNUNET_setup_fs_datastore_mysql_radiobutton_realize_cb (GtkWidget * widget, |
65 | gpointer user_data) | 60 | gpointer user_data) |
66 | { | 61 | { |
67 | test_plugin (widget, "libgnunet_plugin_datastore_mysql"); | 62 | test_plugin (widget, "libgnunet_plugin_datastore_mysql"); |
68 | } | 63 | } |
69 | 64 | ||
70 | 65 | ||
71 | void | 66 | void |
72 | GNUNET_setup_fs_datastore_postgres_radiobutton_realize_cb (GtkWidget *widget, | 67 | GNUNET_setup_fs_datastore_postgres_radiobutton_realize_cb (GtkWidget * widget, |
73 | gpointer user_data) | 68 | gpointer user_data) |
74 | { | 69 | { |
75 | test_plugin (widget, "libgnunet_plugin_datastore_postgres"); | 70 | test_plugin (widget, "libgnunet_plugin_datastore_postgres"); |
76 | } | 71 | } |
@@ -78,4 +73,3 @@ GNUNET_setup_fs_datastore_postgres_radiobutton_realize_cb (GtkWidget *widget, | |||
78 | 73 | ||
79 | 74 | ||
80 | /* end of gnunet-setup-datastore-plugins.c */ | 75 | /* end of gnunet-setup-datastore-plugins.c */ |
81 | |||