summaryrefslogtreecommitdiff
path: root/savers/gs-theme-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'savers/gs-theme-window.c')
-rw-r--r--savers/gs-theme-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/savers/gs-theme-window.c b/savers/gs-theme-window.c
index 089a7f2..70ac063 100644
--- a/savers/gs-theme-window.c
+++ b/savers/gs-theme-window.c
@@ -200,7 +200,11 @@ gs_theme_window_real_realize (GtkWidget *widget)
exit (1);
}
+#if GTK_CHECK_VERSION(3, 0, 0)
+ gtk_widget_get_preferred_size (widget, &requisition, NULL);
+#else
gtk_widget_size_request (widget, &requisition);
+#endif
allocation.x = x;
allocation.y = y;
allocation.width = width;