[gtk+/wip/baedert/box: 3/11] menuitem: Stop looking at nonexistant child properties
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/box: 3/11] menuitem: Stop looking at nonexistant child properties
- Date: Thu, 20 Oct 2016 18:11:44 +0000 (UTC)
commit 6150ce448446a0349f6c72b58fc3c93f1e9eb7dd
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]