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 625899 - Port to GSettings
Port to GSettings
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on: 621204 631502
Blocks: 622558 626021
 
 
Reported: 2010-08-03 00:48 UTC by Robert Ancell
Modified: 2011-11-14 18:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
background panel GSettings port (25.08 KB, patch)
2010-08-20 15:44 UTC, Tomas Bzatek
none Details | Review
background panel GSettings port (26.44 KB, patch)
2010-09-20 16:24 UTC, Tomas Bzatek
none Details | Review
Fix last usage of old gnome-bg API (1.03 KB, patch)
2010-11-04 16:34 UTC, Tomas Bzatek
committed Details | Review
keyboard: Port custom shortcuts to GSettings (26.14 KB, patch)
2011-11-11 01:45 UTC, Florian Müllner
committed Details | Review

Comment 1 Tomas Bzatek 2010-08-20 15:44:32 UTC
Created attachment 168418 [details] [review]
background panel GSettings port

Port of the background panel to GSettings and new gnome-bg API - bug 626021. I haven't tested the Flickr backend, please also test overall functionality to avoid regressions.

Works fine in conjuction with nautilus patch from bug 626018. In case of nautilus absence I guess gnome-settings-daemon should take over the rendering job, this needs to be ported yet though.

Setting as 'needs-work' for the moment until we sort new gnome-desktop api out.
Comment 2 Tomas Bzatek 2010-09-20 16:24:14 UTC
Created attachment 170678 [details] [review]
background panel GSettings port

Updated patch to reflect gnome-bg changes from bug 626021. Not much changed except of the way settings is pulled and saved from/to GnomeBg, moved chunks of code in gnome-wp-item.c, all this to prevent NULL or uninitialized values after initial GnomeBg instance creation.
Comment 3 Rodrigo Moya 2010-10-14 14:00:31 UTC
We still need the gnome-bg changes to be accepted to apply this, right?
Comment 4 Tomas Bzatek 2010-10-14 14:47:26 UTC
(In reply to comment #3)
> We still need the gnome-bg changes to be accepted to apply this, right?
Yes, that's right. We're polishing last few details there...
Comment 5 Tomas Bzatek 2010-10-18 16:15:54 UTC
(In reply to comment #3)
> We still need the gnome-bg changes to be accepted to apply this, right?
Hmm, okay, looks like my work here became useless due to four commits done in master.
Comment 6 Bastien Nocera 2010-10-18 16:21:04 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > We still need the gnome-bg changes to be accepted to apply this, right?
> Hmm, okay, looks like my work here became useless due to four commits done in
> master.

What changes are we talking about?
Comment 7 Tomas Bzatek 2010-11-04 16:34:52 UTC
Created attachment 173832 [details] [review]
Fix last usage of old gnome-bg API

So this simple patch is all that's needed for control-center to work with new gnome-bg API.

Still, the code in gnome-wp-item.c uses GSettings directly. This is not bad but in near time horizon we would like to change that and use gnome-bg directly. My previous patch did that though it required GnomeBg object to live and did extensive shuffling of initialization. Let's keep this in mind and when time allows, I may post another patch here.
Comment 8 Rodrigo Moya 2010-11-04 23:04:15 UTC
Review of attachment 173832 [details] [review]:

Great to see that's all we need! So please commit.
Comment 9 Javier Jardón (IRC: jjardon) 2011-09-29 13:57:02 UTC
Reopen as this is still in the configure.ac:

PKG_CHECK_MODULES(LIBGNOME_CONTROL_CENTER, $COMMON_MODULES gconf-2.0)
Comment 10 Bastien Nocera 2011-09-29 14:23:04 UTC
(In reply to comment #9)
> Reopen as this is still in the configure.ac:
> 
> PKG_CHECK_MODULES(LIBGNOME_CONTROL_CENTER, $COMMON_MODULES gconf-2.0)

It's waiting on metacity/mutter being ported to GSettings.
Comment 11 Javier Jardón (IRC: jjardon) 2011-09-29 14:25:22 UTC
Ok Bastian, adding metacity bug dependency
Comment 12 Florian Müllner 2011-11-11 01:45:06 UTC
Created attachment 201203 [details] [review]
keyboard: Port custom shortcuts to GSettings
Comment 13 Bastien Nocera 2011-11-14 14:30:54 UTC
commit bc6d4b3cf15beeb580757786b71f4333afe6bb42
Author: Bastien Nocera <hadess@hadess.net>
Date:   Mon Nov 14 14:29:31 2011 +0000

    universal-access: Remove unused GConf helper

commit 957374dfa90c6626bdd0df945fd680d31cafbe21
Author: Bastien Nocera <hadess@hadess.net>
Date:   Mon Nov 14 14:27:40 2011 +0000

    universal-access: Update for metacity GSettings port
    
    Use GSettings to set the visual-bell preferences, rather than GConf.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=625899
Comment 14 Bastien Nocera 2011-11-14 18:10:22 UTC
Attachment 201203 [details] pushed as 656d0ee - keyboard: Port custom shortcuts to GSettings