summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-04-21 22:08:08 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-04-21 22:08:08 +0000
commit5a8701523c19fc66c2a05135aa80c16d2e9606a3 (patch)
treeeca75900bf8fab1cd4c5b47f82f0ee0757078380
parentc4ed9dc78c5b3523f5893c60bcef276eb36e7e72 (diff)
downloadgdk-pixbuf-5a8701523c19fc66c2a05135aa80c16d2e9606a3.tar.gz
Pop down the completion window if there are no completions anymore.
2004-04-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentry.c (gtk_entry_completion_timeout): Pop down the completion window if there are no completions anymore.
-rw-r--r--ChangeLog3
-rw-r--r--ChangeLog.pre-2-103
-rw-r--r--ChangeLog.pre-2-43
-rw-r--r--ChangeLog.pre-2-63
-rw-r--r--ChangeLog.pre-2-83
-rw-r--r--gtk/gtkentry.c14
6 files changed, 24 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index bbe27c0f6..f72369a37 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2004-04-21 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkentry.c (gtk_entry_completion_timeout): Pop down the
+ completion window if there are no completions anymore.
+
* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
Don't call gtk_tree_view_scroll_to_cell() on an empty tree view.
It doesn't like that. (#140642, Christian Persch)
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index bbe27c0f6..f72369a37 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,5 +1,8 @@
2004-04-21 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkentry.c (gtk_entry_completion_timeout): Pop down the
+ completion window if there are no completions anymore.
+
* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
Don't call gtk_tree_view_scroll_to_cell() on an empty tree view.
It doesn't like that. (#140642, Christian Persch)
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index bbe27c0f6..f72369a37 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,5 +1,8 @@
2004-04-21 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkentry.c (gtk_entry_completion_timeout): Pop down the
+ completion window if there are no completions anymore.
+
* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
Don't call gtk_tree_view_scroll_to_cell() on an empty tree view.
It doesn't like that. (#140642, Christian Persch)
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index bbe27c0f6..f72369a37 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,5 +1,8 @@
2004-04-21 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkentry.c (gtk_entry_completion_timeout): Pop down the
+ completion window if there are no completions anymore.
+
* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
Don't call gtk_tree_view_scroll_to_cell() on an empty tree view.
It doesn't like that. (#140642, Christian Persch)
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index bbe27c0f6..f72369a37 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,5 +1,8 @@
2004-04-21 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkentry.c (gtk_entry_completion_timeout): Pop down the
+ completion window if there are no completions anymore.
+
* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
Don't call gtk_tree_view_scroll_to_cell() on an empty tree view.
It doesn't like that. (#140642, Christian Persch)
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 05d37711a..86d4a0f10 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -4650,11 +4650,15 @@ gtk_entry_completion_timeout (gpointer data)
actions = gtk_tree_model_iter_n_children (GTK_TREE_MODEL (completion->priv->actions), NULL);
- if ((matches > 0 || actions > 0)
- && ! GTK_WIDGET_VISIBLE (completion->priv->popup_window))
- _gtk_entry_completion_popup (completion);
- else if (GTK_WIDGET_VISIBLE (completion->priv->popup_window))
- _gtk_entry_completion_resize_popup (completion);
+ if (matches > 0 || actions > 0)
+ {
+ if (GTK_WIDGET_VISIBLE (completion->priv->popup_window))
+ _gtk_entry_completion_resize_popup (completion);
+ else
+ _gtk_entry_completion_popup (completion);
+ }
+ else
+ _gtk_entry_completion_popdown (completion);
}
else if (GTK_WIDGET_VISIBLE (completion->priv->popup_window))
_gtk_entry_completion_popdown (completion);