diff options
author | Milan Crha <mcrha@redhat.com> | 2008-09-16 01:40:29 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2008-09-16 01:40:29 +0800 |
commit | 75bfbd29eeaec8d9949ffb7d6f2012af450e1ee0 (patch) | |
tree | ba484cce43ce7432a25f08c1ce34de4ad10ec544 /plugins/mail-notification/mail-notification.c | |
parent | e7a881127e99990b047dbc43675327785773ff8d (diff) | |
download | gsoc2013-evolution-75bfbd29eeaec8d9949ffb7d6f2012af450e1ee0.tar.gz gsoc2013-evolution-75bfbd29eeaec8d9949ffb7d6f2012af450e1ee0.tar.zst gsoc2013-evolution-75bfbd29eeaec8d9949ffb7d6f2012af450e1ee0.zip |
** 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
Diffstat (limited to 'plugins/mail-notification/mail-notification.c')
-rw-r--r-- | plugins/mail-notification/mail-notification.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c index 9826f5a06d..b568b0061d 100644 --- a/plugins/mail-notification/mail-notification.c +++ b/plugins/mail-notification/mail-notification.c @@ -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 |