* gtkutil.c (gdk_window_get_screen): Make it clear that this macro is needed
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Mar 2011 08:42:12 +0000 (00:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Mar 2011 08:42:12 +0000 (00:42 -0800)
only if USE_GTK_TOOLTIP.

src/ChangeLog
src/gtkutil.c

index 45f9918..0097626 100644 (file)
@@ -4,6 +4,8 @@
        to unsigned char * to avoid compiler diagnostic.
        (xg_free_frame_widgets): Make it clear that a local variable is
        needed only if USE_GTK_TOOLTIP.
+       (gdk_window_get_screen): Make it clear that this macro is needed
+       only if USE_GTK_TOOLTIP.
        (int_gtk_range_get_value): New function, which avoids a diagnostic
        from gcc -Wbad-function-cast.
        (xg_set_toolkit_scroll_bar_thumb): Use it.
index 2eb088b..754f61e 100644 (file)
@@ -74,7 +74,9 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #endif
 
 #ifndef HAVE_GTK3
+#ifdef USE_GTK_TOOLTIP
 #define gdk_window_get_screen(w) gdk_drawable_get_screen (w)
+#endif
 #define gdk_window_get_geometry(w, a, b, c, d) \
   gdk_window_get_geometry (w, a, b, c, d, 0)
 #define gdk_x11_window_lookup_for_display(d, w) \