* gtkutil.c (gdk_window_get_screen): Make it clear that this macro is needed
only if USE_GTK_TOOLTIP.
This commit is contained in:
parent
65dc836c9e
commit
01e0b5adf4
2 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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) \
|
||||
|
|
Loading…
Add table
Reference in a new issue