[chronojump] Clean Warnings
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Clean Warnings
- Date: Mon, 20 Dec 2021 15:15:19 +0000 (UTC)
commit 5c1d088d0c524df4beafd14fd8f38425c74b1d4c
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Dec 20 16:14:08 2021 +0100
Clean Warnings
src/gui/app1/chronojumpLogo.cs | 2 +-
src/gui/cairo/radial.cs | 4 ----
src/gui/cairo/runDoubleContacts.cs | 8 ++++++--
src/gui/eventExecute.cs | 8 +++++---
src/gui/person/personSelect.cs | 2 +-
5 files changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/src/gui/app1/chronojumpLogo.cs b/src/gui/app1/chronojumpLogo.cs
index ec0cc646a..7779c5b2a 100644
--- a/src/gui/app1/chronojumpLogo.cs
+++ b/src/gui/app1/chronojumpLogo.cs
@@ -143,7 +143,7 @@ public class ChronojumpLogo
chronojumpLogo_showChronojump (cr, x, y);
- ((IDisposable) cr.Target).Dispose();
+ ((IDisposable) cr.GetTarget()).Dispose();
((IDisposable) cr).Dispose();
}
diff --git a/src/gui/cairo/radial.cs b/src/gui/cairo/radial.cs
index c3fe928e4..1b7c4675a 100644
--- a/src/gui/cairo/radial.cs
+++ b/src/gui/cairo/radial.cs
@@ -28,13 +28,9 @@ using Mono.Unix;
public class CairoRadial : CairoGeneric
{
private Cairo.Context g;
- private int textHeight;
private int margin = 6;
private int offsetV = 6; //to move the graph vertically
private Gtk.DrawingArea area;
- private string font;
- private int graphWidth;
- private int graphHeight;
private double minSide;
private Cairo.Color black;
private Cairo.Color colorArrow;
diff --git a/src/gui/cairo/runDoubleContacts.cs b/src/gui/cairo/runDoubleContacts.cs
index 7d3d35911..ebd1ead19 100644
--- a/src/gui/cairo/runDoubleContacts.cs
+++ b/src/gui/cairo/runDoubleContacts.cs
@@ -30,8 +30,6 @@ public class CairoRunDoubleContacts : CairoGeneric
protected Cairo.Context g;
protected Cairo.Color black;
protected Cairo.Color colorBackground;
- protected int rightMargin = 35; //TODO: on windows should be 55
- protected int bottomMargin = 0;
public CairoRunDoubleContacts () //for inheritance
{
@@ -42,6 +40,9 @@ public class CairoRunDoubleContacts : CairoGeneric
this.area = area;
this.font = font;
+ rightMargin = 35; //TODO: on windows should be 55
+ bottomMargin = 0;
+
initGraph();
}
@@ -189,6 +190,9 @@ public class CairoRunIntervalDoubleContacts : CairoRunDoubleContacts
this.font = font;
this.intervalTimesString = intervalTimesString;
+ rightMargin = 35; //TODO: on windows should be 55
+ bottomMargin = 0;
+
initGraph();
}
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index e7ca12ce3..522ec8bc0 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -1341,7 +1341,7 @@ public partial class ChronoJumpWindow
int marginLeft = Convert.ToInt32(.5 * ancho - .5 * maxWidth);
int totalHeight = lHeight1 + lHeight2 + 4 * marginIn;
- int marginTop = Convert.ToInt32(.5 * topMargin - .5 * totalHeight);
+ //int marginTop = Convert.ToInt32(.5 * topMargin - .5 * totalHeight);
//TODO: need to implement marginTop below
//A rectangle drawn filled is 1 pixel smaller in both dimensions than a rectangle outlined.
@@ -1853,10 +1853,12 @@ public partial class ChronoJumpWindow
if(thisRunIsSimple)
PrepareRunSimpleGraph(currentEventExecute.PrepareEventGraphRunSimpleObject, animate);
else {
+ /*
bool volumeOnHere = preferences.volumeOn;
//do not play good or bad sounds at RSA because we need to hear the
GO sound
if(currentRunIntervalType.IsRSA)
volumeOnHere = false;
+ */
PrepareRunIntervalRealtimeCaptureGraph(
currentEventExecute.PrepareEventGraphRunIntervalRealtimeCaptureObject.distance,
@@ -2352,7 +2354,7 @@ public abstract class CairoPaintBarsPre
string wordsAccu = "";
string [] words = personName.Split(new char[] {' '});
- bool newLineDone = false;
+ //bool newLineDone = false;
foreach(string word in words)
{
if(wordsAccu == "")
@@ -2362,7 +2364,7 @@ public abstract class CairoPaintBarsPre
else {
str += vertSep + wordsAccu;
vertSep = "\n";
- newLineDone = true;
+ //newLineDone = true;
wordsAccu = word;
rows ++;
}
diff --git a/src/gui/person/personSelect.cs b/src/gui/person/personSelect.cs
index e95d33e08..dad899a39 100644
--- a/src/gui/person/personSelect.cs
+++ b/src/gui/person/personSelect.cs
@@ -520,7 +520,7 @@ public class PersonPhotoButton
Array box_elements = getButtonBoxElements(button);
//image
- Gtk.Image image = (Gtk.Image) box_elements.GetValue(0); //the image
+ //Gtk.Image image = (Gtk.Image) box_elements.GetValue(0); //the image
Gtk.Viewport viewport = (Gtk.Viewport) box_elements.GetValue(2); //the name
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]