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/data/cx.ring.RingGnome.gschema.xml b/data/cx.ring.RingGnome.gschema.xml
index 71f5291..68c8e14 100644
--- a/data/cx.ring.RingGnome.gschema.xml
+++ b/data/cx.ring.RingGnome.gschema.xml
@@ -6,5 +6,15 @@
         <summary>Start Ring on login.</summary>
         <description>Start Ring on login. Only supported on XDG compliant desktop environments.</description>
     </key>
+    <key name="hide-on-close" type="b">
+        <default>true</default>
+        <summary>Hide on close instead of quitting.</summary>
+        <description>Hide the main window on close instead of quitting the application. If set to true, Ring will continue to run and be able to receive calls and messages if the main window is closed.</description>
+    </key>
+    <key name="bring-window-to-front" type="b">
+        <default>true</default>
+        <summary>Bring window to foreground on incoming calls.</summary>
+        <description>Bring window to foreground on incoming calls.</description>
+    </key>
   </schema>
 </schemalist>