From df5ff95999e486568f6c229ac9dcbef70aeaff4f Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 23 Oct 2010 10:54:13 -0400 Subject: Adapt branch for building with GTK+ 2.22. --- e-util/gtk-compat.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'e-util/gtk-compat.h') diff --git a/e-util/gtk-compat.h b/e-util/gtk-compat.h index 9dfa8a6bc0..ab4a87209b 100644 --- a/e-util/gtk-compat.h +++ b/e-util/gtk-compat.h @@ -33,6 +33,25 @@ static void gtk_combo_box_text_init (GtkComboBoxText *cbt) {} \ static void gtk_combo_box_text_class_init (GtkComboBoxTextClass *kl) {} +static inline gint +gdk_window_get_width (GdkWindow *window) +{ + gint width, height; + + gdk_drawable_get_size (GDK_DRAWABLE (window), &width, &height); + + return width; +} + +static inline gint +gdk_window_get_height (GdkWindow *window) +{ + gint width, height; + + gdk_drawable_get_size (GDK_DRAWABLE (window), &width, &height); + + return height; +} #endif #if GTK_CHECK_VERSION (2,23,0) -- cgit