diff options
author | lukefromdc <[email protected]> | 2019-02-03 23:00:05 -0500 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-02-06 19:37:31 +0000 |
commit | 4a6c3df6d6d68fdc7ff3fef9573b4706fca2e740 (patch) | |
tree | cd3fa0afa1f783ad2a95fddb802c6d02bf4e5fd4 | |
parent | 14fce6f47cebae7c21b0a5f4d62409e047027187 (diff) | |
download | mate-panel-4a6c3df6d6d68fdc7ff3fef9573b4706fca2e740.tar.bz2 mate-panel-4a6c3df6d6d68fdc7ff3fef9573b4706fca2e740.tar.xz |
Properly align button menu positions on vertical panels
-rw-r--r-- | mate-panel/panel-menu-button.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mate-panel/panel-menu-button.c b/mate-panel/panel-menu-button.c index 56969cc8..3e72972f 100644 --- a/mate-panel/panel-menu-button.c +++ b/mate-panel/panel-menu-button.c @@ -471,9 +471,14 @@ panel_menu_button_popup_menu (PanelMenuButton *button, screen = gtk_window_get_screen (GTK_WINDOW (button->priv->toplevel)); gtk_menu_set_screen (GTK_MENU (button->priv->menu), screen); + /*using these same anchor points lets default "anchor-hints" properly position the menu + *so that on a vertical panel the menu aligns with the outside edge of a menu button + *placed at the top or bottom of a left or a right panel + */ + gtk_menu_popup_at_widget (GTK_MENU (button->priv->menu), GTK_WIDGET (button), - GDK_GRAVITY_SOUTH_WEST, + GDK_GRAVITY_NORTH_WEST, GDK_GRAVITY_NORTH_WEST, NULL); |