[chronojump] Added Install driver message on CP window
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Added Install driver message on CP window
- Date: Fri, 8 Feb 2013 20:49:41 +0000 (UTC)
commit a6699bd091f8c3686c67e5da6751c055807d5590
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Feb 8 21:28:32 2013 +0100
Added Install driver message on CP window
glade/chronojump.glade | 81 ++----------------------------------------------
src/gui/chronopic.cs | 11 +------
2 files changed, 4 insertions(+), 88 deletions(-)
---
diff --git a/glade/chronojump.glade b/glade/chronojump.glade
index 7785bcc..1e7997f 100644
--- a/glade/chronojump.glade
+++ b/glade/chronojump.glade
@@ -15160,81 +15160,6 @@ Just select and then close this window.</property>
</packing>
</child>
<child>
- <widget class="GtkFrame" id="frame3">
- <property name="can_focus">False</property>
- <property name="label_xalign">0</property>
- <property name="label_yalign">0.69999998807907104</property>
- <property name="shadow_type">out</property>
- <child>
- <widget class="GtkVBox" id="vbox6">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">6</property>
- <child>
- <widget class="GtkHBox" id="hbox1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">12</property>
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow1">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">automatic</property>
- <property name="vscrollbar_policy">automatic</property>
- <child>
- <widget class="GtkTextView" id="textview_ports_found">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">False</property>
- <property name="left_margin">4</property>
- <property name="right_margin">4</property>
- <property name="cursor_visible">False</property>
- <property name="accepts_tab">False</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <placeholder/>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <placeholder/>
- </child>
- </widget>
- </child>
- <child>
- <widget class="GtkLabel" id="label4">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Chronopic is on one of these ports</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
- </widget>
- <packing>
- <property name="type">label_item</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
- </child>
- <child>
<widget class="GtkTextView" id="textview_ports_found_explanation">
<property name="visible">True</property>
<property name="sensitive">False</property>
@@ -15251,7 +15176,7 @@ Just select and then close this window.</property>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
- <property name="position">3</property>
+ <property name="position">2</property>
</packing>
</child>
<child>
@@ -15310,8 +15235,8 @@ Just select and then close this window.</property>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
- <property name="padding">6</property>
- <property name="position">4</property>
+ <property name="padding">4</property>
+ <property name="position">3</property>
</packing>
</child>
</widget>
diff --git a/src/gui/chronopic.cs b/src/gui/chronopic.cs
index e560f3a..189f5e2 100644
--- a/src/gui/chronopic.cs
+++ b/src/gui/chronopic.cs
@@ -82,7 +82,6 @@ public class ChronopicWindow
//[Widget] Gtk.Button button_reload;
[Widget] Gtk.Image chronopic_image;
- [Widget] Gtk.TextView textview_ports_found;
[Widget] Gtk.TextView textview_ports_found_explanation;
//chronopic connection thread
@@ -448,19 +447,11 @@ Log.WriteLine("bbb");
string saferPorts = "";
if(Util.IsWindows())
saferPorts =
- "\n\n" + Catalog.GetString("COM3 use to be the correct port (if available).") + "\n" +
+ "\n\n" + Catalog.GetString("If you have problems connecting with Chronopic, ensure you have the driver installed at 'Windows Start Menu / Chronojump / Install Chronopic driver'.") + "\n" +
Catalog.GetString("Ports above COM4 may not work.") + "\n" +
Catalog.GetString("If you want a safer port, press help button and press 'Force Chronopic to port COM1 - COM4'.");
- if(Util.IsWindows())
- textview_ports_found.Buffer = UtilGtk.TextViewPrint(
- Util.StringArrayToString(SerialPort.GetPortNames(),"\n"));
- else
- textview_ports_found.Buffer = UtilGtk.TextViewPrint(
- Util.DetectPortsLinux(false));
-
textview_ports_found_explanation.Buffer = UtilGtk.TextViewPrint(
- Catalog.GetString("These are USB devices like Chronopic but also pendrives, USB printers...") + "\n" +
Catalog.GetString("If you just plugged Chronopic cable and expected port is not listed, close and open again this window.") +
saferPorts
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]