diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-22 23:26:38 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-22 23:26:38 +0100 |
commit | a45172bcbc96d1b519a620aa07aa080c26617044 (patch) | |
tree | ee6217e8a4a49e4544a9bee2c7f4ffff0ce2c59f /shell/ev-navigation-action-widget.c | |
parent | 28bc8921c748c954027007ec9dfa1e9970c0ad08 (diff) | |
download | atril-a45172bcbc96d1b519a620aa07aa080c26617044.tar.bz2 atril-a45172bcbc96d1b519a620aa07aa080c26617044.tar.xz |
Use gtk_widget_get_preferred_size with GTK3
Diffstat (limited to 'shell/ev-navigation-action-widget.c')
-rw-r--r-- | shell/ev-navigation-action-widget.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ev-navigation-action-widget.c b/shell/ev-navigation-action-widget.c index 95c7fdff..57a490ea 100644 --- a/shell/ev-navigation-action-widget.c +++ b/shell/ev-navigation-action-widget.c @@ -134,7 +134,11 @@ menu_position_func (GtkMenu *menu, gint monitor_num; GdkScreen *screen; +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_get_preferred_size (GTK_WIDGET (button->menu), &menu_req, NULL); +#else gtk_widget_size_request (GTK_WIDGET (button->menu), &menu_req); +#endif direction = gtk_widget_get_direction (widget); screen = gtk_widget_get_screen (GTK_WIDGET (menu)); |