[longomatch] Disable anchors' selection if links are not visible
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Disable anchors' selection if links are not visible
- Date: Fri, 17 Apr 2015 16:26:47 +0000 (UTC)
commit ea5755a5b90ac4dda01fa93d3aa2c3924f6902c4
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Apr 14 15:17:50 2015 +0200
Disable anchors' selection if links are not visible
.../CanvasObjects/Dashboard/CategoryObject.cs | 12 +++++++-----
.../Dashboard/DashboardButtonObject.cs | 2 +-
2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch.Drawing/CanvasObjects/Dashboard/CategoryObject.cs
b/LongoMatch.Drawing/CanvasObjects/Dashboard/CategoryObject.cs
index fa4513b..785edf0 100644
--- a/LongoMatch.Drawing/CanvasObjects/Dashboard/CategoryObject.cs
+++ b/LongoMatch.Drawing/CanvasObjects/Dashboard/CategoryObject.cs
@@ -302,13 +302,15 @@ namespace LongoMatch.Drawing.CanvasObjects.Dashboard
public override Selection GetSelection (Point p, double precision, bool inMotion = false)
{
- Selection sel = anchor.GetSelection (p, precision, inMotion);
- if (sel != null)
- return sel;
- foreach (LinkAnchorObject subcatAnchor in subcatAnchors.Values) {
- sel = subcatAnchor.GetSelection (p, precision, inMotion);
+ if (ShowLinks) {
+ Selection sel = anchor.GetSelection (p, precision, inMotion);
if (sel != null)
return sel;
+ foreach (LinkAnchorObject subcatAnchor in subcatAnchors.Values) {
+ sel = subcatAnchor.GetSelection (p, precision, inMotion);
+ if (sel != null)
+ return sel;
+ }
}
return base.GetSelection (p, precision, inMotion);
}
diff --git a/LongoMatch.Drawing/CanvasObjects/Dashboard/DashboardButtonObject.cs
b/LongoMatch.Drawing/CanvasObjects/Dashboard/DashboardButtonObject.cs
index e8165c5..d964ad8 100644
--- a/LongoMatch.Drawing/CanvasObjects/Dashboard/DashboardButtonObject.cs
+++ b/LongoMatch.Drawing/CanvasObjects/Dashboard/DashboardButtonObject.cs
@@ -180,7 +180,7 @@ namespace LongoMatch.Drawing.CanvasObjects.Dashboard
public override Selection GetSelection (Point p, double precision, bool inMotion = false)
{
- if (SupportsLinks) {
+ if (ShowLinks && SupportsLinks) {
Selection sel = anchor.GetSelection (p, precision, inMotion);
if (sel != null)
return sel;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]