diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-02-26 16:41:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-02-26 22:07:41 +0100 |
commit | a1fe4f5ab192bdbc0d65225ceecc047319cf47f1 (patch) | |
tree | eb87893718d26015ebfa563bc047198e0a5d9af6 /vcl/unx/gtk3 | |
parent | 1663b1e8233db6c6d1c2b35639ad984961084009 (diff) |
parentclass set_size_request is sufficient
Change-Id: I872fdb2d6d4c6279b6d4dc8f38e1153fcd919f22
Reviewed-on: https://gerrit.libreoffice.org/68395
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/gtk3')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 403155ddf7d1..8888bb4b36a1 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -6157,18 +6157,6 @@ public: return (nMaxRowHeight * nRows) + (nVerticalSeparator * (nRows + 1)); } - virtual void set_size_request(int nWidth, int nHeight) override - { - GtkWidget* pParent = gtk_widget_get_parent(m_pWidget); - if (GTK_IS_SCROLLED_WINDOW(pParent)) - { - gtk_scrolled_window_set_min_content_width(GTK_SCROLLED_WINDOW(pParent), nWidth); - gtk_scrolled_window_set_min_content_height(GTK_SCROLLED_WINDOW(pParent), nHeight); - return; - } - gtk_widget_set_size_request(m_pWidget, nWidth, nHeight); - } - virtual Size get_size_request() const override { GtkWidget* pParent = gtk_widget_get_parent(m_pWidget); |