diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-12-10 20:38:45 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-12-10 20:38:45 +0100 |
commit | 1ddc241afa5cff81bac8876869974cb43f9cbf2e (patch) | |
tree | 84ef92e2e002ac5e47300bb07ffcacfb91ffc8cd /src/gs-window-x11.c | |
parent | 7b6b7b641c8a33703692333bfeccd87238ae1c73 (diff) | |
download | mate-screensaver-1ddc241afa5cff81bac8876869974cb43f9cbf2e.tar.bz2 mate-screensaver-1ddc241afa5cff81bac8876869974cb43f9cbf2e.tar.xz |
GTK3: don't use deprecated gtk_widget_size_request
Diffstat (limited to 'src/gs-window-x11.c')
-rw-r--r-- | src/gs-window-x11.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c index ee7b197..20acf82 100644 --- a/src/gs-window-x11.c +++ b/src/gs-window-x11.c @@ -2460,7 +2460,11 @@ gs_window_real_size_request (GtkWidget *widget, if (child && gtk_widget_get_visible (child)) { +#if GTK_CHECK_VERSION(3, 0, 0) + gtk_widget_get_preferred_size (child, requisition, NULL); +#else gtk_widget_size_request (child, requisition); +#endif } old_geometry = window->priv->geometry; |