[gtk+/wip/baedert/box: 266/269] menuitem: Stop looking at nonexistant child properties



commit c5ac5f12743bc1480fe3064743ce23a46ca6c9fd
Author: Timm Bäder <mail baedert org>
Date:   Tue Oct 18 20:13:31 2016 +0200

    menuitem: Stop looking at nonexistant child properties

 gtk/gtkmenuitem.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index 29d30c1..b989d32 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -1590,10 +1590,8 @@ gtk_menu_item_real_popup_submenu (GtkWidget      *widget,
               g_signal_handlers_disconnect_by_func (priv->submenu, popped_up_cb, menu_item);
               g_signal_connect (priv->submenu, "popped-up", G_CALLBACK (popped_up_cb), menu_item);
 
-              gtk_widget_style_get (priv->submenu,
-                                    "horizontal-offset", &horizontal_offset,
-                                    "vertical-offset", &vertical_offset,
-                                    NULL);
+              horizontal_offset = 0;
+              vertical_offset = 0;
 
               context = gtk_widget_get_style_context (parent);
               gtk_style_context_get_padding (context, &parent_padding);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]