[chronojump] Clean warnings
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Clean warnings
- Date: Wed, 15 Dec 2021 15:46:32 +0000 (UTC)
commit 48f4007cac3c19ef091fb6106bfc28a15d2d7aa2
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Dec 15 16:16:49 2021 +0100
Clean warnings
src/gui/app1/chronojump.cs | 4 ++--
src/gui/app1/chronojumpLogo.cs | 11 ++++++-----
src/gui/cairo/xy.cs | 8 ++++----
src/gui/person/personSelect.cs | 8 ++++----
src/gui/sendLogAndPoll.cs | 2 +-
src/gui/webcam.cs | 4 ++--
6 files changed, 19 insertions(+), 18 deletions(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index ece6868f7..e47155dd8 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -832,7 +832,7 @@ public partial class ChronoJumpWindow
if (shouldAskBackupScheduled ())
backupScheduledAsk ();
else if(notebook_sup.CurrentPage == Convert.ToInt32(notebook_sup_pages.START))
- new ChronojumpLogo (notebook_chronojump_logo, drawingarea_chronojump_logo,
viewport_chronojump_logo, preferences.logoAnimatedShow, preferences.fontType.ToString());
+ new ChronojumpLogo (notebook_chronojump_logo, drawingarea_chronojump_logo,
preferences.logoAnimatedShow);
}
//done at the end to ensure main window is shown
@@ -3339,7 +3339,7 @@ public partial class ChronoJumpWindow
tempSessionName = currentSession.Name;
setApp1Title(tempSessionName, Constants.Modes.UNDEFINED);
- new ChronojumpLogo (notebook_chronojump_logo, drawingarea_chronojump_logo,
viewport_chronojump_logo, preferences.logoAnimatedShow, preferences.fontType.ToString());
+ new ChronojumpLogo (notebook_chronojump_logo, drawingarea_chronojump_logo,
preferences.logoAnimatedShow);
}
private void on_button_start_selector_show_more_clicked (object o, EventArgs args)
diff --git a/src/gui/app1/chronojumpLogo.cs b/src/gui/app1/chronojumpLogo.cs
index 205ebf670..dfce31a08 100644
--- a/src/gui/app1/chronojumpLogo.cs
+++ b/src/gui/app1/chronojumpLogo.cs
@@ -40,18 +40,19 @@ public class ChronojumpLogo
private Gtk.Notebook notebook;
private Gtk.DrawingArea drawingarea; //contains the animation
- private Gtk.Viewport viewport; //contains the logo and version number
- private string font;
+ //private Gtk.Viewport viewport; //contains the logo and version number
+ //private string font;
//constructor
- public ChronojumpLogo (Gtk.Notebook notebook, Gtk.DrawingArea drawingarea, Gtk.Viewport viewport,
bool showAnimated, string font)
+ //public ChronojumpLogo (Gtk.Notebook notebook, Gtk.DrawingArea drawingarea, Gtk.Viewport viewport,
bool showAnimated, string font)
+ public ChronojumpLogo (Gtk.Notebook notebook, Gtk.DrawingArea drawingarea, bool showAnimated)
{
LogB.Information("Chronojump logo constructor start");
this.notebook = notebook;
this.drawingarea = drawingarea;
- this.viewport = viewport;
- this.font = font;
+ //this.viewport = viewport;
+ //this.font = font;
if(! showAnimated)
{
diff --git a/src/gui/cairo/xy.cs b/src/gui/cairo/xy.cs
index 8e88b82e4..c168d25fa 100644
--- a/src/gui/cairo/xy.cs
+++ b/src/gui/cairo/xy.cs
@@ -71,9 +71,9 @@ public abstract class CairoXY : CairoGeneric
protected Cairo.Color black;
protected Cairo.Color gray99;
- Cairo.Color white;
+ //Cairo.Color white;
protected Cairo.Color red;
- Cairo.Color blue;
+ //Cairo.Color blue;
protected Cairo.Color bluePlots;
private int crossMargins = 10; //cross slope line with margins will have this length
@@ -148,9 +148,9 @@ public abstract class CairoXY : CairoGeneric
black = colorFromRGB(0,0,0);
gray99 = colorFromRGB(99,99,99);
- white = colorFromRGB(255,255,255);
+ //white = colorFromRGB(255,255,255);
red = colorFromRGB(200,0,0);
- blue = colorFromRGB(178, 223, 238); //lightblue
+ //blue = colorFromRGB(178, 223, 238); //lightblue
bluePlots = colorFromRGB(0, 0, 200);
predictedPointDone = false;
diff --git a/src/gui/person/personSelect.cs b/src/gui/person/personSelect.cs
index 3d617f29c..e95d33e08 100644
--- a/src/gui/person/personSelect.cs
+++ b/src/gui/person/personSelect.cs
@@ -37,9 +37,9 @@ public class PersonSelectWindow
[Widget] Gtk.Button button_edit;
[Widget] Gtk.Button button_show_all_events;
[Widget] Gtk.Button button_delete;
- [Widget] Gtk.VBox vbox_button_delete_confirm;
+ //[Widget] Gtk.VBox vbox_button_delete_confirm;
[Widget] Gtk.Label label_selected_person_name;
- [Widget] Gtk.Label label_confirm;
+ //[Widget] Gtk.Label label_confirm;
[Widget] Gtk.Button button_manage_persons;
[Widget] Gtk.Image image_manage_persons;
[Widget] Gtk.Image image_person_new;
@@ -74,7 +74,7 @@ public class PersonSelectWindow
private List<PersonPhotoButton> list_ppb;
- private bool showImages;
+ //private bool showImages;
private uint columns;
PersonSelectWindow (Gtk.Window parent, bool raspberry, bool lowHeight)
@@ -165,7 +165,7 @@ public class PersonSelectWindow
PersonSelectWindowBox.button_manage_persons.Sensitive = true;
PersonSelectWindowBox.vbox_corner_controls.Sensitive = true;
- PersonSelectWindowBox.showImages = showImages;
+ //PersonSelectWindowBox.showImages = showImages;
if(showImages)
{
PersonSelectWindowBox.check_show_images.Active = true;
diff --git a/src/gui/sendLogAndPoll.cs b/src/gui/sendLogAndPoll.cs
index 9c457e54f..ca4c6ae91 100644
--- a/src/gui/sendLogAndPoll.cs
+++ b/src/gui/sendLogAndPoll.cs
@@ -292,7 +292,7 @@ public partial class ChronoJumpWindow
SqlitePreferences.Update(SqlitePreferences.LoadLastModeAtStart, true, false);
} else {
notebook_sup.CurrentPage = Convert.ToInt32(notebook_sup_pages.START);
- new ChronojumpLogo (notebook_chronojump_logo, drawingarea_chronojump_logo,
viewport_chronojump_logo, preferences.logoAnimatedShow, preferences.fontType.ToString());
+ new ChronojumpLogo (notebook_chronojump_logo, drawingarea_chronojump_logo,
preferences.logoAnimatedShow);
}
}
}
diff --git a/src/gui/webcam.cs b/src/gui/webcam.cs
index 4dfa6ed32..5b0a4454e 100644
--- a/src/gui/webcam.cs
+++ b/src/gui/webcam.cs
@@ -35,8 +35,8 @@ public partial class ChronoJumpWindow
[Widget] Gtk.CheckButton checkbutton_video_encoder;
//[Widget] Gtk.HBox hbox_video_contacts;
[Widget] Gtk.Notebook notebook_video_contacts;
- [Widget] Gtk.HBox hbox_video_contacts_no_capturing;
- [Widget] Gtk.HBox hbox_video_contacts_capturing;
+ //[Widget] Gtk.HBox hbox_video_contacts_no_capturing;
+ //[Widget] Gtk.HBox hbox_video_contacts_capturing;
[Widget] Gtk.HBox hbox_video_encoder;
[Widget] Gtk.HBox hbox_video_encoder_no_capturing;
[Widget] Gtk.HBox hbox_video_encoder_capturing;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]