[chronojump] Fixed some compilation warnings
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed some compilation warnings
- Date: Mon, 11 Dec 2017 14:47:21 +0000 (UTC)
commit e61ca30d667cd986dfb7986373aa29365a99096c
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Dec 11 15:46:07 2017 +0100
Fixed some compilation warnings
src/gui/dialogPersonPopup.cs | 1 -
src/gui/person.cs | 16 ++--------------
src/gui/repetitiveConditions.cs | 1 -
src/gui/splash.cs | 8 +++++---
src/gui/sprint.cs | 1 -
src/sprint.cs | 1 -
6 files changed, 7 insertions(+), 21 deletions(-)
---
diff --git a/src/gui/dialogPersonPopup.cs b/src/gui/dialogPersonPopup.cs
index 2cd094b..8a9d61c 100644
--- a/src/gui/dialogPersonPopup.cs
+++ b/src/gui/dialogPersonPopup.cs
@@ -33,7 +33,6 @@ public class DialogPersonPopup
[Widget] Gtk.Image image_person_logout;
[Widget] Gtk.Image image_close;
[Widget] Gtk.Label label_rfid;
- [Widget] Gtk.Notebook notebook;
[Widget] Gtk.VBox vbox_tasks_parametrized;
[Widget] Gtk.Label label_server_connected;
diff --git a/src/gui/person.cs b/src/gui/person.cs
index e621f32..5a2b2e9 100644
--- a/src/gui/person.cs
+++ b/src/gui/person.cs
@@ -1751,9 +1751,7 @@ public class PersonAddMultipleWindow {
[Widget] Gtk.Image image_name1;
[Widget] Gtk.Image image_name2;
- [Widget] Gtk.Image image_name1_help;
- [Widget] Gtk.Image image_name2_help;
-
+
[Widget] Gtk.CheckButton check_headers;
[Widget] Gtk.CheckButton check_name_1_column;
@@ -1764,7 +1762,6 @@ public class PersonAddMultipleWindow {
ArrayList spins;
int rows;
- bool created_table;
[Widget] Gtk.ScrolledWindow scrolledwindow;
[Widget] Gtk.Table table_main;
@@ -1780,7 +1777,6 @@ public class PersonAddMultipleWindow {
string errorExistsString;
string errorWeightString;
string errorRepeatedEntryString;
- string tableAlreadyCreatedString = Catalog.GetString("Table has already been created.");
PersonAddMultipleWindow (Gtk.Window parent, Session currentSession) {
@@ -1804,8 +1800,6 @@ public class PersonAddMultipleWindow {
PersonAddMultipleWindowBox.putNonStandardIcons ();
PersonAddMultipleWindowBox.tablesVisibility ();
- PersonAddMultipleWindowBox.created_table = false;
-
PersonAddMultipleWindowBox.person_multiple_infinite.Show ();
return PersonAddMultipleWindowBox;
@@ -2121,13 +2115,7 @@ public class PersonAddMultipleWindow {
table_main.Show();
scrolledwindow.Visible = true;
notebook.CurrentPage = 0;
-
- //once loaded table cannot be created again
- //don't do this: it crashes
- //button_manually_created.Sensitive = false;
- //do this:
- created_table = true;
-
+
button_accept.Sensitive = true;
}
diff --git a/src/gui/repetitiveConditions.cs b/src/gui/repetitiveConditions.cs
index 4156f62..97bb005 100644
--- a/src/gui/repetitiveConditions.cs
+++ b/src/gui/repetitiveConditions.cs
@@ -72,7 +72,6 @@ public class RepetitiveConditionsWindow
/* encoder */
[Widget] Gtk.Frame frame_encoder_automatic_conditions;
[Widget] Gtk.RadioButton radio_encoder_relative_to_set;
- [Widget] Gtk.RadioButton radio_encoder_relative_to_historical;
[Widget] Gtk.HBox hbox_combo_encoder_variable_automatic;
[Widget] Gtk.ComboBox combo_encoder_variable_automatic;
[Widget] Gtk.CheckButton checkbutton_encoder_automatic_greater;
diff --git a/src/gui/splash.cs b/src/gui/splash.cs
index f3eab8e..5b20bc9 100644
--- a/src/gui/splash.cs
+++ b/src/gui/splash.cs
@@ -40,8 +40,8 @@ public class SplashWindow
[Widget] Gtk.Button fakeButtonClose;
public bool FakeButtonCreated = false;
- string progVersion = "";
-
+ //string progVersion = "";
+
static SplashWindow SplashWindowBox;
public SplashWindow ()
@@ -193,9 +193,11 @@ public class SplashWindow
LogB.Debug("splash_window hide end");
}
+ /*
public string ProgVersion {
- set { progVersion = value; }
+ set { grogVersion = value; }
}
+ */
private void on_delete_event (object o, DeleteEventArgs args) {
splash_window.Destroy ();
diff --git a/src/gui/sprint.cs b/src/gui/sprint.cs
index 094ed54..8b777d1 100644
--- a/src/gui/sprint.cs
+++ b/src/gui/sprint.cs
@@ -104,7 +104,6 @@ LogB.Information("SPRINT create f");
{
LogB.Information("SPRINT add 0");
if(storeSprint == null)
-LogB.Information("SPRINT add 1");
{
createTreeView_runs_interval_sprint (treeview_runs_interval_sprint);
LogB.Information("SPRINT add 2");
diff --git a/src/sprint.cs b/src/sprint.cs
index 0027274..36c1f04 100644
--- a/src/sprint.cs
+++ b/src/sprint.cs
@@ -124,7 +124,6 @@ public class Sprint
string [] splitTimesArray = splitTimes.Split(new char[] {';'});
List<double> splitTimesList = new List<double>();
- int count = 0;
foreach(string time in splitTimesArray)
{
double timeD = Convert.ToDouble(time);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]