aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/gtk-compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/gtk-compat.h')
-rw-r--r--e-util/gtk-compat.h19
1 files changed, 19 insertions, 0 deletions
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)