Kaydet (Commit) a1fe4f5a authored tarafından Caolán McNamara's avatar Caolán McNamara

parentclass set_size_request is sufficient

Change-Id: I872fdb2d6d4c6279b6d4dc8f38e1153fcd919f22
Reviewed-on: https://gerrit.libreoffice.org/68395
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 1663b1e8
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment