diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-11 20:12:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-05-12 09:49:09 +0200 |
commit | 0cf318d119682eebb655c0cbab648628dcefc1d1 (patch) | |
tree | 5265a7a51a0eefd3c283a3e894ce9867b183bda0 | |
parent | 0f76fccf16ed865c5af97082c1bc9c36eba986ad (diff) |
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@redhat.com>
-rw-r--r-- | vcl/unx/gtk3/gtksalmenu.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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); |