From: Georges Basile Stavracas Neto Date: Sat, 8 Oct 2022 15:10:55 +0000 (-0300) Subject: filechooserwidget: Stop autosizing treeview X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~143^2~54 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c9d2ff7a0f052ec49bd103f9bbfa4ae5ac2b8065;p=gtk4.git filechooserwidget: Stop autosizing treeview --- diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index e5488c67bd..032533adb0 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -3804,25 +3804,8 @@ update_columns (GtkFileChooserWidget *impl, gboolean location_visible, const char *time_title) { - gboolean need_resize = FALSE; - - if (gtk_column_view_column_get_visible (impl->column_view_location_column) != location_visible) - { - gtk_column_view_column_set_visible (impl->column_view_location_column, location_visible); - need_resize = TRUE; - } - - if (g_strcmp0 (gtk_column_view_column_get_title (impl->column_view_time_column), time_title) != 0) - { - gtk_column_view_column_set_title (impl->column_view_time_column, time_title); - need_resize = TRUE; - } - - if (need_resize) - { - /* This undoes user resizing of columns when the columns change. */ - gtk_tree_view_columns_autosize (GTK_TREE_VIEW (impl->browse_files_tree_view)); - } + gtk_column_view_column_set_visible (impl->column_view_location_column, location_visible); + gtk_column_view_column_set_title (impl->column_view_time_column, time_title); } /* Creates a sort model to wrap the file system model and sets it on the tree view */