tags 625376 +patch
thanks

patch attatched just drop it in debian/patches
diff -Nur -x '*.orig' -x '*~' libunique-1.1.6//tests/test-unique.c libunique-1.1.6.new//tests/test-unique.c
--- libunique-1.1.6//tests/test-unique.c	2009-09-21 12:31:14.000000000 +0000
+++ libunique-1.1.6.new//tests/test-unique.c	2011-09-27 00:50:36.000000000 +0000
@@ -77,15 +77,22 @@
     default:
       break;
     }
+  if (title)
+    dialog = gtk_message_dialog_new (GTK_WINDOW (main_window),
+                                     GTK_DIALOG_DESTROY_WITH_PARENT,
+                                     GTK_MESSAGE_INFO,
+                                     GTK_BUTTONS_CLOSE,
+                                     "%s",title);
+  else
+    dialog = gtk_message_dialog_new (GTK_WINDOW (main_window),
+                                     GTK_DIALOG_DESTROY_WITH_PARENT,
+                                     GTK_MESSAGE_INFO,
+                                     GTK_BUTTONS_CLOSE,
+                                     NULL);
 
-  dialog = gtk_message_dialog_new (GTK_WINDOW (main_window),
-                                   GTK_DIALOG_DESTROY_WITH_PARENT,
-                                   GTK_MESSAGE_INFO,
-                                   GTK_BUTTONS_CLOSE,
-                                   title);
   if (message)
     gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
-                                              message);
+                                              "%s",message);
 
   gtk_window_set_urgency_hint (GTK_WINDOW (dialog), TRUE);
 
diff -Nur -x '*.orig' -x '*~' libunique-1.1.6//unique/dbus/uniquebackend-dbus.c libunique-1.1.6.new//unique/dbus/uniquebackend-dbus.c
--- libunique-1.1.6//unique/dbus/uniquebackend-dbus.c	2011-09-27 00:39:53.000000000 +0000
+++ libunique-1.1.6.new//unique/dbus/uniquebackend-dbus.c	2011-09-27 00:39:59.000000000 +0000
@@ -84,7 +84,6 @@
 static gboolean
 unique_backend_dbus_request_name (UniqueBackend *backend)
 {
-  UniqueBackendDBus *backend_dbus;
   const gchar *name;
   DBusGConnection *connection;
   DBusGProxy *proxy;
@@ -97,7 +96,7 @@
   if (!connection)
     return FALSE;
 
-  backend_dbus = UNIQUE_BACKEND_DBUS (backend);
+  (void)(UNIQUE_BACKEND_DBUS (backend));
 
   retval = TRUE;
   name = unique_backend_get_name (backend);
@@ -186,7 +185,6 @@
   GValueArray *data;
   gchar *cmd;
   gchar *resp;
-  gboolean res;
   GError *error;
   UniqueResponse response;
 
@@ -203,7 +201,7 @@
   resp = NULL;
  
   error = NULL;
-  res = org_gtk_UniqueApp_send_message (backend_dbus->proxy,
+  org_gtk_UniqueApp_send_message (backend_dbus->proxy,
                                         cmd, data, time_,
                                         &resp,
                                         &error);

Reply via email to