GNOME Bugzilla – Bug 156996
color menu and UML class clashes
Last modified: 2005-10-08 20:05:54 UTC
Change some Operations in the UML Class Dialog, hit apply and you'll get invalid colors thrown into the recently added color-menu (which looks quite nice - as long as it works): [Marking as 'major' cause I expect this to crash with fully release enabled Gtk+] (dia:8808): Gtk-CRITICAL **: file gtkobject.c: line 726 (gtk_object_get_user_data): assertion `GTK_IS_OBJECT (object)' failed (dia:8808): Gtk-CRITICAL **: file gtkobject.c: line 726 (gtk_object_get_user_data): assertion `GTK_IS_OBJECT (object)' failed (dia:8808): Gtk-CRITICAL **: file gtkobject.c: line 726 (gtk_object_get_user_data): assertion `GTK_IS_OBJECT (object)' failed (dia:8808): Gtk-CRITICAL **: file gtkobject.c: line 726 (gtk_object_get_user_data): assertion `GTK_IS_OBJECT (object)' failed (dia:8808): Gtk-CRITICAL **: file gtkobject.c: line 726 (gtk_object_get_user_data): assertion `GTK_IS_OBJECT (object)' failed (dia:8808): Gtk-CRITICAL **: file gtkobject.c: line 726 (gtk_object_get_user_data): assertion `GTK_IS_OBJECT (object)' failed (dia:8808): Gtk-WARNING **: Failed to set label from markup due to error parsing markup: Could not parse background color specification '#0000212' on line 1 (dia:8808): Gtk-WARNING **: Failed to set label from markup due to error parsing markup: Could not parse background color specification '#0000212' on line 1 (dia:8808): Gtk-WARNING **: Failed to set label from markup due to error parsing markup: Could not parse background color specification '#0000212' on line 1
*** Bug 159805 has been marked as a duplicate of this bug. ***
I've seen it myself, and it looks like a pointer problem with Color objects.
2004-01-03 Hans Breuer <hans@breuer.org> * lib/libdia.def : removed dia_marshal_*, they are implemented as macros. added dia_font_set_height, dia_font_copy (note to self: don't try to maintain these from the *NIX side ;) * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by the new color selection anymore * objects/UML/class_dialog.c : with the above change it would have been more easy to fix the color loss bug #156996 which had nothing to do with 'a pointer problem' but only was an unfinished usage of dia_color_slector(get|set)_color * objects/UML/class_dialog.c objects/UML/class.[ch] : uml_apply_properties (used in object vtable) and make its prototype match * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly correlate any of these strange crashing bug with it, but assume bad things to happen when one passes stack allocated stuff to gtk_type_unique() * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is not there. Fixes most of the warnings from bug #156996 * lib/makefile.msc : rules to generate diamarshal.[ch]
Adjusting target to help finding 0.94 dups already fixed