summaryrefslogtreecommitdiffstats
path: root/vcl/unx/gtk3/gtkinst.cxx
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-07 11:48:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-07 11:48:25 +0000
commit9c0049cfae49c8e4ddef9125a69db2ad134c10c6 (patch)
tree812a86c0eee63dfc5ace12f2622ed3ce9cd3d680 /vcl/unx/gtk3/gtkinst.cxx
parentReleasing progress-linux version 4:24.2.3-2~progress7.99u1. (diff)
downloadlibreoffice-9c0049cfae49c8e4ddef9125a69db2ad134c10c6.tar.xz
libreoffice-9c0049cfae49c8e4ddef9125a69db2ad134c10c6.zip
Merging upstream version 4:24.2.4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vcl/unx/gtk3/gtkinst.cxx')
-rw-r--r--vcl/unx/gtk3/gtkinst.cxx16
1 files changed, 15 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index a899fc16c6..6a06947d4c 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -21034,6 +21034,11 @@ public:
#endif
}
+ virtual void set_max_drop_down_rows(int) override
+ {
+ SAL_WARN( "vcl.gtk", "set_max_drop_down_rows unimplemented");
+ }
+
virtual ~GtkInstanceComboBox() override
{
// m_xCustomMenuButtonHelper.reset();
@@ -21114,6 +21119,7 @@ private:
gint m_nPrePopupCursorPos;
int m_nMRUCount;
int m_nMaxMRUCount;
+ int m_nMaxDropdownRows;
static gboolean idleAutoComplete(gpointer widget)
{
@@ -21236,7 +21242,7 @@ private:
{
const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings();
- int nMaxRows = rSettings.GetListBoxMaximumLineCount();
+ int nMaxRows = m_nMaxDropdownRows == -1 ? rSettings.GetListBoxMaximumLineCount() : m_nMaxDropdownRows;
bool bAddScrollWidth = false;
int nRows = get_count_including_mru();
if (nMaxRows < nRows)
@@ -22154,6 +22160,7 @@ public:
, m_nPrePopupCursorPos(-1)
, m_nMRUCount(0)
, m_nMaxMRUCount(0)
+ , m_nMaxDropdownRows(-1)
{
int nActive = gtk_combo_box_get_active(m_pComboBox);
@@ -22838,6 +22845,11 @@ public:
return nWidth;
}
+ virtual void set_max_drop_down_rows(int nMaxRows) override
+ {
+ m_nMaxDropdownRows = nMaxRows;
+ }
+
virtual ~GtkInstanceComboBox() override
{
m_xCustomMenuButtonHelper.reset();
@@ -23223,6 +23235,8 @@ public:
return 0;
}
+ virtual void set_max_drop_down_rows(int) override { assert(false && "not implemented"); }
+
virtual ~GtkInstanceEntryTreeView() override
{
if (m_nAutoCompleteIdleId)