← Back to team overview

ayatana-commits team mailing list archive

[Branch ~indicator-applet-developers/evolution-indicator/trunk] Rev 67: correct gdk_display transtype

 

------------------------------------------------------------
revno: 67
committer: Didier Roche <didier.roche@xxxxxxxxxxxxx>
branch nick: evolution-indicator
timestamp: Wed 2010-10-13 19:55:22 +0200
message:
  correct gdk_display transtype
modified:
  src/xutils.c


--
lp:evolution-indicator
https://code.launchpad.net/~indicator-applet-developers/evolution-indicator/trunk

Your team ayatana-commits is subscribed to branch lp:evolution-indicator.
To unsubscribe from this branch go to https://code.launchpad.net/~indicator-applet-developers/evolution-indicator/trunk/+edit-subscription
=== modified file 'src/xutils.c'
--- src/xutils.c	2010-10-07 10:09:35 +0000
+++ src/xutils.c	2010-10-13 17:55:22 +0000
@@ -37,7 +37,7 @@
  
   gdk_error_trap_push ();
   type = None;
-  result = XGetWindowProperty ((Display *)gdk_display_get_default (),
+  result = XGetWindowProperty (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
                                xwindow,
                                atom,
                                0, G_MAXLONG,
@@ -91,7 +91,7 @@
   ch.res_name = NULL;
   ch.res_class = NULL;
 
-  XGetClassHint ((Display *)gdk_display_get_default (), xwindow,
+  XGetClassHint (GDK_DISPLAY_XDISPLAY(gdk_display_get_default ()), xwindow,
                  &ch);
 
   gdk_error_trap_pop ();