Skip to content

Commit

Permalink
Does not store GSettingsBackend
Browse files Browse the repository at this point in the history
  • Loading branch information
rilian-la-te committed May 8, 2015
1 parent 88a945f commit bdd4304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ namespace ValaPanel
private static const string PATH = "/org/vala-panel/";
private bool started = false;
private bool restart = false;
private SettingsBackend config_backend;
private Dialog? pref_dialog;
private GLib.Settings config;
private Runner? runner;
Expand Down Expand Up @@ -314,7 +313,7 @@ namespace ValaPanel
try{src.copy(dest,FileCopyFlags.BACKUP,null,null);}
catch(Error e){warning("Cannot init global config: %s\n",e.message);}
}
config_backend = new GLib.KeyfileSettingsBackend(user_file,PATH,NAME);
var config_backend = new GLib.KeyfileSettingsBackend(user_file,PATH,NAME);
config = new GLib.Settings.with_backend_and_path(SCHEMA,config_backend,PATH);
settings_bind(this,config,Key.LOGOUT);
settings_bind(this,config,Key.SHUTDOWN);
Expand Down
2 changes: 1 addition & 1 deletion lib/panel-plugin.vala
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace ValaPanel
};
public unowned Gtk.Widget background_widget {get; set;}
public unowned ValaPanel.Toplevel toplevel {get; construct;}
public unowned GLib.Settings? settings{get; construct;}
public unowned GLib.Settings? settings {get; construct;}
public uint number {get; construct;}
public abstract void create();
public virtual void update_context_menu(ref GLib.Menu parent_menu){}
Expand Down

0 comments on commit bdd4304

Please sign in to comment.