GNOME Bugzilla – Bug 129899
Binding friendly gnome_program_init variant
Last modified: 2004-12-22 21:47:04 UTC
Aloha, since 2003/11/27 the GObject library doesn't allow construct-only properties to be set after construction anymore (revision 1.63 and 1.64 of glib/gobject/gobject.c). Unfortunately, the Perl bindings for libgnome relied on that ability to wrap gnome_program_init. In order to get it working again, we'd need a gnome_program_init variant that takes a GValue array or something similiar instead of a va_list. Could such a function be added? TIA, -Torsten
Created attachment 29199 [details] [review] New API proposal This patch adds a new API function that receives guint nparams, GParameter *params. It is consistent with g_object_newv API: gpointer g_object_newv (GType object_type, guint n_parameters, GParameter *parameters);
API freeze is just 5 days away! Can I commit, please? I'm sure this patch statisfies both python and perl bindings.
API freeze tomorrow! ppp-lease!
Sorry for the late reply, I've been away. Although GnomeProgram has other problems wrt bindings, and although I'd like to get rid of it, I don't really see any problem with this patch. One minor comment, I don't think the inline is needed, but other than that it's good to commit.
I went ahead and committed this.