diff options
Diffstat (limited to 'src/statistics/gnunet-statistics-gtk.c')
-rw-r--r-- | src/statistics/gnunet-statistics-gtk.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/statistics/gnunet-statistics-gtk.c b/src/statistics/gnunet-statistics-gtk.c index 57beed7f..0eef7e44 100644 --- a/src/statistics/gnunet-statistics-gtk.c +++ b/src/statistics/gnunet-statistics-gtk.c | |||
@@ -198,15 +198,13 @@ create_plot (const char *box_name, const struct PlotInfo *info) | |||
198 | } | 198 | } |
199 | 199 | ||
200 | 200 | ||
201 | |||
202 | /** | 201 | /** |
203 | * Task run on shutdown. | 202 | * Task run on shutdown. |
204 | * | 203 | * |
205 | * @param cls unused | 204 | * @param cls unused |
206 | * @param tc scheduler context, unused | ||
207 | */ | 205 | */ |
208 | static void | 206 | static void |
209 | shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 207 | shutdown_task (void *cls) |
210 | { | 208 | { |
211 | GNUNET_GTK_tray_icon_destroy (); | 209 | GNUNET_GTK_tray_icon_destroy (); |
212 | GNUNET_GTK_main_loop_quit (ml); | 210 | GNUNET_GTK_main_loop_quit (ml); |
@@ -280,8 +278,7 @@ run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
280 | gtk_widget_show (main_window); | 278 | gtk_widget_show (main_window); |
281 | gtk_window_present (GTK_WINDOW (main_window)); | 279 | gtk_window_present (GTK_WINDOW (main_window)); |
282 | } | 280 | } |
283 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, | 281 | GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL); |
284 | &shutdown_task, NULL); | ||
285 | } | 282 | } |
286 | 283 | ||
287 | 284 | ||