aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/stats/functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/stats/functions.c')
-rw-r--r--src/plugins/stats/functions.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/plugins/stats/functions.c b/src/plugins/stats/functions.c
index b4fbda9c..eb897abf 100644
--- a/src/plugins/stats/functions.c
+++ b/src/plugins/stats/functions.c
@@ -533,6 +533,24 @@ updateDaemonStatus (void *cls)
533 533
534 iconSet = gtk_icon_set_new (); 534 iconSet = gtk_icon_set_new ();
535 iconPath = 535 iconPath =
536 g_strconcat (finalPath, "gnunet-gtk-status-unknown.svg", NULL);
537 gtk_icon_source_set_filename (iconSource, iconPath);
538 g_free (iconPath);
539 gtk_icon_source_set_size_wildcarded (iconSource, TRUE);
540 gtk_icon_set_add_source (iconSet, iconSource);
541 iconPath =
542 g_strconcat (finalPath, "gnunet-gtk-status-unknown.png", NULL);
543 gtk_icon_source_set_filename (iconSource, iconPath);
544 g_free (iconPath);
545 gtk_icon_source_set_size_wildcarded (iconSource, FALSE);
546 gtk_icon_set_add_source (iconSet, iconSource);
547
548 gtk_icon_factory_add (GNUNET_GTK_get_iconFactory (),
549 "gnunet-gtk-status-unknown", iconSet);
550 gtk_icon_set_unref (iconSet);
551
552 iconSet = gtk_icon_set_new ();
553 iconPath =
536 g_strconcat (finalPath, "gnunet-gtk-status-nodaemon.svg", NULL); 554 g_strconcat (finalPath, "gnunet-gtk-status-nodaemon.svg", NULL);
537 gtk_icon_source_set_filename (iconSource, iconPath); 555 gtk_icon_source_set_filename (iconSource, iconPath);
538 g_free (iconPath); 556 g_free (iconPath);
@@ -591,7 +609,7 @@ updateDaemonStatus (void *cls)
591#if GTK_CHECK_VERSION (2,10,0) 609#if GTK_CHECK_VERSION (2,10,0)
592 gtk_status_icon_set_tooltip (trayIcon, _("Unknown status")); 610 gtk_status_icon_set_tooltip (trayIcon, _("Unknown status"));
593 gtk_status_icon_set_from_stock (trayIcon, 611 gtk_status_icon_set_from_stock (trayIcon,
594 "gnunet-gtk-status-nodaemon"); 612 "gnunet-gtk-status-unknown");
595#endif 613#endif
596 last_status = -1; 614 last_status = -1;
597 } 615 }
@@ -787,6 +805,7 @@ init_functions (struct GNUNET_GE_Context *e,
787 NULL); 805 NULL);
788 GNUNET_cron_add_job (cron, &updateConnectionGoal, 5 * GNUNET_CRON_SECONDS, 806 GNUNET_cron_add_job (cron, &updateConnectionGoal, 5 * GNUNET_CRON_SECONDS,
789 5 * GNUNET_CRON_MINUTES, NULL); 807 5 * GNUNET_CRON_MINUTES, NULL);
808 updateStatValues (NULL);
790} 809}
791 810
792void 811void