evolution r36338 - trunk/plugins/mail-notification
- From: mcrha svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r36338 - trunk/plugins/mail-notification
- Date: Mon, 15 Sep 2008 17:40:29 +0000 (UTC)
Author: mcrha
Date: Mon Sep 15 17:40:29 2008
New Revision: 36338
URL: http://svn.gnome.org/viewvc/evolution?rev=36338&view=rev
Log:
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.
Modified:
trunk/plugins/mail-notification/ChangeLog
trunk/plugins/mail-notification/mail-notification.c
Modified: trunk/plugins/mail-notification/mail-notification.c
==============================================================================
--- trunk/plugins/mail-notification/mail-notification.c (original)
+++ trunk/plugins/mail-notification/mail-notification.c Mon Sep 15 17:40:29 2008
@@ -493,13 +493,15 @@
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]