mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
GtkMenuItem: Take padding into account to position submenu arrow
Since commit a69619edbc
, it not
possible anymore for the style to add space between the border
and the arrow.
https://bugzilla.gnome.org/show_bug.cgi?id=700779
This commit is contained in:
parent
d9a28a875c
commit
92823b2201
@ -1656,12 +1656,12 @@ gtk_menu_item_draw (GtkWidget *widget,
|
||||
|
||||
if (direction == GTK_TEXT_DIR_LTR)
|
||||
{
|
||||
arrow_x = x + w - arrow_size;
|
||||
arrow_x = x + w - arrow_size - padding.right;
|
||||
angle = G_PI / 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
arrow_x = x;
|
||||
arrow_x = x + padding.left;
|
||||
angle = (3 * G_PI) / 2;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user