After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 668948 - gconf_engine_key_is_writable missing in dbus variant
gconf_engine_key_is_writable missing in dbus variant
Status: RESOLVED WONTFIX
Product: GConf
Classification: Deprecated
Component: gconf
3.2.x
Other Linux
: Normal critical
: ---
Assigned To: GConf Maintainers
GConf Maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2012-01-29 11:33 UTC by Laurent Bigonville
Modified: 2018-08-17 13:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gconf-dbus: Add gconf_engine_key_is_writable() (1.29 KB, patch)
2012-02-21 14:29 UTC, Vincent Untz
none Details | Review
gconf-dbus: Add gconf_engine_key_is_writable() (1.29 KB, patch)
2012-02-21 14:32 UTC, Vincent Untz
none Details | Review

Description Laurent Bigonville 2012-01-29 11:33:57 UTC
Hi,

It seems that gconf_engine_key_is_writable() is not present when gconf is compiled with dbus code.

This is an ABI break and the function should be added back.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649112
Comment 1 Vincent Untz 2012-01-30 07:04:37 UTC
Not sure why it's not there, but I guess a fix would imply using gconf_engine_get_fuller() or gconf_engine_get_full() to get if the key is writable.
Comment 2 Ross Burton 2012-01-30 08:37:09 UTC
Missing by omission more than design, the fork was so long-lived that we must have missed a function in the diff.
Comment 3 Laurent Bigonville 2012-02-07 10:56:54 UTC
Any hope we can get this fixed in next release?
Comment 4 Vincent Untz 2012-02-21 14:29:25 UTC
Created attachment 208121 [details] [review]
gconf-dbus: Add gconf_engine_key_is_writable()

This went missing in the dbus port, and so we broke ABI.
It's really the same code as in the corba code.
Comment 5 Vincent Untz 2012-02-21 14:32:17 UTC
Created attachment 208123 [details] [review]
gconf-dbus: Add gconf_engine_key_is_writable()

It's really the same code as in the corba code. I just copied it, and it builds fine. Not tested.

Alternatively, we could play with the ifdef/endif in gconf.c, but this might be confusing.
Comment 6 Vincent Untz 2012-02-21 14:34:12 UTC
(Woo, attached twice, due to bugzilla not responding)

Of course, we should kill the comment about IDL if we choose to just use the patch like this.
Comment 7 Sebastien Bacher 2012-02-22 11:40:42 UTC
could that lead to the g_assert in https://bugzilla.gnome.org/show_bug.cgi?id=670586? 

the stacktrace indicates gconf_client_key_is_writable() is called, not sure how it's possible if the function is supposed to be missing though...
Comment 8 Vincent Untz 2012-02-22 12:27:56 UTC
I doubt it's related, but can't be sure.
Comment 9 Laurent Bigonville 2014-09-21 14:58:17 UTC
Hello,

I think this bug can be closed:

gconf/gconf-dbus.c:gconf_engine_key_is_writable (GConfEngine *conf,
gconf/gconf.c:gconf_engine_key_is_writable  (GConfEngine *conf,
Comment 10 André Klapper 2018-08-17 13:59:52 UTC
GConf has been deprecated since 2011.

GConf is not under active development anymore. Its codebase has been archived:
https://gitlab.gnome.org/Archive/gconf/commits/master

dconf and gsettings are its successors. See https://developer.gnome.org/gio/stable/ch34.html and https://developer.gnome.org/GSettings/ for porting info.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent + supported version of dconf/gsettings. Thanks!