mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
only hide the search dialog and send focus events if the search dialog is
2007-03-10 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): only hide the search dialog and send focus events if the search dialog is currently visible. svn path=/trunk/; revision=17464
This commit is contained in:
parent
d7a33adeda
commit
f74a07b091
@ -1,3 +1,9 @@
|
||||
2007-03-10 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): only
|
||||
hide the search dialog and send focus events if the search dialog
|
||||
is currently visible.
|
||||
|
||||
2007-03-10 Richard Hult <richard@imendio.com>
|
||||
|
||||
* gdk/quartz/gdkdrawable-quartz.c:
|
||||
|
@ -13734,11 +13734,14 @@ gtk_tree_view_search_dialog_hide (GtkWidget *search_dialog,
|
||||
tree_view->priv->typeselect_flush_timeout = 0;
|
||||
}
|
||||
|
||||
/* send focus-in event */
|
||||
send_focus_change (GTK_WIDGET (tree_view->priv->search_entry), FALSE);
|
||||
gtk_widget_hide (search_dialog);
|
||||
gtk_entry_set_text (GTK_ENTRY (tree_view->priv->search_entry), "");
|
||||
send_focus_change (GTK_WIDGET (tree_view), TRUE);
|
||||
if (GTK_WIDGET_VISIBLE (search_dialog))
|
||||
{
|
||||
/* send focus-in event */
|
||||
send_focus_change (GTK_WIDGET (tree_view->priv->search_entry), FALSE);
|
||||
gtk_widget_hide (search_dialog);
|
||||
gtk_entry_set_text (GTK_ENTRY (tree_view->priv->search_entry), "");
|
||||
send_focus_change (GTK_WIDGET (tree_view), TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user