[gtk+] GtkMenuItem: Take padding into account to position submenu arrow
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkMenuItem: Take padding into account to position submenu arrow
- Date: Wed, 29 May 2013 12:55:12 +0000 (UTC)
commit 92823b2201b0c823dcb13aa90f555bdac1671044
Author: Xavier Claessens <xavier claessens collabora co uk>
Date: Tue May 21 15:12:03 2013 +0200
GtkMenuItem: Take padding into account to position submenu arrow
Since commit a69619edbc2b36aadbff200918ea9f11885d6109, 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
gtk/gtkmenuitem.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index b33d79d..8286c6b 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]