Created
February 1, 2017 02:24
-
-
Save wyatt8740/ae82550264564e2bba49b58d3e07f0f5 to your computer and use it in GitHub Desktop.
FIXED patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -x '*.html' -x '*.png' -a -r -u a/gtk+-3.22.7/gtk/gtkfilechooserwidget.c b/gtk+-3.22.7/gtk/gtkfilechooserwidget.c | |
--- a/gtk+-3.22.7/gtk/gtkfilechooserwidget.c 2016-12-30 09:55:56.000000000 -0500 | |
+++ b/gtk+-3.22.7/gtk/gtkfilechooserwidget.c 2017-01-25 19:38:43.000000000 -0500 | |
@@ -2420,7 +2420,10 @@ | |
gdk_device_get_source (device) == GDK_SOURCE_TOUCHSCREEN; | |
get_selection_modifiers (widget, event, &modify, &extend); | |
- if (!is_touchscreen && | |
+ /* Ubuntu, disable the new behaviour of opening sometime on single click | |
+ it's confusing for users and the change had no rational | |
+ https://launchpad.net/bugs/1519778 */ | |
+ if (FALSE && !is_touchscreen && | |
!modify && !extend && | |
event->type == GDK_BUTTON_PRESS && | |
event->button == GDK_BUTTON_PRIMARY && | |
@@ -2476,12 +2479,12 @@ | |
{ | |
GtkFileChooserWidgetPrivate *priv = impl->priv; | |
- gtk_tree_view_set_search_column (GTK_TREE_VIEW (priv->browse_files_tree_view), -1); | |
- | |
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); | |
gtk_tree_view_column_set_sort_column_id (priv->list_size_column, MODEL_COL_SIZE); | |
gtk_tree_view_column_set_sort_column_id (priv->list_location_column, MODEL_COL_LOCATION_TEXT); | |
+ | |
+ gtk_tree_view_set_search_column (GTK_TREE_VIEW (priv->browse_files_tree_view), MODEL_COL_NAME); | |
} | |
static gboolean | |
diff -x '*.html' -x '*.png' -a -r -u a/gtk+-3.22.7/gtk/ui/gtkfilechooserwidget.ui b/gtk+-3.22.7/gtk/ui/gtkfilechooserwidget.ui | |
--- a/gtk+-3.22.7/gtk/ui/gtkfilechooserwidget.ui 2016-12-30 09:55:56.000000000 -0500 | |
+++ b/gtk+-3.22.7/gtk/ui/gtkfilechooserwidget.ui 2017-01-25 19:38:43.000000000 -0500 | |
@@ -162,7 +162,7 @@ | |
<object class="GtkTreeView" id="browse_files_tree_view"> | |
<property name="visible">1</property> | |
<property name="has-tooltip">1</property> | |
- <property name="enable-search">0</property> | |
+ <property name="enable-search">1</property> | |
<child internal-child="accessible"> | |
<object class="AtkObject" id="browse_files_tree_view-atkobject"> | |
<property name="AtkObject::accessible-name" translatable="yes">Files</property> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment