[chronojump] Camera: Added label Win: for Windows 7 at least required



commit 90c8d4c7e6c30c8a24e04f577bd9decff6198e56
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Feb 8 17:34:01 2019 +0100

    Camera: Added label Win: for Windows 7 at least required

 glade/preferences_win.glade | 11 +++++++++++
 src/gui/preferences.cs      |  4 ++++
 2 files changed, 15 insertions(+)
---
diff --git a/glade/preferences_win.glade b/glade/preferences_win.glade
index 1da9b1d6..e3030cb8 100644
--- a/glade/preferences_win.glade
+++ b/glade/preferences_win.glade
@@ -3407,6 +3407,17 @@ Other</property>
                         <property name="position">2</property>
                       </packing>
                     </child>
+                    <child>
+                      <widget class="GtkLabel" id="label_webcam_windows">
+                        <property name="can_focus">False</property>
+                        <property name="label" translatable="yes">On Windows at lest Windows 7 is 
required.</property>
+                      </widget>
+                      <packing>
+                        <property name="expand">True</property>
+                        <property name="fill">True</property>
+                        <property name="position">3</property>
+                      </packing>
+                    </child>
                   </widget>
                   <packing>
                     <property name="expand">False</property>
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index 473e71f8..500f6e67 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -144,6 +144,7 @@ public class PreferencesWindow
        [Widget] Gtk.Box hbox_combo_camera;
        [Widget] Gtk.ComboBox combo_camera;
        [Widget] Gtk.Label label_no_cameras;
+       [Widget] Gtk.Label label_webcam_windows;
 
        //language tab
        [Widget] Gtk.Box hbox_combo_language;
@@ -267,6 +268,9 @@ public class PreferencesWindow
 
                PreferencesWindowBox.label_no_cameras.Visible = false;
 
+               if(UtilAll.IsWindows())
+                       PreferencesWindowBox.label_webcam_windows.Visible = true;
+
                if(UtilAll.IsWindows())
                {
                        PreferencesWindowBox.table_gstreamer.Visible = false;


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