banshee r3344 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Sources.Gui



Author: gburt
Date: Thu Feb 28 00:08:50 2008
New Revision: 3344
URL: http://svn.gnome.org/viewvc/banshee?rev=3344&view=rev

Log:
2008-02-27  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs: Do not
	activate a Source when its expander is clicked.


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs	Thu Feb 28 00:08:50 2008
@@ -147,13 +147,16 @@
         protected override bool OnButtonPressEvent (Gdk.EventButton evnt)
         {
             TreePath path;
+            TreeViewColumn column;
                        
             if (evnt.Button == 1) {
                 ResetHighlight ();
             }
             
-            if (!GetPathAtPos ((int)evnt.X, (int)evnt.Y, out path)) {
-                return true;
+            // If there is row at the click position, or if the column clicked on was the expander column,
+            // let the base handler take care of it.
+            if (!GetPathAtPos ((int)evnt.X, (int)evnt.Y, out path, out column) || column == ExpanderColumn) {
+                return base.OnButtonPressEvent (evnt);
             }
 
             Source source = GetSource (path);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]