From 0438b8e211d21f321d054dca034e5f5b8054f283 Mon Sep 17 00:00:00 2001 From: lisu Date: Thu, 7 Apr 2011 09:44:20 +0000 Subject: [PATCH] - more fixes Changed files: dhcpcd-ui-libnotify.patch -> 1.2 --- dhcpcd-ui-libnotify.patch | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/dhcpcd-ui-libnotify.patch b/dhcpcd-ui-libnotify.patch index 10c7017..0dc8b42 100644 --- a/dhcpcd-ui-libnotify.patch +++ b/dhcpcd-ui-libnotify.patch @@ -1,15 +1,18 @@ --- dhcpcd-ui-0.5.1/src/dhcpcd-gtk/main.c~ 2010-06-09 15:55:38.000000000 +0200 -+++ dhcpcd-ui-0.5.1/src/dhcpcd-gtk/main.c 2011-04-07 11:30:09.459298809 +0200 -@@ -198,7 +198,11 @@ ++++ dhcpcd-ui-0.5.1/src/dhcpcd-gtk/main.c 2011-04-07 11:43:05.405993616 +0200 +@@ -194,11 +194,15 @@ + g_strfreev(msgs); + if (nn != NULL) + notify_notification_close(nn, NULL); ++#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7) + if (gtk_status_icon_get_visible(status_icon)) nn = notify_notification_new_with_status_icon(title, msg, icon, status_icon); else -- nn = notify_notification_new(title, msg, icon, NULL); -+ nn = notify_notification_new(title, msg, icon -+#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7) -+ , NULL + nn = notify_notification_new(title, msg, icon, NULL); ++#else ++ nn = notify_notification_new(title, msg, icon); +#endif -+ ); notify_notification_set_timeout(nn, 5000); g_signal_connect(nn, "closed", G_CALLBACK(notify_closed), NULL); notify_notification_show(nn, NULL); -- 2.43.0