diff options
author | Jeija | 2016-03-19 12:59:37 +0100 |
---|---|---|
committer | Jeija | 2016-03-19 12:59:37 +0100 |
commit | 277d43f6623308837aa037c4c0fe4e24e813e711 (patch) | |
tree | 771acda44341683a49317320e985a4be6ef793ad /typeahead.patch | |
parent | 1122362a41fd58966be74b43771a45347fb3dc81 (diff) | |
download | aur-277d43f6623308837aa037c4c0fe4e24e813e711.tar.gz |
Update to GTK+ 3.18.9
Automatically trigger typeahead search for "recent" files and if file
treeview isn't currently selected.
Diffstat (limited to 'typeahead.patch')
-rw-r--r-- | typeahead.patch | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/typeahead.patch b/typeahead.patch index 76fc30c6b109..d490950cc6a2 100644 --- a/typeahead.patch +++ b/typeahead.patch @@ -1,4 +1,14 @@ -@@ -1382,12 +1382,6 @@ +@@ -1372,6 +1372,9 @@ + { + GtkFileChooserWidget *impl = (GtkFileChooserWidget *) widget; + GtkFileChooserWidgetPrivate *priv = impl->priv; ++ gtk_widget_grab_focus (priv->browse_files_tree_view); ++ gboolean ret; ++ g_signal_emit_by_name (priv->browse_files_tree_view, "key-press-event", event, &ret); + + if (should_trigger_location_entry (impl, event)) + { +@@ -1382,12 +1385,6 @@ return TRUE; } } @@ -11,7 +21,7 @@ if (GTK_WIDGET_CLASS (gtk_file_chooser_widget_parent_class)->key_press_event (widget, event)) return TRUE; -@@ -2457,7 +2451,7 @@ +@@ -2457,7 +2454,7 @@ { GtkFileChooserWidgetPrivate *priv = impl->priv; @@ -20,7 +30,7 @@ gtk_tree_view_column_set_sort_column_id (priv->list_name_column, MODEL_COL_NAME); gtk_tree_view_column_set_sort_column_id (priv->list_time_column, MODEL_COL_TIME); -@@ -4360,6 +4354,7 @@ +@@ -4360,6 +4357,7 @@ gtk_tree_view_set_model (GTK_TREE_VIEW (priv->browse_files_tree_view), GTK_TREE_MODEL (priv->browse_files_model)); update_columns (impl, FALSE, _("Modified")); @@ -28,7 +38,7 @@ file_list_set_sort_column_ids (impl); set_sort_column (impl); profile_msg (" gtk_tree_view_set_model end", NULL); -@@ -7101,10 +7096,6 @@ +@@ -7101,10 +7099,6 @@ { GList *l, *files, *files_with_info, *infos; GFile *file; @@ -39,7 +49,7 @@ files = NULL; files_with_info = NULL; -@@ -7132,8 +7123,6 @@ +@@ -7132,8 +7126,6 @@ g_list_free_full (infos, g_object_unref); gtk_stack_set_visible_child_name (GTK_STACK (impl->priv->browse_files_stack), "list"); @@ -48,7 +58,15 @@ } /* Callback used from GtkSearchEngine when the query is done running */ -@@ -7468,7 +7457,7 @@ +@@ -7451,6 +7443,7 @@ + gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (priv->recent_model), + GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, + GTK_SORT_DESCENDING); ++ gtk_tree_view_set_enable_search (GTK_TREE_VIEW (priv->browse_files_tree_view), TRUE); + } + + typedef struct +@@ -7468,7 +7461,7 @@ gtk_tree_view_set_model (GTK_TREE_VIEW (priv->browse_files_tree_view), GTK_TREE_MODEL (priv->recent_model)); |