summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-10-06 10:12:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-10-06 12:34:01 +0200
commit3c7cbaf19a5108e3870df6556c16ef25710011a2 (patch)
tree86bc3b9ae2fcaf17968251a9f2f6a4e5e79ea1e7 /vcl
parent1da3406a8e97934615b5b644cbb81bf3108143ec (diff)
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>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
index ec4601913af3..829e4795ac19 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;
}