diff options
author | Moon <moon@140774ce-b5e7-0310-ab8b-a85725594a96> | 2008-06-30 18:19:09 +0000 |
---|---|---|
committer | Moon <moon@140774ce-b5e7-0310-ab8b-a85725594a96> | 2008-06-30 18:19:09 +0000 |
commit | b2c61ac68e7bb31b1464d63c2b81eeb52146fa77 (patch) | |
tree | 413c559cfc7fba36231bd9b82f1a10a4d18353d9 /src/common/helper.c | |
parent | 0875c535495b0948f58a2b6c14388492fcd6053f (diff) | |
download | gnunet-gtk-b2c61ac68e7bb31b1464d63c2b81eeb52146fa77.tar.gz gnunet-gtk-b2c61ac68e7bb31b1464d63c2b81eeb52146fa77.zip |
new status when gnunetd is started -- fixes use case without the stats
plugin being loaded
Diffstat (limited to 'src/common/helper.c')
-rw-r--r-- | src/common/helper.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/common/helper.c b/src/common/helper.c index d8722bc5..2a06bf26 100644 --- a/src/common/helper.c +++ b/src/common/helper.c | |||
@@ -545,6 +545,23 @@ GNUNET_GTK_display_daemon_status (GNUNET_GTK_STATUS status, | |||
545 | 545 | ||
546 | iconSet = gtk_icon_set_new (); | 546 | iconSet = gtk_icon_set_new (); |
547 | iconPath = | 547 | iconPath = |
548 | g_strconcat (finalPath, "gnunet-gtk-status-connected.svg", NULL); | ||
549 | gtk_icon_source_set_filename (iconSource, iconPath); | ||
550 | g_free (iconPath); | ||
551 | gtk_icon_set_add_source (iconSet, iconSource); | ||
552 | iconPath = g_build_filename (instDir, "..", "gnunet-gtk", | ||
553 | "gnunet-gtk-status-connected.png", NULL); | ||
554 | gtk_icon_source_set_filename (iconSource, iconPath); | ||
555 | g_free (iconPath); | ||
556 | gtk_icon_source_set_size_wildcarded (iconSource, FALSE); | ||
557 | gtk_icon_set_add_source (iconSet, iconSource); | ||
558 | |||
559 | gtk_icon_factory_add (GNUNET_GTK_get_iconFactory (), | ||
560 | "gnunet-gtk-status-connected", iconSet); | ||
561 | gtk_icon_set_unref (iconSet); | ||
562 | |||
563 | iconSet = gtk_icon_set_new (); | ||
564 | iconPath = | ||
548 | g_strconcat (finalPath, "gnunet-gtk-status-unknown.svg", NULL); | 565 | g_strconcat (finalPath, "gnunet-gtk-status-unknown.svg", NULL); |
549 | gtk_icon_source_set_filename (iconSource, iconPath); | 566 | gtk_icon_source_set_filename (iconSource, iconPath); |
550 | g_free (iconPath); | 567 | g_free (iconPath); |
@@ -650,6 +667,18 @@ GNUNET_GTK_display_daemon_status (GNUNET_GTK_STATUS status, | |||
650 | "gnunet-gtk-status-disconnected"); | 667 | "gnunet-gtk-status-disconnected"); |
651 | #endif | 668 | #endif |
652 | break; | 669 | break; |
670 | |||
671 | case GNUNET_GTK_STATUS_DAEMONUP : | ||
672 | gtk_label_set_markup (GTK_LABEL (statusConnexionsLabel), | ||
673 | _("Daemon running")); | ||
674 | gtk_image_set_from_stock (GTK_IMAGE (statusConnexionsPic), | ||
675 | GTK_STOCK_EXECUTE, 1); | ||
676 | #if GTK_CHECK_VERSION (2,10,0) | ||
677 | gtk_status_icon_set_tooltip (trayIcon, | ||
678 | _("GNUnet - Daemon running")); | ||
679 | gtk_status_icon_set_from_icon_name (trayIcon, "gnunet-gtk"); | ||
680 | #endif | ||
681 | break; | ||
653 | 682 | ||
654 | case GNUNET_GTK_STATUS_NODAEMON : | 683 | case GNUNET_GTK_STATUS_NODAEMON : |
655 | gtk_label_set_markup (GTK_LABEL (statusConnexionsLabel), | 684 | gtk_label_set_markup (GTK_LABEL (statusConnexionsLabel), |