diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-18 16:40:45 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-18 16:40:45 +0000 |
commit | de22e69ab278077e6a257f915b8695dc4dc2cac8 (patch) | |
tree | 842d3d1878f4431d8bb53501449c0d44baffd6e7 | |
parent | bff113a36963cf2e56f6df01076943f585ef76d0 (diff) | |
download | gnunet-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.c | 11 |
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[] = | |||
87 | static const struct PlotInfo storage_data[] = | 87 | static 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 | */ | ||
239 | void | ||
240 | GNUNET_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 |