GNOME Bugzilla – Bug 626017
Convert lockdown to GSettings
Last modified: 2010-08-05 14:16:56 UTC
Created attachment 167106 [details] [review] Convert disable-command-line lockdown to gsettings Continuation of removing remaining traces of GConf. This patch makes use of recently released gsettings-desktop-schemas, which includes lockdown schemas as well as desktop background stuff.
Created attachment 167107 [details] [review] Require gsettings-desktop-schemas
Review of attachment 167106 [details] [review]: Looks good, except for a minor comment here. ::: src/file-manager/fm-desktop-icon-view.c @@ +619,3 @@ + g_signal_connect_swapped (gnome_lockdown_preferences, + "changed::" NAUTILUS_PREFERENCES_LOCKDOWN_COMMAND_LINE, + G_CALLBACK (lockdown_disable_command_line_changed_callback), Can't you just connect_swapped() to fm_directory_view_update_menus() and remove lockdown_disable_command_line_changed_callback() altogether? ::: src/file-manager/fm-directory-view.c @@ +2003,3 @@ G_CALLBACK(sort_directories_first_changed_callback), view); + g_signal_connect_swapped (gnome_lockdown_preferences, + "changed::" NAUTILUS_PREFERENCES_LOCKDOWN_COMMAND_LINE, Same, for schedule_update_menus()
Review of attachment 167107 [details] [review]: Looks good, please commit when you push another patch that requires the desktop schemas.
Created attachment 167125 [details] [review] Convert disable-command-line lockdown to gsettings (In reply to comment #2) > Can't you just connect_swapped() to fm_directory_view_update_menus() and remove > lockdown_disable_command_line_changed_callback() altogether? You're right, this can be easily simplified. Attached is an updated patch.
Review of attachment 167125 [details] [review]: Thanks, please commit to master.
commit 9e219b3750a2cf60897bcd6213957cb9635dc05f Author: Tomas Bzatek <tbzatek@redhat.com> Date: Thu Aug 5 16:13:27 2010 +0200 Require gsettings-desktop-schemas commit 3c8b43bf6c10e83d0bd8fd97e0dae7032339ba72 Author: Tomas Bzatek <tbzatek@redhat.com> Date: Thu Aug 5 16:12:39 2010 +0200 Convert disable-command-line lockdown to gsettings