summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2003-10-20 21:28:38 +0000
committerKristian Rietveld <kristian@src.gnome.org>2003-10-20 21:28:38 +0000
commit5b9a4e6997e9ffe12899d0f9ce7a10804b82befa (patch)
tree1c0b3e16d02f9b5ec854f869760c77f5b4c6a78d
parent1e49d49a3eb67436519a64b4435855602d1ad3ad (diff)
downloadgdk-pixbuf-5b9a4e6997e9ffe12899d0f9ce7a10804b82befa.tar.gz
remove the completion timeout when the user pressed on Enter/ESC. Fixes
Mon Oct 20 23:24:27 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtkentry.c (gtk_entry_key_press): remove the completion timeout when the user pressed on Enter/ESC. Fixes the bug where the completion popup popped up after the user pressed on Enter (which is just weird). Reported by the Epiphany people (all of them).
-rw-r--r--ChangeLog7
-rw-r--r--ChangeLog.pre-2-107
-rw-r--r--ChangeLog.pre-2-47
-rw-r--r--ChangeLog.pre-2-67
-rw-r--r--ChangeLog.pre-2-87
-rw-r--r--gtk/gtkentry.c12
6 files changed, 47 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4ec6b3684..9974cde18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Oct 20 23:24:27 2003 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
+ timeout when the user pressed on Enter/ESC. Fixes the bug where the
+ completion popup popped up after the user pressed on Enter (which is
+ just weird). Reported by the Epiphany people (all of them).
+
Mon Oct 20 20:27:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
Add support for OS X like sliding of toolbar items during drag and
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 4ec6b3684..9974cde18 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,10 @@
+Mon Oct 20 23:24:27 2003 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
+ timeout when the user pressed on Enter/ESC. Fixes the bug where the
+ completion popup popped up after the user pressed on Enter (which is
+ just weird). Reported by the Epiphany people (all of them).
+
Mon Oct 20 20:27:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
Add support for OS X like sliding of toolbar items during drag and
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 4ec6b3684..9974cde18 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,10 @@
+Mon Oct 20 23:24:27 2003 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
+ timeout when the user pressed on Enter/ESC. Fixes the bug where the
+ completion popup popped up after the user pressed on Enter (which is
+ just weird). Reported by the Epiphany people (all of them).
+
Mon Oct 20 20:27:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
Add support for OS X like sliding of toolbar items during drag and
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 4ec6b3684..9974cde18 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,10 @@
+Mon Oct 20 23:24:27 2003 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
+ timeout when the user pressed on Enter/ESC. Fixes the bug where the
+ completion popup popped up after the user pressed on Enter (which is
+ just weird). Reported by the Epiphany people (all of them).
+
Mon Oct 20 20:27:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
Add support for OS X like sliding of toolbar items during drag and
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 4ec6b3684..9974cde18 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,10 @@
+Mon Oct 20 23:24:27 2003 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
+ timeout when the user pressed on Enter/ESC. Fixes the bug where the
+ completion popup popped up after the user pressed on Enter (which is
+ just weird). Reported by the Epiphany people (all of them).
+
Mon Oct 20 20:27:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
Add support for OS X like sliding of toolbar items during drag and
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 7576d7287..3e97af9f8 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -1622,6 +1622,18 @@ gtk_entry_key_press (GtkWidget *widget,
}
}
+ if (event->keyval == GDK_Return || event->keyval == GDK_ISO_Enter
+ || event->keyval == GDK_Escape)
+ {
+ GtkEntryCompletion *completion = gtk_entry_get_completion (entry);
+
+ if (completion && completion->priv->completion_timeout)
+ {
+ g_source_remove (completion->priv->completion_timeout);
+ completion->priv->completion_timeout = 0;
+ }
+ }
+
if (GTK_WIDGET_CLASS (parent_class)->key_press_event (widget, event))
/* Activate key bindings
*/