summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-01-09 19:24:32 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-01-09 19:24:32 +0000
commitcc346bfdb443d00117dcd514125dec476620c428 (patch)
tree35ce6d0efe765210e24fd677b85d2aa55c6da6b7
parenta3e8e32299a2266e9f8f3795fee441e8ddf90d38 (diff)
downloadgdk-pixbuf-cc346bfdb443d00117dcd514125dec476620c428.tar.gz
Prevent the first row being focused on map. (#137351, Niklas Knutsson)
2006-01-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Prevent the first row being focused on map. (#137351, Niklas Knutsson)
-rw-r--r--ChangeLog10
-rw-r--r--ChangeLog.pre-2-1010
-rw-r--r--gtk/gtkentrycompletion.c6
3 files changed, 22 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index e4f68dee2..793272305 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,13 @@
+2006-01-09 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup):
+ Prevent the first row being focused on map. (#137351,
+ Niklas Knutsson)
+
2006-01-08 Matthias Clasen <mclasen@redhat.com>
- * gtk/gtkactiongroup.c (dgettext_swapped): Don't translate
- empty strings. (#326200, Christian Stimming)
+ * gtk/gtkactiongroup.c (dgettext_swapped): Don't translate
+ empty strings. (#326200, Christian Stimming)
2006-01-08 Matthias Clasen <mclasen@redhat.com>
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index e4f68dee2..793272305 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,7 +1,13 @@
+2006-01-09 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup):
+ Prevent the first row being focused on map. (#137351,
+ Niklas Knutsson)
+
2006-01-08 Matthias Clasen <mclasen@redhat.com>
- * gtk/gtkactiongroup.c (dgettext_swapped): Don't translate
- empty strings. (#326200, Christian Stimming)
+ * gtk/gtkactiongroup.c (dgettext_swapped): Don't translate
+ empty strings. (#326200, Christian Stimming)
2006-01-08 Matthias Clasen <mclasen@redhat.com>
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index e3de24b54..c25bc5a17 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -1447,6 +1447,12 @@ _gtk_entry_completion_popup (GtkEntryCompletion *completion)
gtk_window_group_add_window (_gtk_window_get_group (GTK_WINDOW (toplevel)),
GTK_WINDOW (completion->priv->popup_window));
+ /* prevent the first row being focused */
+ gtk_widget_grab_focus (completion->priv->tree_view);
+
+ gtk_tree_selection_unselect_all (gtk_tree_view_get_selection (GTK_TREE_VIEW (completion->priv->tree_view)));
+ gtk_tree_selection_unselect_all (gtk_tree_view_get_selection (GTK_TREE_VIEW (completion->priv->action_view)));
+
gtk_widget_show (completion->priv->popup_window);
gtk_grab_add (completion->priv->popup_window);