[gtk/wip/baedert/filechooser: 1/9] filechooserwidget: Don't focus the treeview during a search
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/filechooser: 1/9] filechooserwidget: Don't focus the treeview during a search
- Date: Tue, 15 Jan 2019 07:11:28 +0000 (UTC)
commit eb7921ff186f7794fa52833a25cf22e256350847
Author: Timm Bäder <mail baedert org>
Date: Tue Jan 15 05:51:42 2019 +0100
filechooserwidget: Don't focus the treeview during a search
gtk/gtkfilechooserwidget.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index ca23ce38da..76cb66d11c 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -6993,10 +6993,6 @@ search_engine_hits_added_cb (GtkSearchEngine *engine,
{
GList *l, *files, *files_with_info, *infos;
GFile *file;
- gboolean select = FALSE;
-
- if (gtk_tree_model_iter_n_children (GTK_TREE_MODEL (impl->priv->search_model), NULL) == 0)
- select = TRUE;
files = NULL;
files_with_info = NULL;
@@ -7024,8 +7020,6 @@ search_engine_hits_added_cb (GtkSearchEngine *engine,
g_list_free_full (infos, g_object_unref);
gtk_stack_set_visible_child_name (GTK_STACK (impl->priv->browse_files_stack), "list");
- if (select)
- gtk_widget_grab_focus (impl->priv->browse_files_tree_view);
}
/* Callback used from GtkSearchEngine when the query is done running */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]