LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gossip-libnotify.patch of Package gossip (Project home:please_try_again:Fedora)

--- src/gossip-notify.c.orig	2011-07-15 04:24:30.000000000 -0700
+++ src/gossip-notify.c	2011-07-15 04:42:24.000000000 -0700
@@ -225,7 +225,7 @@
 					gossip_contact_get_name (contact),
 					notify_get_default_status_from_presence (presence));
 
-	notify = notify_notification_new (_("Contact Online"), body, NULL, NULL);
+    notify = notify_notification_new (_("Contact Online"), body, NULL);
 	notify_notification_set_urgency (notify, NOTIFY_URGENCY_LOW);
 	notify_notification_set_icon_from_pixbuf (notify, pixbuf);
 
@@ -234,9 +234,9 @@
 			  G_CALLBACK (notify_closed_cb),
 			  NULL);
 
-	if (attach_status_icon) {
+/*	if (attach_status_icon) {
 		notify_notification_attach_to_status_icon (notify, attach_status_icon);
-	}
+	} */
 
 	notify_notification_add_action (notify, "default", _("Default"),
 					(NotifyActionCallback) notify_online_action_cb,
@@ -330,13 +330,12 @@
 
 	notify = notify_notification_new (_("Subscription Request"),
 					  message,
-					  NULL,
 					  NULL);
 	g_free (message);
 
-	if (attach_status_icon) {
+/*	if (attach_status_icon) {
 		notify_notification_attach_to_status_icon (notify, attach_status_icon);
-	}
+	} */
 
 	notify_notification_set_urgency (notify, NOTIFY_URGENCY_NORMAL);
 	notify_notification_set_timeout (notify, NOTIFY_SUBSCRIPTION_TIME);
@@ -377,14 +376,13 @@
 						     gossip_ft_get_file_name (ft));
 	notification = notify_notification_new (_("File Transfer"),
 					  	notification_body,
-					  	NULL,
 					  	NULL);
 
 	g_free (notification_body);
 	
-	if (attach_status_icon) {
+/*	if (attach_status_icon) {
 		notify_notification_attach_to_status_icon (notification, attach_status_icon);
-	}
+	} */
 
 	notify_notification_set_urgency (notification, NOTIFY_URGENCY_NORMAL);
 
@@ -546,7 +544,7 @@
 		str = g_markup_printf_escaped (_("ā€œ%sā€"), body_stripped);
 	}
 
-	notify = notify_notification_new (title, str, NULL, NULL);
+	notify = notify_notification_new (title, str, NULL);
 	notify_notification_set_urgency (notify, NOTIFY_URGENCY_NORMAL);
 	notify_notification_set_icon_from_pixbuf (notify, pixbuf);
 	notify_notification_set_timeout (notify, NOTIFY_MESSAGE_TIME);
@@ -556,9 +554,9 @@
 			  G_CALLBACK (notify_closed_cb),
 			  NULL);
 
-	if (attach_status_icon) {
+/*	if (attach_status_icon) {
 		notify_notification_attach_to_status_icon (notify, attach_status_icon);
-	}
+	} */
 
 	notify_notification_add_action (notify, "default", _("Default"),
 					(NotifyActionCallback) notify_new_message_default_cb,
@@ -901,7 +899,7 @@
 		return FALSE;
 	}
 
-	notify = notify_notification_new (summary, message, NULL, NULL);
+	notify = notify_notification_new (summary, message, NULL);
 	g_object_set_data_full (G_OBJECT (notify), "conf_path", g_strdup (conf_path), g_free);
 	g_object_set_data (G_OBJECT (notify), "func", func);
 	g_signal_connect (notify,
@@ -909,9 +907,9 @@
 			  G_CALLBACK (notify_hint_closed_cb),
 			  user_data);
 
-	if (attach_status_icon) {
+/*	if (attach_status_icon) {
 		notify_notification_attach_to_status_icon (notify, attach_status_icon);
-	}
+	} */
 
 	if (!notify_notification_show (notify, &error)) {
 		g_warning ("Failed to send notification: %s",