[Xfce4-commits] <xfmpc:master> Remove dbbrowser-last-path preference entry
Vincent Legout
noreply at xfce.org
Sat Jan 22 11:22:02 CET 2011
Updating branch refs/heads/master
to f7b9398a3c7f9c38f307999839f532790d58e8db (commit)
from 3bc7a30db0fe5361296e7b8a2478a19a5b9c3156 (commit)
commit f7b9398a3c7f9c38f307999839f532790d58e8db
Author: Vincent Legout <vincent at legout.info>
Date: Fri Jan 21 20:57:35 2011 +0100
Remove dbbrowser-last-path preference entry
src/dbbrowser.vala | 7 ++-----
src/preferences.vala | 6 ------
2 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/src/dbbrowser.vala b/src/dbbrowser.vala
index a8cf447..9f76535 100644
--- a/src/dbbrowser.vala
+++ b/src/dbbrowser.vala
@@ -52,11 +52,8 @@ namespace Xfmpc {
this.mpdclient = Xfmpc.Mpdclient.get_default ();
this.preferences = Xfmpc.Preferences.get_default ();
- this.wdir = preferences.dbbrowser_last_path;
- if (this.wdir != null)
- this.last_wdir = this.wdir.ndup (this.wdir.length);
- else
- this.last_wdir = "";
+ this.wdir = "";
+ this.last_wdir = "";
this.store = new Gtk.ListStore (Columns.N_COLUMNS,
typeof (int),
diff --git a/src/preferences.vala b/src/preferences.vala
index ddadf0d..96487cc 100644
--- a/src/preferences.vala
+++ b/src/preferences.vala
@@ -66,11 +66,6 @@ namespace Xfmpc {
get { return _playlist_autocenter; }
set { _playlist_autocenter = value; store (); }
}
- private string _dbbrowser_last_path;
- public string dbbrowser_last_path {
- get { return _dbbrowser_last_path; }
- set { _dbbrowser_last_path = value; store (); }
- }
private string _mpd_hostname;
public string mpd_hostname {
get { return _mpd_hostname; }
@@ -114,7 +109,6 @@ namespace Xfmpc {
_last_window_height = 330;
_last_window_state_sticky = true;
_playlist_autocenter = true;
- _dbbrowser_last_path = "";
_mpd_hostname = "localhost";
_mpd_port = 6600;
_mpd_password = "";
More information about the Xfce4-commits
mailing list