On Thu, 2004-05-06 at 14:39, Joaquin Cuenca Abela wrote: > --- Damon Chaplin <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I'm about to try to add support for pixmap > > properties to glade-3. > > > > We need to keep the filename stored somewhere. Where > > should it go? > > I suppose since GdkPixbuf is a GObject we could use > > g_object_set_data(). > > > > But we may also need additional data with other > > property types at some > > point (e.g. a translatable flag and translator > > comments for strings). > > So I thought maybe there should be a standard way of > > storing extra data > > for a property besides its GValue. > > The g_object_set_data approach seems good enough to > me. These uses seems to be rare enough to need > anything else.
But how is this going to work with the stuff like Undo/Redo that only works with GValues? I think we may need our own GladeValue wrapper that has a GValue and extra data like pixmap filename/translatable flag/translator comments. We'd then need to update all the code that works on GValues to expect GladeValues instead. Is there any better solution? Damon _______________________________________________ Glade-devel maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/glade-devel
