aboutsummaryrefslogtreecommitdiff
path: root/src/statistics
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-11-27 10:39:08 +0100
committerChristian Grothoff <christian@grothoff.org>2016-11-27 10:39:08 +0100
commite027b29ed6ce6eb04896605ccd727d4610986d67 (patch)
tree021baa5773d528c6e9904543f20979856c89e55d /src/statistics
parentc840c86c74538679db6545a169a09599bda94533 (diff)
downloadgnunet-gtk-e027b29ed6ce6eb04896605ccd727d4610986d67.tar.gz
gnunet-gtk-e027b29ed6ce6eb04896605ccd727d4610986d67.zip
eliminate tray icon functionality that was deprecated in Gtk
Diffstat (limited to 'src/statistics')
-rw-r--r--src/statistics/gnunet-statistics-gtk.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/statistics/gnunet-statistics-gtk.c b/src/statistics/gnunet-statistics-gtk.c
index 79d2a9a2..a2b3a71c 100644
--- a/src/statistics/gnunet-statistics-gtk.c
+++ b/src/statistics/gnunet-statistics-gtk.c
@@ -109,11 +109,6 @@ static const struct PlotInfo storage_data[] = {
109static struct GNUNET_GTK_MainLoop *ml; 109static struct GNUNET_GTK_MainLoop *ml;
110 110
111/** 111/**
112 * Should gnunet-peerinfo-gtk start in tray mode?
113 */
114static int tray_only;
115
116/**
117 * Handle to statistics subsystem. 112 * Handle to statistics subsystem.
118 */ 113 */
119static struct GNUNET_STATISTICS_Handle *statistics; 114static struct GNUNET_STATISTICS_Handle *statistics;
@@ -222,7 +217,6 @@ create_plot (const char *box_name,
222static void 217static void
223shutdown_task (void *cls) 218shutdown_task (void *cls)
224{ 219{
225 GNUNET_GTK_tray_icon_destroy ();
226 GNUNET_GTK_main_loop_quit (ml); 220 GNUNET_GTK_main_loop_quit (ml);
227 ml = NULL; 221 ml = NULL;
228 GNUNET_STATISTICS_destroy (statistics, 222 GNUNET_STATISTICS_destroy (statistics,
@@ -277,12 +271,6 @@ run (void *cls)
277 main_window = GNUNET_GTK_plug_me ("GNUNET_STATISTICS_GTK_PLUG", 271 main_window = GNUNET_GTK_plug_me ("GNUNET_STATISTICS_GTK_PLUG",
278 main_window); 272 main_window);
279 gtk_window_maximize (GTK_WINDOW (main_window)); 273 gtk_window_maximize (GTK_WINDOW (main_window));
280 if (NULL == getenv ("GNUNET_STATISTICS_GTK_PLUG"))
281 GNUNET_GTK_tray_icon_create (ml,
282 GTK_WINDOW (main_window),
283 "gnunet-gtk" /* FIXME: different icon? */,
284 "gnunet-statistics-gtk");
285
286 create_plot ("GNUNET_STATISTICS_GTK_connectivity_box", 274 create_plot ("GNUNET_STATISTICS_GTK_connectivity_box",
287 connection_data); 275 connection_data);
288 create_plot ("GNUNET_STATISTICS_GTK_traffic_box", 276 create_plot ("GNUNET_STATISTICS_GTK_traffic_box",
@@ -291,11 +279,8 @@ run (void *cls)
291 storage_data); 279 storage_data);
292 280
293 /* make GUI visible */ 281 /* make GUI visible */
294 if (! tray_only) 282 gtk_widget_show (main_window);
295 { 283 gtk_window_present (GTK_WINDOW (main_window));
296 gtk_widget_show (main_window);
297 gtk_window_present (GTK_WINDOW (main_window));
298 }
299 GNUNET_SCHEDULER_add_shutdown (&shutdown_task, 284 GNUNET_SCHEDULER_add_shutdown (&shutdown_task,
300 NULL); 285 NULL);
301} 286}
@@ -306,9 +291,6 @@ main (int argc,
306 char *const *argv) 291 char *const *argv)
307{ 292{
308 static struct GNUNET_GETOPT_CommandLineOption options[] = { 293 static struct GNUNET_GETOPT_CommandLineOption options[] = {
309 {'t', "tray", NULL,
310 gettext_noop ("start in tray mode"), 0,
311 &GNUNET_GETOPT_set_one, &tray_only},
312 GNUNET_GETOPT_OPTION_END 294 GNUNET_GETOPT_OPTION_END
313 }; 295 };
314 296