gnome: allow client to keep running on close

Two options have been added to the client:
 - hide on close (true by default)
 - bring to foreground (true by default)

The client will now continue running by default in the background
after the user closes the main window and thus be able to receive
calls and messages. By default the client will also be brought to
the foreground when a new call is incoming.

Issue: #78461
Change-Id: I3658cd60d2df0a3e1a8c2a4f5d1173824244a3d4
diff --git a/ui/generalsettingsview.ui b/ui/generalsettingsview.ui
index 5cefeea..e7e0045 100644
--- a/ui/generalsettingsview.ui
+++ b/ui/generalsettingsview.ui
@@ -46,7 +46,24 @@
                     <property name="label" translatable="yes">Start Ring on login</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
-                    <property name="receives_default">False</property>
+                    <property name="xalign">0</property>
+                    <property name="draw_indicator">True</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkCheckButton" id="checkbutton_hideonclose">
+                    <property name="label" translatable="yes">Hide Ring on close instead of quitting.</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="xalign">0</property>
+                    <property name="draw_indicator">True</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkCheckButton" id="checkbutton_bringtofront">
+                    <property name="label" translatable="yes">Bring Ring to the foreground on incoming calls.</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
                     <property name="xalign">0</property>
                     <property name="draw_indicator">True</property>
                   </object>