forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
c4ed9dc78c
commit
5a8701523c
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user