filechooserwidget: Don't check operation mode for tooltip
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 26 Oct 2022 20:38:07 +0000 (17:38 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 13 Dec 2022 17:45:15 +0000 (14:45 -0300)
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

index e431af541f679a38718e35afb4b67f433cff3979..24d56470d5fda63483aba99edfab8ac75bfc6076 100644 (file)
@@ -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);
 }