blam r538 - trunk/src
- From: cmartin svn gnome org
- To: svn-commits-list gnome org
- Subject: blam r538 - trunk/src
- Date: Sun, 6 Apr 2008 15:10:21 +0100 (BST)
Author: cmartin
Date: Sun Apr 6 15:10:20 2008
New Revision: 538
URL: http://svn.gnome.org/viewvc/blam?rev=538&view=rev
Log:
Toggle viewing the item list with the i key.
Modified:
trunk/src/Application.cs
Modified: trunk/src/Application.cs
==============================================================================
--- trunk/src/Application.cs (original)
+++ trunk/src/Application.cs Sun Apr 6 15:10:20 2008
@@ -202,6 +202,13 @@
mainWindow.ShowAll ();
+ int ShowItemList = Conf.Get("ui/show_item_list", 1);
+ if(ShowItemList == 1){
+ itemPaned.Child1.Visible = true;
+ } else {
+ itemPaned.Child1.Visible = false;
+ }
+
channelDialog = new ChannelDialog (this);
addChannelDialog = new AddChannelDialog (this);
preferencesDialog = new PreferencesDialog (this.Window);
@@ -211,6 +218,17 @@
}
+ public void ToggleItemList()
+ {
+ if(itemPaned.Child1.Visible){
+ itemPaned.Child1.Visible = false;
+ Conf.Set("ui/show_item_list", 0);
+ } else {
+ itemPaned.Child1.Visible = true;
+ Conf.Set("ui/show_item_list", 1);
+ }
+ }
+
#if ENABLE_DBUS
private void SetupDBus()
{
@@ -330,6 +348,10 @@
case (Gdk.Key.Escape):
mainWindow.Hide ();
break;
+ case (Gdk.Key.I):
+ case (Gdk.Key.i):
+ ToggleItemList();
+ break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]