aboutsummaryrefslogtreecommitdiffstats
path: root/data/camorama-gtk4.ui
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-19 14:26:01 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-21 06:34:58 -0300
commitf85679e6c08c5ed1c8bee595bb15805d1e9ec081 (patch)
tree6cfeee80ab0756013e06a18765c21ef6f791a852 /data/camorama-gtk4.ui
parent6087e0f3b3b2cfd57bf5eb173eaa0d4dd34ba9a4 (diff)
Add a dialog to optionally select the video device
The first time camorama is started, or if it doesn't find the previously used camera, it will now open a dialog allowing the user to choose the camera. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'data/camorama-gtk4.ui')
-rw-r--r--data/camorama-gtk4.ui72
1 files changed, 71 insertions, 1 deletions
diff --git a/data/camorama-gtk4.ui b/data/camorama-gtk4.ui
index 7acb03f..ac2a5dd 100644
--- a/data/camorama-gtk4.ui
+++ b/data/camorama-gtk4.ui
@@ -24,7 +24,6 @@
<property name="step_increment">1</property>
</object>
<object class="GtkWindow" id="main_window">
- <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="title" translatable="yes">Camorama-libglade</property>
<accel-groups>
@@ -1565,4 +1564,75 @@
<placeholder/>
</child>
</object>
+ <object class="GtkDialog" id="videodev_window">
+ <property name="can_focus">False</property>
+ <property name="modal">True</property>
+ <property name="window_position">center</property>
+ <property name="destroy_with_parent">True</property>
+ <property name="type_hint">dialog</property>
+ <property name="transient_for">main_window</property>
+ <child internal-child="vbox">
+ <object class="GtkBox">
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">2</property>
+ <child internal-child="action_area">
+ <object class="GtkButtonBox">
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <object class="GtkButton" id="videodev_ok">
+ <property name="label">_Ok</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_underline">True</property>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Select a video device to be used</property>
+ </object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkComboBoxText" id="videodev_combo">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <child type="titlebar">
+ <placeholder/>
+ </child>
+ </object>
</interface>

Privacy Policy