diff options
Diffstat (limited to 'src/setup/gnunet-setup.c')
-rw-r--r-- | src/setup/gnunet-setup.c | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/src/setup/gnunet-setup.c b/src/setup/gnunet-setup.c index e83f354e..92f72589 100644 --- a/src/setup/gnunet-setup.c +++ b/src/setup/gnunet-setup.c | |||
@@ -93,7 +93,7 @@ help_click_callback (GtkWidget * widget, GdkEventButton * event, | |||
93 | 93 | ||
94 | 94 | ||
95 | /** | 95 | /** |
96 | * Change the visibility of widgets according to the | 96 | * Change the visibility of widgets according to the |
97 | * value and visibility specification given. | 97 | * value and visibility specification given. |
98 | * | 98 | * |
99 | * @param os option specification | 99 | * @param os option specification |
@@ -265,15 +265,17 @@ load_options () | |||
265 | } | 265 | } |
266 | i++; | 266 | i++; |
267 | } | 267 | } |
268 | |||
269 | } | 268 | } |
270 | 269 | ||
271 | 270 | ||
272 | /** | 271 | /** |
273 | * Callback invoked if the application is supposed to exit. | 272 | * Actual main method that sets up the configuration window. |
273 | * | ||
274 | * @param cls the main loop handle | ||
275 | * @param tc scheduler context | ||
274 | */ | 276 | */ |
275 | void | 277 | static void |
276 | GNUNET_SETUP_quit_cb (GObject * object, gpointer user_data) | 278 | cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
277 | { | 279 | { |
278 | struct GNUNET_CONFIGURATION_Handle *cfgDefault; | 280 | struct GNUNET_CONFIGURATION_Handle *cfgDefault; |
279 | 281 | ||
@@ -295,6 +297,17 @@ GNUNET_SETUP_quit_cb (GObject * object, gpointer user_data) | |||
295 | 297 | ||
296 | 298 | ||
297 | /** | 299 | /** |
300 | * Callback invoked if the application is supposed to exit. | ||
301 | */ | ||
302 | void | ||
303 | GNUNET_SETUP_quit_cb (GObject * object, gpointer user_data) | ||
304 | { | ||
305 | GNUNET_SCHEDULER_add_with_priority (GNUNET_SCHEDULER_PRIORITY_IDLE, | ||
306 | &cleanup_task, NULL); | ||
307 | } | ||
308 | |||
309 | |||
310 | /** | ||
298 | * Actual main method that sets up the configuration window. | 311 | * Actual main method that sets up the configuration window. |
299 | * | 312 | * |
300 | * @param cls the main loop handle | 313 | * @param cls the main loop handle |
@@ -303,9 +316,9 @@ GNUNET_SETUP_quit_cb (GObject * object, gpointer user_data) | |||
303 | static void | 316 | static void |
304 | run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 317 | run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
305 | { | 318 | { |
306 | ml = cls; | ||
307 | GtkWidget *main_window; | 319 | GtkWidget *main_window; |
308 | 320 | ||
321 | ml = cls; | ||
309 | cfg = GNUNET_CONFIGURATION_create (); | 322 | cfg = GNUNET_CONFIGURATION_create (); |
310 | (void) GNUNET_CONFIGURATION_load (cfg, cfgName); | 323 | (void) GNUNET_CONFIGURATION_load (cfg, cfgName); |
311 | main_window = GTK_WIDGET (GNUNET_SETUP_get_object ("GNUNET_setup_dialog")); | 324 | main_window = GTK_WIDGET (GNUNET_SETUP_get_object ("GNUNET_setup_dialog")); |