Permalink
Browse files

Don't access GtkWidget:parent directly

  • Loading branch information...
1 parent c7f6997 commit 593fef7fa0b9c799c58c1e8e9b36193572333b6f @b4n b4n committed Sep 11, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/stash.c
  2. +1 −1 src/ui_utils.c
View
@@ -563,7 +563,7 @@ 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 == NULL)
parent = (GtkWidget*) g_object_get_data(G_OBJECT(widget), "GladeParentKey");
if (parent == NULL)
View
@@ -2439,7 +2439,7 @@ GtkWidget *ui_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 == NULL)
parent = (GtkWidget*) g_object_get_data(G_OBJECT(widget), "GladeParentKey");
if (parent == NULL)

0 comments on commit 593fef7

Please sign in to comment.