[Xfce4-commits] <xfce4-panel:master> Launcher: Use hexadecimal number for xid.

Nick Schermer noreply at xfce.org
Wed Dec 28 13:40:01 CET 2011


Updating branch refs/heads/master
         to a8ff8f775c3c07ba35ee4bfbeca5e5ffc4920791 (commit)
       from fde4594321e071ce6058a21eef229c978bc4f74c (commit)

commit a8ff8f775c3c07ba35ee4bfbeca5e5ffc4920791
Author: Nick Schermer <nick at xfce.org>
Date:   Wed Dec 28 13:37:36 2011 +0100

    Launcher: Use hexadecimal number for xid.

 plugins/launcher/launcher-dialog.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugins/launcher/launcher-dialog.c b/plugins/launcher/launcher-dialog.c
index 84bdc3b..bc099d3 100644
--- a/plugins/launcher/launcher-dialog.c
+++ b/plugins/launcher/launcher-dialog.c
@@ -41,7 +41,7 @@
 
 #ifdef GDK_WINDOWING_X11
 #include <gdk/gdkx.h>
-#define LAUNCHER_WIDGET_XID(widget) ((gint) GDK_WINDOW_XID (GDK_WINDOW ((widget)->window)))
+#define LAUNCHER_WIDGET_XID(widget) ((guint) GDK_WINDOW_XID (GDK_WINDOW ((widget)->window)))
 #else
 #define LAUNCHER_WIDGET_XID(widget) (0)
 #endif
@@ -786,13 +786,13 @@ launcher_dialog_item_desktop_item_edit (GtkWidget            *widget,
   /* build command */
   if (uri != NULL)
     {
-      command = g_strdup_printf ("exo-desktop-item-edit --xid=%d '%s'",
+      command = g_strdup_printf ("exo-desktop-item-edit --xid=0x%x '%s'",
                                  LAUNCHER_WIDGET_XID (widget), uri);
     }
   else
     {
       filename = launcher_plugin_unique_filename (dialog->plugin);
-      command = g_strdup_printf ("exo-desktop-item-edit -t %s -c --xid=%d '%s'",
+      command = g_strdup_printf ("exo-desktop-item-edit -t %s -c --xid=0x%x '%s'",
                                  type, LAUNCHER_WIDGET_XID (widget),
                                  filename);
       g_free (filename);


More information about the Xfce4-commits mailing list