Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Thu, 13 Sep 2012 14:34:18 Commit: 593fef7fa0b9c799c58c1e8e9b36193572333b6f https://github.com/geany/geany/commit/593fef7fa0b9c799c58c1e8e9b36193572333b...
Log Message: ----------- Don't access GtkWidget:parent directly
Modified Paths: -------------- src/stash.c src/ui_utils.c
Modified: src/stash.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -563,7 +563,7 @@ static void handle_combo_box_entry(GtkWidget *widget, StashPref *entry, 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)
Modified: src/ui_utils.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -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)
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).