Commit 17bbbde7 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

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)
parent 245a951d
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)
Thu Dec 5 16:01:14 2002 Eric Warmenhoven <eric@warmenhoven.org>
* gdk/{linux-fb,win32}/Makefile.am: Fix gdkenumtypes.h hack
......
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)
Thu Dec 5 16:01:14 2002 Eric Warmenhoven <eric@warmenhoven.org>
* gdk/{linux-fb,win32}/Makefile.am: Fix gdkenumtypes.h hack
......
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)
Thu Dec 5 16:01:14 2002 Eric Warmenhoven <eric@warmenhoven.org>
* gdk/{linux-fb,win32}/Makefile.am: Fix gdkenumtypes.h hack
......
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)
Thu Dec 5 16:01:14 2002 Eric Warmenhoven <eric@warmenhoven.org>
* gdk/{linux-fb,win32}/Makefile.am: Fix gdkenumtypes.h hack
......
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)
Thu Dec 5 16:01:14 2002 Eric Warmenhoven <eric@warmenhoven.org>
* gdk/{linux-fb,win32}/Makefile.am: Fix gdkenumtypes.h hack
......
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)
Thu Dec 5 16:01:14 2002 Eric Warmenhoven <eric@warmenhoven.org>
* gdk/{linux-fb,win32}/Makefile.am: Fix gdkenumtypes.h hack
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment