[blam] Make the "ui/show_item_list" magic string a preference
- From: Carlos Martín Nieto <cmartin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blam] Make the "ui/show_item_list" magic string a preference
- Date: Sat, 5 Jun 2010 22:52:04 +0000 (UTC)
commit 603521e661fb9be984413f299639225788cdf68a
Author: Carlos MartÃn Nieto <carlos cmartin tk>
Date: Fri Jun 4 17:24:52 2010 +0200
Make the "ui/show_item_list" magic string a preference
You still can't configure it through the dialog
src/Application.cs | 8 ++++----
src/PreferencesDialog.cs | 1 +
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/Application.cs b/src/Application.cs
index a2373df..fdfa8b6 100644
--- a/src/Application.cs
+++ b/src/Application.cs
@@ -238,8 +238,8 @@ namespace Imendio.Blam {
mainWindow.ShowAll ();
- int ShowItemList = Conf.Get("ui/show_item_list", 1);
- if(ShowItemList == 1){
+ bool ShowItemList = Conf.Get(Preference.SHOW_ITEM_LIST, true);
+ if(ShowItemList){
itemPaned.Child1.Visible = true;
} else {
itemPaned.Child1.Visible = false;
@@ -259,10 +259,10 @@ namespace Imendio.Blam {
{
if(itemPaned.Child1.Visible){
itemPaned.Child1.Visible = false;
- Conf.Set("ui/show_item_list", 0);
+ Conf.Set(Preference.SHOW_ITEM_LIST, false);
} else {
itemPaned.Child1.Visible = true;
- Conf.Set("ui/show_item_list", 1);
+ Conf.Set(Preference.SHOW_ITEM_LIST, true);
}
}
diff --git a/src/PreferencesDialog.cs b/src/PreferencesDialog.cs
index c6252f1..d3e6311 100644
--- a/src/PreferencesDialog.cs
+++ b/src/PreferencesDialog.cs
@@ -23,6 +23,7 @@ namespace Imendio.Blam {
public static string VARIABLE_FONT = "/desktop/gnome/interface/font_name";
public static string FIXED_FONT = "/desktop/gnome/interface/monospace_font_name";
public static string THEME = "ui/theme";
+ public static string SHOW_ITEM_LIST = "ui/show_item_list";
public static string MARK_ITEMS_READ_TIMEOUT = "behaviour/set_item_read_timeout";
public static string MARK_ITEMS_READ = "behaviour/set_item_read";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]