summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserwidget.c
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2022-10-26 17:38:07 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2022-12-13 14:45:15 -0300
commit358d9d72d1269a503b699172fdb04e8dc56d330e (patch)
tree2ef29eea359767f30466ec7443b068617a32e64b /gtk/gtkfilechooserwidget.c
parentaabb8dce9141a6bdd68b11ea16de532ec9c7f218 (diff)
downloadgtk+-358d9d72d1269a503b699172fdb04e8dc56d330e.tar.gz
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.
Diffstat (limited to 'gtk/gtkfilechooserwidget.c')
-rw-r--r--gtk/gtkfilechooserwidget.c9
1 files changed, 0 insertions, 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);
}