GNOME Bugzilla – Bug 157079
Type mismatches and inconsistancies in property types all around.
Last modified: 2004-12-22 21:47:04 UTC
I am about to abolish GladePropertyType.
Created attachment 33321 [details] [review] This abolishes GladePropertyType. This patch: * Removed GladePropertyType completely from the source in favor of GParamSpec. * Removed GladeChoice code, and replaced all references thereof * Custom types must now provide a function to retrieve a GParamSpec for that type. * xml files updated accordingly. Basicly, now all of the enum/flag work is done entirely through introspection and there is no possibility of mismatches across real property types and glade property types, as they are always the same type. This patch also means: cvs rm src/glade-choice.[ch] Ultimately, I think we can do away with glade-param.[ch] also, but I'm not so so sure about that yet (its definitly less of an urgent matter).
Created attachment 33361 [details] [review] Yet another uber patch. This is an extention to the previous patch, here is the ChangeLog entries: * Removed GladePropertyType completely from the source in favor of GParamSpec. * Removed GladeChoice code, and replaced all references thereof * Custom types must now provide a function to retrieve a GParamSpec for that type (xml files and glade-gtk backend updated accordingly). * Removed "child" member from GladePropertyType in order to avoid confusion (Note, I will add support for non-widget types + all types allowed to have children, in a more flexable way, for now I got rid of all mention of "child" since it wasn't implemented and mostly `#if 0'd out anyway) * Implemented <VerifyFunction> in xml files and in the glade-gtk backend. * Added support for numerical types long/ulong/int64/uint64 to the editor. * src/glade-project.c: glade_project_remove_widget() Now removes nodes on widget to remove, this fixes bug 156515. * src/glade-editor.c: Fixed popup name to g_strdup_printf(_("Create a %s"), type);
Note when patching this in, the VerifyFunction is bug 156735 (just to save you a little time :-) Cheers.
committed