aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/bytes_view.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2012-07-17 14:52:42 +0000
committerJörg Mayer <jmayer@loplof.de>2012-07-17 14:52:42 +0000
commit83a22a220a3fe03a3461567e2dc42706359b7e9f (patch)
treec7053768e21527d9bf7283e6b14ca027a36033d1 /ui/gtk/bytes_view.c
parent6bd20171efe922797c08502553f83f508b1bf6b6 (diff)
Now it compiles with 2.24 - hopefuly it will even work
svn path=/trunk/; revision=43767
Diffstat (limited to 'ui/gtk/bytes_view.c')
-rw-r--r--ui/gtk/bytes_view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/bytes_view.c b/ui/gtk/bytes_view.c
index 056175cb2c..248e1f3749 100644
--- a/ui/gtk/bytes_view.c
+++ b/ui/gtk/bytes_view.c
@@ -758,8 +758,8 @@ bytes_view_render(BytesView *bv, cairo_t *cr, GdkRectangle *area)
height = gtk_widget_get_allocated_height(GTK_WIDGET(bv));
#else
# if GTK_CHECK_VERSION(2,24,0)
- width = gdk_window_get_width(GTK_WIDGET(bv));
- height = gdk_window_get_height (GTK_WIDGET(bv));
+ width = gdk_window_get_width(gtk_widget_get_window(GTK_WIDGET(bv)));
+ height = gdk_window_get_height(gtk_widget_get_window(GTK_WIDGET(bv)));
# else
gdk_drawable_get_size(gtk_widget_get_window(GTK_WIDGET(bv)), &width, &height);
# endif