summaryrefslogtreecommitdiff
path: root/gtk/gtkmenu.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-12-06 22:49:56 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-12-06 22:49:56 +0000
commit17bbbde74ae114c629f6ce573a667e60c613bb3e (patch)
tree5577a1e1938d9e81c91efc96ff395695d1c1df5d /gtk/gtkmenu.c
parent245a951d4f96c48146d1f0512bc108f8cfcea615 (diff)
downloadgtk+-17bbbde74ae114c629f6ce573a667e60c613bb3e.tar.gz
Use the correct screen for getting the height. (Fix from Stephen Browne,
Fri Dec 6 17:46:42 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkmenu.c (gtk_menu_window_size_request): Use the correct screen for getting the height. (Fix from Stephen Browne, #96777)
Diffstat (limited to 'gtk/gtkmenu.c')
-rw-r--r--gtk/gtkmenu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index d7c06650c1..ee2f8a0e15 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -417,7 +417,8 @@ gtk_menu_window_size_request (GtkWidget *window,
if (private->have_position)
{
- gint screen_height = gdk_screen_height ();
+ GdkScreen *screen = gtk_widget_get_screen (window);
+ gint screen_height = gdk_screen_get_height (screen);
if (private->y + requisition->height > screen_height)
requisition->height = screen_height - private->y;