diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-04-08 16:39:24 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-04-08 18:15:44 +0200 |
commit | 8a5beb2c580e852a567aa57046ce259924cb0ea9 (patch) | |
tree | 1c577d6ff4df50e05f77c749ad281d337bac84a8 /data | |
parent | 99a2e0087f25a6f865d11bfab39d358bde13d71e (diff) |
add support for full screen mode
Nowadays, there are several UVC devices that can be used to
capture HDMI images. Those could be used, for instance, to
display a console from another machine. On such case, it can
be interesting to use as little as possible of the screen,
in order to maximize the screen.
Let's implement a full screen mode that will disable everything
but the top menu, and place the application in full screen
mode.
As this depends on a proper scaling support, only enable it
with Gtk3.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'data')
-rw-r--r-- | data/camorama-gtk3.ui | 80 |
1 files changed, 79 insertions, 1 deletions
diff --git a/data/camorama-gtk3.ui b/data/camorama-gtk3.ui index 826fb59..7d98b72 100644 --- a/data/camorama-gtk3.ui +++ b/data/camorama-gtk3.ui @@ -39,6 +39,11 @@ <property name="can_focus">False</property> <property name="pixbuf">snap-icon-small.xpm</property> </object> + <object class="GtkImage" id="image23"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="icon_name">view-fullscreen</property> + </object> <object class="GtkWindow" id="main_window"> <property name="can_focus">False</property> <property name="title" translatable="yes">Camorama-libglade</property> @@ -80,6 +85,17 @@ </object> </child> <child> + <object class="GtkImageMenuItem" id="imagemenuitem2"> + <property name="label" translatable="yes">Toggle _Full Screen</property> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="use_underline">True</property> + <property name="image">image23</property> + <property name="use_stock">False</property> + <accelerator key="f" signal="activate" modifiers="GDK_CONTROL_MASK"/> + </object> + </child> + <child> <object class="GtkSeparatorMenuItem" id="menuitem2"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -346,6 +362,68 @@ </packing> </child> <child> + <object class="GtkAlignment" id="alignment6"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="halign">center</property> + <property name="hexpand">True</property> + <child> + <object class="GtkButton" id="button3"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="halign">center</property> + <signal name="clicked" handler="capture_func" swapped="no"/> + <child> + <object class="GtkAlignment" id="alignment5"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xscale">0</property> + <property name="yscale">0</property> + <child> + <object class="GtkBox" id="hbox34"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">2</property> + <child> + <object class="GtkImage" id="image22"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="icon_name">view-fullscreen</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label77"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">Full Screen</property> + <property name="use_underline">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">2</property> + </packing> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + <child> <object class="GtkAlignment" id="alignment2"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -402,7 +480,7 @@ <property name="expand">False</property> <property name="fill">False</property> <property name="pack_type">end</property> - <property name="position">1</property> + <property name="position">2</property> </packing> </child> </object> |