File tsclient-libnotify07.patch of Package tsclient

Index: tsclient-2.0.2/src/plugins/default/tsc-dmx-connection.c
===================================================================
--- tsclient-2.0.2.orig/src/plugins/default/tsc-dmx-connection.c
+++ tsclient-2.0.2/src/plugins/default/tsc-dmx-connection.c
@@ -42,7 +42,11 @@ notify_fullscreen_cb (TSCDmxConnection *
 				   tsc_connection_get_name (TSC_CONNECTION (connection)));
 	body = g_strdup_printf (_("You are connected to '%s' in fullscreen mode.  Use F8 to switch to and from windowed mode."), tsc_connection_get_name (TSC_CONNECTION (connection)));
 
+#ifndef NOTIFY_CHECK_VERSION || if !NOTIFY_CHECK_VERSION(0,7,0)
 	n = notify_notification_new (summary, body, GTK_STOCK_DIALOG_INFO, NULL);
+#else
+	n = notify_notification_new (summary, body, GTK_STOCK_DIALOG_INFO);
+#endif
 	g_free (summary);
 	g_free (body);
 	
Index: tsclient-2.0.2/src/plugins/default/tsc-rdp-connection.c
===================================================================
--- tsclient-2.0.2.orig/src/plugins/default/tsc-rdp-connection.c
+++ tsclient-2.0.2/src/plugins/default/tsc-rdp-connection.c
@@ -52,7 +52,11 @@ notify_fullscreen_cb (TSCRdpConnection *
 				   tsc_connection_get_name (TSC_CONNECTION (connection)));
 	body = g_strdup_printf (_("You are connected to '%s' in fullscreen mode.  Use Control+Alt+Enter to switch to and from windowed mode."), tsc_connection_get_name (TSC_CONNECTION (connection)));
 	
+#ifndef NOTIFY_CHECK_VERSION || if !NOTIFY_CHECK_VERSION(0,7,0)
 	n = notify_notification_new (summary, body, GTK_STOCK_DIALOG_INFO, NULL);
+#else
+	n = notify_notification_new (summary, body, GTK_STOCK_DIALOG_INFO);
+#endif
 	g_free (summary);
 	g_free (body);
 	
Index: tsclient-2.0.2/src/plugins/default/tsc-vnc-connection.c
===================================================================
--- tsclient-2.0.2.orig/src/plugins/default/tsc-vnc-connection.c
+++ tsclient-2.0.2/src/plugins/default/tsc-vnc-connection.c
@@ -39,7 +39,11 @@ notify_fullscreen_cb (TSCVncConnection *
 				   tsc_connection_get_name (TSC_CONNECTION (connection)));
 	body = g_strdup_printf (_("You are connected to '%s' in fullscreen mode.  Use F8 to switch to and from windowed mode."), tsc_connection_get_name (TSC_CONNECTION (connection)));
 
+#ifndef NOTIFY_CHECK_VERSION || if  !NOTIFY_CHECK_VERSION(0,7,0)
 	n = notify_notification_new (summary, body, GTK_STOCK_DIALOG_INFO, NULL);
+#else
+	n = notify_notification_new (summary, body, GTK_STOCK_DIALOG_INFO);
+#endif
 	g_free (summary);
 	g_free (body);
 	
openSUSE Build Service is sponsored by