Crash at glade_gtk_cell_renderer_sync_attributes()
Submitted by Ivan Baldo
Link to original bug (#690792)
Description
glade_gtk_cell_renderer_sync_attributes() crashes sometimes.
I think this code: /* Apply attributes to renderer when bound to a model in runtime */ widget = glade_widget_get_from_gobject (object); if (widget->parent == NULL) return FALSE;
Should be changed to: GladeWidget parent; / Apply attributes to renderer when bound to a model in runtime */ widget = glade_widget_get_from_gobject (object); parent = glade_widget_get_parent (widget); if (parent == NULL) return FALSE;
Thats the code used in master for the new version of Glade and should be backported to 3.8.x.
While you are there, please notice the double call to widget = glade_widget_get_from_gobject (object); Maybe it is unnecessary (that double call is also in Master).
Thanks!!! Have a good 2013!