summaryrefslogtreecommitdiff
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
parent245a951d4f96c48146d1f0512bc108f8cfcea615 (diff)
downloadgdk-pixbuf-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)
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--ChangeLog.pre-2-26
-rw-r--r--ChangeLog.pre-2-46
-rw-r--r--ChangeLog.pre-2-66
-rw-r--r--ChangeLog.pre-2-86
-rw-r--r--gtk/gtkmenu.c3
7 files changed, 38 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9bd6cef54..9196946b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 9bd6cef54..9196946b0 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 9bd6cef54..9196946b0 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -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
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 9bd6cef54..9196946b0 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -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
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 9bd6cef54..9196946b0 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -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
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 9bd6cef54..9196946b0 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -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
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index d7c06650c..ee2f8a0e1 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;