[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed May 12 07:49:51 UTC 2021


 vcl/unx/gtk3/gtksalmenu.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 0cf318d119682eebb655c0cbab648628dcefc1d1
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue May 11 20:12:55 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed May 12 09:49:09 2021 +0200

    gtk4: unset gtk_popover_set_has_arrow for popover menus
    
    which is what I see in e.g. the gtk file dialog so lets follow
    that pattern.
    
    Change-Id: I505318c0e1e12ea8c75d2960184092927fd2f744
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115446
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/unx/gtk3/gtksalmenu.cxx b/vcl/unx/gtk3/gtksalmenu.cxx
index ef1c665c533a..743db2d363a5 100644
--- a/vcl/unx/gtk3/gtksalmenu.cxx
+++ b/vcl/unx/gtk3/gtksalmenu.cxx
@@ -434,6 +434,7 @@ bool GtkSalMenu::ShowNativePopupMenu(FloatingWindow* pWin, const tools::Rectangl
     // TODO: gtk_popover_menu_new crashes on submenus with: "signal 'action-added' is invalid for instance  of type 'GtkActionMuxer'"
     GtkWidget *pWidget = gtk_popover_menu_new_from_model_full(mpMenuModel, GTK_POPOVER_MENU_NESTED);
     gtk_widget_set_parent(pWidget, mpFrame->getMouseEventWidget());
+    gtk_popover_set_has_arrow(GTK_POPOVER(pWidget), false);
 #endif
     gtk_widget_insert_action_group(mpFrame->getMouseEventWidget(), "win", mpActionGroup);
 


More information about the Libreoffice-commits mailing list