summaryrefslogtreecommitdiff
path: root/src/eom-sidebar.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2015-07-23 23:23:17 +0200
committerinfirit <[email protected]>2015-08-31 22:35:17 +0200
commit971e627c6f066393b282f5d0182daaa0084e6e9a (patch)
tree787495f052f3833ee475edd2a8d1fd9723bff570 /src/eom-sidebar.c
parent56a21c86bb4cbe389a2448cafde621b8b9e5878c (diff)
downloadeom-971e627c6f066393b282f5d0182daaa0084e6e9a.tar.bz2
eom-971e627c6f066393b282f5d0182daaa0084e6e9a.tar.xz
GTK3: Fix deprecated GTK API usage
taken from: https://git.gnome.org/browse/eog/commit/?id=9bd1a07
Diffstat (limited to 'src/eom-sidebar.c')
-rw-r--r--src/eom-sidebar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eom-sidebar.c b/src/eom-sidebar.c
index 85a1b2f..0b031f2 100644
--- a/src/eom-sidebar.c
+++ b/src/eom-sidebar.c
@@ -285,7 +285,11 @@ eom_sidebar_select_button_press_cb (GtkWidget *widget,
gtk_widget_get_allocation (widget, &allocation);
gtk_widget_set_size_request (eom_sidebar->priv->menu, -1, -1);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_get_preferred_size (eom_sidebar->priv->menu, &requisition, NULL);
+#else
gtk_widget_size_request (eom_sidebar->priv->menu, &requisition);
+#endif
gtk_widget_set_size_request (eom_sidebar->priv->menu,
MAX (allocation.width,
requisition.width), -1);