]> Pileus Git - ~andy/gtk/commitdiff
Pop down the completion window if there are no completions anymore.
authorMatthias Clasen <mclasen@redhat.com>
Wed, 21 Apr 2004 22:08:08 +0000 (22:08 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 21 Apr 2004 22:08:08 +0000 (22:08 +0000)
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.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkentry.c

index bbe27c0f657462118c4eead9f6b551de91a28adc..f72369a3773b675b8d95b59033537108e685f3e9 100644 (file)
--- 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)
index bbe27c0f657462118c4eead9f6b551de91a28adc..f72369a3773b675b8d95b59033537108e685f3e9 100644 (file)
@@ -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)
index bbe27c0f657462118c4eead9f6b551de91a28adc..f72369a3773b675b8d95b59033537108e685f3e9 100644 (file)
@@ -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)
index bbe27c0f657462118c4eead9f6b551de91a28adc..f72369a3773b675b8d95b59033537108e685f3e9 100644 (file)
@@ -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)
index bbe27c0f657462118c4eead9f6b551de91a28adc..f72369a3773b675b8d95b59033537108e685f3e9 100644 (file)
@@ -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)
index 05d37711a856f3a5f1f57bf33dff69c41918d117..86d4a0f101475703b7f23b7899db892bfffa2529 100644 (file)
@@ -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);