[chronojump] Temporarily disabled json stuff



commit 301553d001bc6be312f3125b37674a944beda48f
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Feb 18 00:05:42 2015 +0100

    Temporarily disabled json stuff

 build/build.environment.mk |    4 +---
 src/Makefile.am            |    1 -
 src/chronojump.cs          |    2 ++
 src/gui/chronojump.cs      |   12 ++++++++++++
 src/gui/error.cs           |    5 +++++
 5 files changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/build/build.environment.mk b/build/build.environment.mk
index 3cf85d3..9b4a519 100644
--- a/build/build.environment.mk
+++ b/build/build.environment.mk
@@ -25,7 +25,6 @@ LINK_GLADE = $(GLADE_SHARP_20_LIBS)
 LINK_CESARPLAYER = -r:$(DIR_BIN)/CesarPlayer.dll
 LINK_RDOTNET = -r:$(DIR_BIN)/RDotNet.dll
 LINK_RDOTNET_NATIVE = -r:$(DIR_BIN)/RDotNet.NativeLibrary.dll
-LINK_JSON = -r:System.Json.dll
 
 REF_DEP_CHRONOJUMP = \
        $(LINK_SYSTEM) \
@@ -40,8 +39,7 @@ REF_DEP_CHRONOJUMP = \
        $(LINK_GTK) \
        $(LINK_CESARPLAYER) \
        $(LINK_RDOTNET) \
-       $(LINK_RDOTNET_NATIVE) \
-       $(LINK_JSON)
+       $(LINK_RDOTNET_NATIVE)
 
 REF_DEP_CESARPLAYER = \
        $(LINK_SYSTEM) \
diff --git a/src/Makefile.am b/src/Makefile.am
index 9a6cfb1..3f81c8d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -121,7 +121,6 @@ SOURCES = \
        event.cs\
        eventType.cs\
        genericObjects.cs\
-       json.cs\
        jump.cs\
        jumpType.cs\
        person.cs\
diff --git a/src/chronojump.cs b/src/chronojump.cs
index 0d18dd4..64f15ed 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -369,6 +369,7 @@ public class ChronoJump
                versionAvailable = Constants.ServerOffline;
        
 
+               /*
                //doing ping using json methods
                Json js = new Json();
                bool success = js.Ping(UtilAll.GetOS(), progVersion);
@@ -376,6 +377,7 @@ public class ChronoJump
                        LogB.Information(js.ResultMessage);
                else
                        LogB.Error(js.ResultMessage);
+                       */
 
                
                allSQLCallsDoneOnSqliteThingsThread = false;
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 113f7c0..9e849b7 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -5929,6 +5929,7 @@ LogB.Debug("X");
        }
        
        private void on_menuitem_check_last_version_activate (object o, EventArgs args) {
+               /*
                Json js = new Json();
                bool success = js.GetLastVersion();
 
@@ -5946,9 +5947,15 @@ LogB.Debug("X");
                                        Constants.MessageTypes.WARNING, 
                                        js.ResultMessage);
                }
+               */
+               new DialogMessage(
+                               "Chronojump",
+                               Constants.MessageTypes.INFO, 
+                               "Temporarily Disabled");
        }
        
        private void on_menuitem_ping_activate (object o, EventArgs args) {
+               /*
                Json js = new Json();
                bool success = js.Ping(UtilAll.GetOS(), UtilAll.ReadVersion());
 
@@ -5966,6 +5973,11 @@ LogB.Debug("X");
                                        Constants.MessageTypes.WARNING, 
                                        js.ResultMessage);
                }
+               */
+               new DialogMessage(
+                               "Chronojump",
+                               Constants.MessageTypes.INFO, 
+                               "Temporarily Disabled");
        }
 
 
diff --git a/src/gui/error.cs b/src/gui/error.cs
index 607e75f..34c3525 100644
--- a/src/gui/error.cs
+++ b/src/gui/error.cs
@@ -95,9 +95,13 @@ public class ErrorWindow
                        entry_send_log.Text = emailStored;
                
                hbox_send_log.Show();
+               
+               button_send_log.Label = "Disabled";
+               button_send_log.Sensitive = false;
        }
        private void on_button_send_log_clicked (object o, EventArgs args)
        {
+               /*
                string email = entry_send_log.Text.ToString();
                //email can be validated with Util.IsValidEmail(string)
                //or other methods, but maybe there's no need of complexity now 
@@ -129,6 +133,7 @@ public class ErrorWindow
                }
 
                label_send_log_message.Text = js.ResultMessage;
+               */
        }
 
        public void Show_button_open_database_folder () {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]