File MEStatus-5.0.0.30-too_many_arguments_and_removed_notify_notification_attach_to_status_icon.patch of Package mestatus

Index: MEStatus-5.0.0.30/src/MEStatusIcon.cpp
===================================================================
--- MEStatus-5.0.0.30.orig/src/MEStatusIcon.cpp
+++ MEStatus-5.0.0.30/src/MEStatusIcon.cpp
@@ -350,7 +350,7 @@ bool MEStatusIcon::Notify(const gchar *t
 		return false;
 	}
 
-	notification = notify_notification_new(title, body, NULL, NULL);
+	notification = notify_notification_new(title, body, NULL);
 	if (!notification) {
 		return false;
 	}
@@ -385,9 +385,11 @@ bool MEStatusIcon::Notify(const gchar *t
 	}
 #if GTK_CHECK_VERSION(2, 9, 2)
 #ifndef HAVE_OLD_BUGGY_NOTIFY
+#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7)
 	notify_notification_attach_to_status_icon(notification, m_statusIcon->gobj());
 #endif
 #endif
+#endif
 	if (!notify_notification_show(notification, NULL)) {
 		if (bAddShow) {
 			notify_notification_clear_actions(notification);
openSUSE Build Service is sponsored by