[Commits] notification_popup.c 1.1.2.34 1.1.2.35 notification_trayicon.c 1.1.2.40 1.1.2.41

holger at claws-mail.org holger at claws-mail.org
Sun Dec 23 23:35:54 CET 2012


Update of /home/claws-mail/plugins/notification/src
In directory srv:/tmp/cvs-serv2073/src

Modified Files:
      Tag: gtk2
	notification_popup.c notification_trayicon.c 
Log Message:
2012-12-23 [holger]	0.31cvs4

	* src/notification_popup.c
	* src/notification_trayicon.c
		Set desktop-entry hint. Some daemons want to know this,
		and have problems infering it when the window is not shown
		when a popup is requested. 

Index: notification_trayicon.c
===================================================================
RCS file: /home/claws-mail/plugins/notification/src/Attic/notification_trayicon.c,v
retrieving revision 1.1.2.40
retrieving revision 1.1.2.41
diff -u -d -r1.1.2.40 -r1.1.2.41
--- notification_trayicon.c	8 Sep 2012 20:32:01 -0000	1.1.2.40
+++ notification_trayicon.c	23 Dec 2012 22:35:52 -0000	1.1.2.41
@@ -586,6 +586,7 @@
     return FALSE;
   }
   /* Show the popup */
+  notify_notification_set_hint_string(popup.notification, "desktop-entry", "claws-mail");
   if(!notify_notification_show(popup.notification, &(popup.error))) {
     debug_print("Notification Plugin: Failed to send updated notification: "
 		"%s\n",	popup.error->message);
@@ -709,6 +710,7 @@
   g_signal_connect(G_OBJECT(popup.notification), "closed", G_CALLBACK(popup_timeout_fun), NULL);
 
   /* Show the popup */
+  notify_notification_set_hint_string(popup.notification, "desktop-entry", "claws-mail");
   if(!notify_notification_show(popup.notification, &(popup.error))) {
     debug_print("Notification Plugin: Failed to send notification: %s\n",
 		popup.error->message);

Index: notification_popup.c
===================================================================
RCS file: /home/claws-mail/plugins/notification/src/Attic/notification_popup.c,v
retrieving revision 1.1.2.34
retrieving revision 1.1.2.35
diff -u -d -r1.1.2.34 -r1.1.2.35
--- notification_popup.c	3 Jan 2012 01:02:42 -0000	1.1.2.34
+++ notification_popup.c	23 Dec 2012 22:35:52 -0000	1.1.2.35
@@ -427,6 +427,7 @@
   g_signal_connect(G_OBJECT(popup->notification), "closed", G_CALLBACK(popup_timeout_fun), NULL);
 
   /* Show the popup */
+  notify_notification_set_hint_string(ppopup->notification, "desktop-entry", "claws-mail");
   if(!notify_notification_show(ppopup->notification, &(ppopup->error))) {
     debug_print("Notification Plugin: Failed to send notification: %s\n",
 		ppopup->error->message);
@@ -521,6 +522,7 @@
   }
 
   /* Show the popup */
+  notify_notification_set_hint_string(ppopup->notification, "desktop-entry", "claws-mail");
   if(!notify_notification_show(ppopup->notification, &(ppopup->error))) {
     debug_print("Notification Plugin: Failed to send updated notification: "
 		"%s\n",	ppopup->error->message);



More information about the Commits mailing list