From 92f5d4f6b278aacf93e3072bc4fba7512a4a9503 Mon Sep 17 00:00:00 2001 From: Clayton Walker Date: Sun, 15 Feb 2015 00:40:59 +0000 Subject: [PATCH] Remove direct struct accessor in support.c --- hydra-gtk/src/support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydra-gtk/src/support.c b/hydra-gtk/src/support.c index 22a1a3a..31c11c9 100755 --- a/hydra-gtk/src/support.c +++ b/hydra-gtk/src/support.c @@ -24,7 +24,7 @@ GtkWidget *lookup_widget(GtkWidget * widget, const gchar * widget_name) { if (GTK_IS_MENU(widget)) parent = gtk_menu_get_attach_widget(GTK_MENU(widget)); else - parent = widget->parent; + parent = gtk_widget_get_parent(widget); if (!parent) parent = (GtkWidget *) g_object_get_data(G_OBJECT(widget), "GladeParentKey"); if (parent == NULL)