glade3 r1709 - in trunk: . plugins/gtk+
- From: tvb svn gnome org
- To: svn-commits-list gnome org
- Subject: glade3 r1709 - in trunk: . plugins/gtk+
- Date: Sun,  9 Mar 2008 19:16:01 +0000 (GMT)
Author: tvb
Date: Sun Mar  9 19:16:01 2008
New Revision: 1709
URL: http://svn.gnome.org/viewvc/glade3?rev=1709&view=rev
Log:
	* plugins/gtk+/glade-gtk.c: Fixed a crash detail bug 493418.
Modified:
   trunk/ChangeLog
   trunk/plugins/gtk+/glade-gtk.c
Modified: trunk/plugins/gtk+/glade-gtk.c
==============================================================================
--- trunk/plugins/gtk+/glade-gtk.c	(original)
+++ trunk/plugins/gtk+/glade-gtk.c	Sun Mar  9 19:16:01 2008
@@ -249,6 +249,11 @@
 {
 	GladeWidget *gwidget = glade_widget_get_from_gobject (widget);
 
+	/* this could get called for a stale instance of an object
+	 * being rebuilt for a contruct-only property. */
+	if (!gwidget)
+		return;
+
 	if (gwidget->parent && !GTK_IS_WINDOW (glade_widget_get_object (gwidget->parent)) &&
 	    gwidget->parent->internal == NULL)
 		glade_widget_set_action_sensitive (gwidget, "remove_parent", TRUE);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]