From: Georges Basile Stavracas Neto Date: Wed, 26 Oct 2022 20:38:07 +0000 (-0300) Subject: filechooserwidget: Don't check operation mode for tooltip X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~33^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=358d9d72d1269a503b699172fdb04e8dc56d330e;p=gtk4.git 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. --- 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); }