diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-23 22:54:13 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-30 01:51:38 +0800 |
commit | df5ff95999e486568f6c229ac9dcbef70aeaff4f (patch) | |
tree | 74b4cba848c75d38776bbadb3c460a3167d58ab5 /e-util | |
parent | ac3903ac0fccf9e64e993f861e97c11e232dbf32 (diff) | |
download | gsoc2013-evolution-df5ff95999e486568f6c229ac9dcbef70aeaff4f.tar gsoc2013-evolution-df5ff95999e486568f6c229ac9dcbef70aeaff4f.tar.gz gsoc2013-evolution-df5ff95999e486568f6c229ac9dcbef70aeaff4f.tar.bz2 gsoc2013-evolution-df5ff95999e486568f6c229ac9dcbef70aeaff4f.tar.lz gsoc2013-evolution-df5ff95999e486568f6c229ac9dcbef70aeaff4f.tar.xz 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.h | 19 |
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) |