summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2010-05-27 03:23:18 +0000
committer R. Belmont <rb6502@users.noreply.github.com>2010-05-27 03:23:18 +0000
commit8a6b779c4a2d3bc7747d6b54122f57c73069e408 (patch)
tree2378502f7bcbd0751bf419726f064bf70db5ab43
parent848f6b2bce48568c4ffa8b95a357a813643b26b5 (diff)
SDL: fix compilation for GTK+ 2.20 and later [R. Belmont, Wingman]
-rw-r--r--src/osd/sdl/dview.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osd/sdl/dview.c b/src/osd/sdl/dview.c
index 52aad0702d0..1aadd8baef1 100644
--- a/src/osd/sdl/dview.c
+++ b/src/osd/sdl/dview.c
@@ -227,7 +227,11 @@ static void dview_size_allocate(GtkWidget *wdv, GtkAllocation *allocation)
debug_view_set_visible_position(dv->view, pos);
debug_view_set_visible_size(dv->view, vsize);
+#ifdef GTK_WIDGET_REALIZED
if(GTK_WIDGET_REALIZED(wdv))
+#else
+ if(gtk_widget_get_realized(wdv))
+#endif
gdk_window_move_resize(wdv->window,
allocation->x, allocation->y,
allocation->width, allocation->height);