aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-18 16:40:45 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-18 16:40:45 +0000
commitde22e69ab278077e6a257f915b8695dc4dc2cac8 (patch)
tree842d3d1878f4431d8bb53501449c0d44baffd6e7
parentbff113a36963cf2e56f6df01076943f585ef76d0 (diff)
downloadgnunet-gtk-de22e69ab278077e6a257f915b8695dc4dc2cac8.tar.gz
gnunet-gtk-de22e69ab278077e6a257f915b8695dc4dc2cac8.zip
-allow shutdown via tray, update to stats name based on changes in main datastore code
-rw-r--r--src/statistics/gnunet-statistics-gtk.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/statistics/gnunet-statistics-gtk.c b/src/statistics/gnunet-statistics-gtk.c
index 54feb943..e2115615 100644
--- a/src/statistics/gnunet-statistics-gtk.c
+++ b/src/statistics/gnunet-statistics-gtk.c
@@ -87,7 +87,7 @@ static const struct PlotInfo traffic_data[] =
87static const struct PlotInfo storage_data[] = 87static const struct PlotInfo storage_data[] =
88 { 88 {
89 { "datastore", "# quota", "datastore capacity", "blue" }, 89 { "datastore", "# quota", "datastore capacity", "blue" },
90 { "datastore", "# bytes stored", "datastore utilization", "yellow" }, 90 { "datastore", "# utilization by current datastore", "datastore utilization", "yellow" },
91 { "datastore", "# cache size", "reservation for datastore cache", "green" }, 91 { "datastore", "# cache size", "reservation for datastore cache", "green" },
92 { "datastore", "# bytes purged (low-priority)", "discarded due to limited space", "red" }, 92 { "datastore", "# bytes purged (low-priority)", "discarded due to limited space", "red" },
93 { NULL, NULL, NULL} 93 { NULL, NULL, NULL}
@@ -233,6 +233,15 @@ GNUNET_STATISTICS_GTK_quit_cb (GObject * object, gpointer user_data)
233 GNUNET_SCHEDULER_add_now (&shutdown_task, NULL); 233 GNUNET_SCHEDULER_add_now (&shutdown_task, NULL);
234} 234}
235 235
236/**
237 * Callback invoked if the application is supposed to exit from the tray.
238 */
239void
240GNUNET_GTK_quit_cb (GObject * object, gpointer user_data)
241{
242 GNUNET_STATISTICS_GTK_quit_cb (object, user_data);
243}
244
236 245
237/** 246/**
238 * Actual main function run right after GNUnet's scheduler 247 * Actual main function run right after GNUnet's scheduler