banshee r5081 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r5081 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor
- Date: Fri, 27 Feb 2009 18:15:32 +0000 (UTC)
Author: gburt
Date: Fri Feb 27 18:15:32 2009
New Revision: 5081
URL: http://svn.gnome.org/viewvc/banshee?rev=5081&view=rev
Log:
2009-02-27 Gabriel Burt <gabriel burt gmail com>
* src/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/StatisticsPage.cs:
Patch from Alexander Kojevnikov making it so that even if the statistics
TreeView is focused you can still use ctrl-pageup/down to switch tabs in
the track editor (BGO #565438)
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/StatisticsPage.cs
Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/StatisticsPage.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/StatisticsPage.cs (original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/StatisticsPage.cs Fri Feb 27 18:15:32 2009
@@ -33,6 +33,22 @@
namespace Banshee.Gui.TrackEditor
{
+ internal class FixedTreeView : TreeView
+ {
+ public FixedTreeView (ListStore model) : base (model)
+ {
+ }
+
+ protected override bool OnKeyPressEvent (Gdk.EventKey evnt)
+ {
+ if ((evnt.State & Gdk.ModifierType.ControlMask) != 0 &&
+ (evnt.Key == Gdk.Key.Page_Up || evnt.Key == Gdk.Key.Page_Down)) {
+ return false;
+ }
+ return base.OnKeyPressEvent (evnt);
+ }
+ }
+
public class StatisticsPage : ScrolledWindow, ITrackEditorPage
{
private CellRendererText name_renderer;
@@ -45,7 +61,7 @@
VscrollbarPolicy = PolicyType.Automatic;
HscrollbarPolicy = PolicyType.Never;
- view = new TreeView (model);
+ view = new FixedTreeView (model);
view.HeadersVisible = false;
view.RowSeparatorFunc = new TreeViewRowSeparatorFunc (RowSeparatorFunc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]