mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-24 12:41:16 +00:00
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)
This commit is contained in:
parent
245a951d4f
commit
17bbbde74a
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
@ -1,3 +1,9 @@
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user