aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-23 22:54:13 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-30 01:51:38 +0800
commitdf5ff95999e486568f6c229ac9dcbef70aeaff4f (patch)
tree74b4cba848c75d38776bbadb3c460a3167d58ab5 /e-util
parentac3903ac0fccf9e64e993f861e97c11e232dbf32 (diff)
downloadgsoc2013-evolution-df5ff95999e486568f6c229ac9dcbef70aeaff4f.tar.gz
gsoc2013-evolution-df5ff95999e486568f6c229ac9dcbef70aeaff4f.tar.zst
gsoc2013-evolution-df5ff95999e486568f6c229ac9dcbef70aeaff4f.zip
Adapt branch for building with GTK+ 2.22.
Diffstat (limited to 'e-util')
-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)