From 358d9d72d1269a503b699172fdb04e8dc56d330e Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 26 Oct 2022 17:38:07 -0300 Subject: [PATCH] filechooserwidget: Don't check operation mode for tooltip There's no way this could ever have been correct. We always want to show the tooltip, and it's basically always available. --- gtk/gtkfilechooserwidget.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index e431af541f..24d56470d5 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -2151,21 +2151,12 @@ static char * column_view_get_tooltip_text (GtkListItem *list_item, GFileInfo *info) { - GtkFileChooserWidget *impl; GFile *file; if (!info) return NULL; - impl = GTK_FILE_CHOOSER_WIDGET (gtk_widget_get_ancestor (gtk_list_item_get_child (list_item), - GTK_TYPE_FILE_CHOOSER_WIDGET)); - g_assert (impl != NULL); - - if (impl->operation_mode == OPERATION_MODE_BROWSE) - return NULL; - file = _gtk_file_info_get_file (info); - return g_file_get_path (file); } -- 2.30.2