summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-07-30 06:22:26 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-07-30 06:22:26 +0000
commit0d360a2af9b306d1279a20eaa9e3c2001b113754 (patch)
tree48a87433fcd6a1c656988a52600d71761d149794
parent32d874f83ace8644b489a1dbe517e535f07e95fb (diff)
downloadgdk-pixbuf-0d360a2af9b306d1279a20eaa9e3c2001b113754.tar.gz
Fix the positioning of the popup.
Fri Jul 30 02:21:41 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): Fix the positioning of the popup.
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.pre-2-105
-rw-r--r--ChangeLog.pre-2-65
-rw-r--r--ChangeLog.pre-2-85
-rw-r--r--gtk/gtkentrycompletion.c6
5 files changed, 24 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 661e047d9..618eba713 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jul 30 02:21:41 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
+ Fix the positioning of the popup.
+
Fri Jul 30 00:56:31 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_active_changed):
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 661e047d9..618eba713 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,8 @@
+Fri Jul 30 02:21:41 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
+ Fix the positioning of the popup.
+
Fri Jul 30 00:56:31 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_active_changed):
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 661e047d9..618eba713 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,8 @@
+Fri Jul 30 02:21:41 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
+ Fix the positioning of the popup.
+
Fri Jul 30 00:56:31 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_active_changed):
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 661e047d9..618eba713 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,8 @@
+Fri Jul 30 02:21:41 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
+ Fix the positioning of the popup.
+
Fri Jul 30 00:56:31 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_active_changed):
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index c093acfb9..f36d51092 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -1267,6 +1267,7 @@ _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion)
gint monitor_num;
GdkRectangle monitor;
GtkRequisition popup_req;
+ GtkRequisition entry_req;
GtkTreePath *path;
gboolean above;
gint width;
@@ -1318,15 +1319,16 @@ _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion)
gtk_widget_hide (completion->priv->action_view);
gtk_widget_size_request (completion->priv->popup_window, &popup_req);
+ gtk_widget_size_request (completion->priv->entry, &entry_req);
if (x < monitor.x)
x = monitor.x;
else if (x + popup_req.width > monitor.x + monitor.width)
x = monitor.x + monitor.width - popup_req.width;
- if (y + height + popup_req.height <= monitor.y + monitor.height)
+ if (y + entry_req.height + popup_req.height <= monitor.y + monitor.height)
{
- y += height;
+ y += entry_req.height;
above = FALSE;
}
else