[chronojump] small fix
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] small fix
- Date: Wed, 30 Jan 2013 00:46:17 +0000 (UTC)
commit 1a74a15b7fe656513422e60c8090c4d5b98940ba
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Jan 30 01:34:40 2013 +0100
small fix
src/gui/chronojump.cs | 24 ------------------------
src/gui/chronopic.cs | 11 +++++------
2 files changed, 5 insertions(+), 30 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 7a69ebd..8fe7660 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -3936,7 +3936,6 @@ Log.WriteLine("DDD 2");
chronopicWin = ChronopicWindow.Create(cpd, Util.GetDefaultPort(), recreate, volumeOn);
//chronopicWin.FakeButtonCancelled.Clicked += new EventHandler(on_chronopic_window_cancelled);
-Log.WriteLine("jjjjjjjjjjjjjjjjjjjjjjjjjjj");
chronopicLabels(0, recreate);
}
@@ -3980,7 +3979,6 @@ Log.WriteLine("jjjjjjjjjjjjjjjjjjjjjjjjjjj");
}
private void chronopicLabels(int cps, bool colorize) {
-Log.WriteLine("kkkkkkkkkkkkkkkkkkkkkkkkkkk");
string text = "<b>" + cps.ToString() + "</b>";
if(chronopicWin.GetEncoderPort() != Util.GetDefaultPort())
@@ -3992,28 +3990,6 @@ Log.WriteLine("kkkkkkkkkkkkkkkkkkkkkkkkkkk");
if(colorize)
UtilGtk.ChronopicColors(viewport_chronopics, label_chronopics, label_connected_chronopics,
(chronopicWin.Connected || chronopicWin.GetEncoderPort() != "") );
-
- /*
- string myMessage = "";
- if(cps == 0)
- myMessage = Constants.SimulatedMessage;
- else if(cps == 1)
- myMessage = Constants.ChronopicOne;
- else
- myMessage = Constants.ChronopicMore;
-
- TextBuffer tb = new TextBuffer (new TextTagTable());
- tb.Text = myMessage;
- textview_message_connected_chronopics.Buffer = tb;
- */
-
- /*
- * hidden to save space
- if(cps > 0)
- image_connected_chronopics.Hide();
- else
- image_connected_chronopics.Show();
- */
}
diff --git a/src/gui/chronopic.cs b/src/gui/chronopic.cs
index 2acfc8c..5f22371 100644
--- a/src/gui/chronopic.cs
+++ b/src/gui/chronopic.cs
@@ -347,13 +347,12 @@ Log.WriteLine("bbb");
//this reduces the callbacks of combo change
combo_windows_encoder.Sensitive = false;
- if(encoderPort == Util.GetDefaultPort()) {
- UtilGtk.ComboUpdate(combo_windows_encoder, allWithDef, Constants.ChronopicDefaultPortWindows);
+ UtilGtk.ComboUpdate(combo_windows_encoder, allWithDef, encoderPort);
+
+ if(encoderPort == Util.GetDefaultPort())
combo_windows_encoder.Changed += new EventHandler (on_combo_changed);
- } else {
- UtilGtk.ComboUpdate(combo_windows_encoder, allWithDef, encoderPort);
- combo_windows_encoder.Active = UtilGtk.ComboMakeActive(comboWindowsOptions, encoderPort);
- }
+
+ combo_windows_encoder.Active = UtilGtk.ComboMakeActive(comboWindowsOptions, encoderPort);
combo_windows_encoder.Sensitive = true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]