GNOME Bugzilla – Bug 164059
wrapping for GConfEngine
Last modified: 2005-01-17 10:28:57 UTC
Attaching patch which: 1. Wraps GConfEngine 2. Removes some GConf internals from gconf.defs - they're wrapped be header guards in the GConf headers
Created attachment 36003 [details] [review] GConfEngine wrapping
Why would we need GConfEngine since we have GConfClient? I always thought GConfEngine vs GConfClient only existed from the times when Havoc wanted non-GNOME programs to use GConf, and so he designed the library in two parts, one pure CORBA/ORBit part, and layered on top of that a GObject based API. Unless I'm missing something...
Basically, if you want (which I do) a GConfClient for a specific data source you have to do engine = gconf.engine_get_for_address ("xml:readwrite:/tmp/foo") client = gconf.client_get_for_engine (engine) Yeah, I know that sucks - there should just be a gconf_client_get_for_address() in GConf.
Then why not just push such API to GConf and then wrap it in python? In any case, gnome-python is proposed for GNOME Bindings, so we have to obey the API/feature freeze currently in effect.
But it can (and should IMHO) go into the next release of gnome-python. An alternative is to ask (murray or the release team) to add this if it's critical to any applications. Freezes are there to be broken!
Right, if you guys think the patch is okay - we can ask the release-team for approval. Since its only a few days beyond the API freeze, there shouldn't be a problem.
Fine by me, I just don't like breaking the rules, but if we get permission... Regarding the patch, I can spot some minor things I don't like so much: 1. _pygconf_ prefix instead of pygconf_; I don't see why we need the leading underscore; 2. About _pygconf_register_engine_type, it seems it is never called anywhere, and it's just a couple of lines that we might as well put them in the module initialization function I guess that's all. I didn't try compiling it, though..
Created attachment 36016 [details] [review] patch with changes Okay, fixed up. I'll mail the release-team and cc pygtk list
When you get approval, please do commit. Then I'll try to make a release tonight...
Okay, I'm probably going to be without internet access until Sunday, so feel free to go ahead yourself if the release team approves. Thanks much for the quick response to all this ...
Committed to HEAD. Thanks much for all your help, guys