banshee r3768 - in trunk/banshee: . src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView
- From: scottp svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3768 - in trunk/banshee: . src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView
- Date: Fri, 11 Apr 2008 18:53:55 +0100 (BST)
Author: scottp
Date: Fri Apr 11 18:53:55 2008
New Revision: 3768
URL: http://svn.gnome.org/viewvc/banshee?rev=3768&view=rev
Log:
* src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs:
Make sure we don't handle header-related interaction stuff if the
header isn't shown. Fixes BGO #527510.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
Modified: trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs (original)
+++ trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs Fri Apr 11 18:53:55 2008
@@ -202,7 +202,7 @@
protected override bool OnButtonPressEvent (Gdk.EventButton evnt)
{
HasFocus = true;
- if (header_interaction_alloc.Contains ((int)evnt.X, (int)evnt.Y)) {
+ if (header_visible && header_interaction_alloc.Contains ((int)evnt.X, (int)evnt.Y)) {
return OnHeaderButtonPressEvent (evnt);
} else if (list_interaction_alloc.Contains ((int)evnt.X, (int)evnt.Y) && model != null) {
return OnListButtonPressEvent (evnt);
@@ -327,7 +327,7 @@
return true;
}
- if (header_interaction_alloc.Contains ((int)evnt.X, (int)evnt.Y)) {
+ if (header_visible && header_interaction_alloc.Contains ((int)evnt.X, (int)evnt.Y)) {
return OnHeaderButtonRelease (evnt);
} else if (list_interaction_alloc.Contains ((int)evnt.X, (int)evnt.Y) && model != null &&
(evnt.State & (Gdk.ModifierType.ShiftMask | Gdk.ModifierType.ControlMask)) == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]