diff options
Diffstat (limited to 'src/plugins/stats/statistics.c')
-rw-r--r-- | src/plugins/stats/statistics.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/plugins/stats/statistics.c b/src/plugins/stats/statistics.c index e253fa40..2ed6da3f 100644 --- a/src/plugins/stats/statistics.c +++ b/src/plugins/stats/statistics.c | |||
@@ -433,12 +433,23 @@ void | |||
433 | init_stats (struct GNUNET_GE_Context *ectx, | 433 | init_stats (struct GNUNET_GE_Context *ectx, |
434 | struct GNUNET_GC_Configuration *cfg) | 434 | struct GNUNET_GC_Configuration *cfg) |
435 | { | 435 | { |
436 | GtkWidget *statusConnexionsBox; | ||
437 | GtkWidget *statusConnexionsLabel; | ||
436 | GtkWidget *sys_box; | 438 | GtkWidget *sys_box; |
437 | GtkWidget *label; | 439 | GtkWidget *label; |
438 | GtkWidget *notebook; | 440 | GtkWidget *notebook; |
439 | ProcConfig config; | 441 | ProcConfig config; |
440 | int i; | 442 | int i; |
441 | 443 | ||
444 | statusConnexionsLabel = | ||
445 | glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), | ||
446 | "statusConnexionsLabel"); | ||
447 | gtk_label_set_width_chars (GTK_LABEL(statusConnexionsLabel), | ||
448 | g_utf8_strlen (_("Connected to %Lu peers"), 40) - 1); | ||
449 | statusConnexionsBox = | ||
450 | glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), | ||
451 | "statusConnexionsBox"); | ||
452 | gtk_widget_set_sensitive (statusConnexionsBox, TRUE); | ||
442 | GNUNET_GC_get_configuration_value_number (cfg, | 453 | GNUNET_GC_get_configuration_value_number (cfg, |
443 | "GNUNET-GTK", | 454 | "GNUNET-GTK", |
444 | "STATS-INTERVAL", | 455 | "STATS-INTERVAL", |
@@ -478,5 +489,4 @@ done_stats () | |||
478 | done_functions (); | 489 | done_functions (); |
479 | } | 490 | } |
480 | 491 | ||
481 | |||
482 | /* end of statistics.c */ | 492 | /* end of statistics.c */ |