[balsa/popover: 51/65] balsa-index: pop up the context menu on the left
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/popover: 51/65] balsa-index: pop up the context menu on the left
- Date: Sun, 30 Aug 2020 18:55:58 +0000 (UTC)
commit b5d34e74f5bdad67f5da38a5fdc599b5ac4d382e
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Mon Jun 22 19:04:25 2020 -0400
balsa-index: pop up the context menu on the left
The default position is above the pointer, but that is often infeasible,
so it is actually popped below. But when a submenu like "toggle" or
"move" is selected, it pops up above, if feasible, which is not a
smooth transition. If we choose on the left, there seems to be much less
chance that it is infeasible, so the submenus transition smoothly. That
may depend on the panes layout, for which I'm using the default. We
could perhaps use a layout-dependent choice.
src/balsa-index.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/balsa-index.c b/src/balsa-index.c
index c08dce0d1..faaa96697 100644
--- a/src/balsa-index.c
+++ b/src/balsa-index.c
@@ -2086,6 +2086,8 @@ bndx_popup_menu_create(BalsaIndex * bindex)
bindex->popup_menu = menu;
bindex->popup_widget =
libbalsa_popup_widget_new(GTK_WIDGET(bindex), G_MENU_MODEL(menu), "popup");
+ if (GTK_IS_POPOVER(bindex->popup_widget))
+ gtk_popover_set_position((GtkPopover *) bindex->popup_widget, GTK_POS_LEFT);
}
/* bndx_do_popup: common code for the popup menu;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]