[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 9 10:32:23 UTC 2019
vcl/unx/gtk3/gtk3gtkinst.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 17f84b71233f67809946073ccea7c43812bf648a
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Oct 8 20:54:06 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Oct 9 12:30:21 2019 +0200
use preferred button order when screenshotting dialogs
if the dialog was not already visible when we screenshot it
the buttons haven't been sorted yet
Change-Id: Ibce5c3eed4e9ef6d731ae813d5e0235e6e19ac25
Reviewed-on: https://gerrit.libreoffice.org/80497
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 6d055257a055..8cd3379f7af1 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -4129,7 +4129,10 @@ public:
// has to be visible for draw to work
bool bAlreadyVisible = gtk_widget_get_visible(GTK_WIDGET(m_pDialog));
if (!bAlreadyVisible)
+ {
+ sort_native_button_order(GTK_BOX(gtk_dialog_get_action_area(GTK_DIALOG(m_pDialog))));
gtk_widget_show(GTK_WIDGET(m_pDialog));
+ }
if (!bAlreadyRealized)
{
More information about the Libreoffice-commits
mailing list