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

duplicated about dialog close button when headerbars not enabled

Change-Id: Idd69b37ff0dc85dc96349c4e85fc5d4a93597e62
Reviewed-on: https://gerrit.libreoffice.org/73601
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst dac2ff37
......@@ -3389,6 +3389,11 @@ public:
, m_pAboutDialog(pAboutDialog)
, m_pCssProvider(nullptr)
{
// in GtkAboutDialog apply_use_header_bar if headerbar is false it
// automatically adds a default close button which it doesn't if
// headerbar is true and which doesn't appear in the .ui
if (GtkWidget* pDefaultButton = gtk_dialog_get_widget_for_response(GTK_DIALOG(pAboutDialog), GTK_RESPONSE_DELETE_EVENT))
gtk_widget_destroy(pDefaultButton);
}
virtual void set_version(const OUString& rVersion) override
......
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