GNOME Bugzilla – Bug 636581
[PATCH] Adapt to API change in gdk_window_get_geometry
Last modified: 2010-12-06 13:40:27 UTC
gdk_window_get_geometry dropped the "gint *depth" argument in GTK-2.91.6, which wasn't used anyway. It caused the following error: make[4]: Entering directory `/home//co/gnome3/gnome-control-center/panels/display' CC xrandr-capplet.lo xrandr-capplet.c: In function 'get_output_for_window': xrandr-capplet.c:2357:3: error: too many arguments to function 'gdk_window_get_geometry' /opt/gnome3/include/gtk-3.0/gdk/gdkwindow.h:719:12: note: declared here make[4]: *** [xrandr-capplet.lo] Error 1
Created attachment 175906 [details] [review] And here is a patch to fix that
Hey thanks for the patch. We don't want to scatter #ifdefs all over the code to work with obsolete GTK+-2.9x versions so I pushed a simpler change that just removes the argument. (What would make sense would be to update the GTK+ 3 version required in configure.ac, but there wasn't one and the configure.ac code wasn't well structured to take one - bug 636593 - so I just skipped it.)