Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fun.git;a=commitdiff;h=4559581e9e1d56374bf11df03f6a34c73c508858

commit 4559581e9e1d56374bf11df03f6a34c73c508858
Author: Priyank <[EMAIL PROTECTED]>
Date:   Thu Dec 20 14:55:14 2007 +0530

fun-ui: notify_init() should be called by fun_tooltip_new() and not 
fun_ui_init()

diff --git a/src/fun-tooltip.c b/src/fun-tooltip.c
index 21563bb..e6119ce 100644
--- a/src/fun-tooltip.c
+++ b/src/fun-tooltip.c
@@ -28,6 +28,7 @@ static NotifyNotification *tooltip = NULL;

void fun_tooltip_new (GtkStatusIcon *icon)
{
+       notify_init ("fun");
tooltip = notify_notification_new ("Frugalware Update Notifier",
NULL,
"fun",
diff --git a/src/fun-ui.c b/src/fun-ui.c
index 8737078..543ece8 100644
--- a/src/fun-ui.c
+++ b/src/fun-ui.c
@@ -381,14 +381,13 @@ fun_ui_init (void)
"to reconnect to the daemon every 45 seconds. \n\nYou can start the "
"update notifier daemon by running the following command as root: \n\n"
"'service fun start'");
-       notify_init ("fun");
fun_systray_create ();
fun_main_window_init ();
fun_config_dialog_init ();

if (fun_dbus_perform_service (TEST_SERVICE, NULL, NULL, NULL) == FALSE)
{
-               g_print (_("Failed to connect to the fun daemon\n"));
+               g_error (_("Failed to connect to the fun daemon\n"));
//fun_tooltip_set_text2 (tooltip, _("Not connected to fun daemon"), FALSE);
connected = FALSE;
/* set the status */
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to