** Fix for bug #514299

2008-09-15  Milan Crha  <mcrha@redhat.com>

	** Fix for bug #514299

	* mail-notification.c: (new_notify_status):
	Connect to signals only once, when creating new status icon.


svn path=/trunk/; revision=36338
This commit is contained in:
Milan Crha
2008-09-15 17:40:29 +00:00
committed by Milan Crha
parent e7a881127e
commit 75bfbd29ee
2 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2008-09-15 Milan Crha <mcrha@redhat.com>
** Fix for bug #514299
* mail-notification.c: (new_notify_status):
Connect to signals only once, when creating new status icon.
2008-08-12 Bharath Acharya <abharath@novell.com>
* Makefile.am: Have a check for OS_WIN32 and handle the schema data

View File

@ -493,13 +493,15 @@ new_notify_status (EMEventTargetFolder *t)
g_free (msg);
#ifdef HAVE_LIBNOTIFY
g_signal_connect (G_OBJECT (status_icon), "activate", G_CALLBACK (icon_activated), notify);
#else
g_signal_connect (G_OBJECT (status_icon), "activate", G_CALLBACK (icon_activated), NULL);
#endif
if (new_icon) {
#ifdef HAVE_LIBNOTIFY
g_signal_connect (G_OBJECT (status_icon), "activate", G_CALLBACK (icon_activated), notify);
#else
g_signal_connect (G_OBJECT (status_icon), "activate", G_CALLBACK (icon_activated), NULL);
#endif
g_signal_connect (G_OBJECT (status_icon), "popup-menu", G_CALLBACK (popup_menu_status), NULL);
g_signal_connect (G_OBJECT (status_icon), "popup-menu", G_CALLBACK (popup_menu_status), NULL);
}
}
static void