Related: tdf#150706 don't warn about missing LISTBOX_FILTER_LABEL

which is not unexpected for gtk where we don't use that label

Change-Id: Ieed1a6498cc9f40cbf6546f996f723ec9cd3aba9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141005
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
index ec46019..829e479 100644
--- a/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
@@ -1136,6 +1136,10 @@ GtkWidget *SalGtkFilePicker::getWidget( sal_Int16 nControlId, GType *pType )
        MAP_LIST_LABEL( TEMPLATE );
        MAP_LIST_LABEL( IMAGE_TEMPLATE );
        MAP_LIST_LABEL( IMAGE_ANCHOR );
    case CommonFilePickerElementIds::LISTBOX_FILTER_LABEL:
        // the filter list in gtk typically is not labeled, but has a build-in
        // tooltip to indicate what it does
        break;
    default:
        SAL_WARN( "vcl.gtk", "Handle unknown control " << nControlId);
        break;
@@ -1389,7 +1393,8 @@ void SAL_CALL SalGtkFilePicker::setLabel( sal_Int16 nControlId, const OUString& 

    if( !( pWidget = getWidget( nControlId, &tType ) ) )
    {
        SAL_WARN( "vcl.gtk", "Set label '" << rLabel << "' on unknown control " << nControlId);
        SAL_WARN_IF(nControlId != CommonFilePickerElementIds::LISTBOX_FILTER_LABEL,
                    "vcl.gtk", "Set label '" << rLabel << "' on unknown control " << nControlId);
        return;
    }