[gsettings-desktop-schemas] Add magnifier schemas from gnome-shell



commit 6b56e6b06a7ed0880fffe083c41a2603dfe68d87
Author: Thomas Wood <thos gnome org>
Date:   Thu Feb 10 16:17:12 2011 +0000

    Add magnifier schemas from gnome-shell
    
    Add the magnifier schemas from gnome-shell to allow them to be shared
    between gnome-shell and other applications.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=642032

 headers/gdesktop-enums.h                           |   18 +++
 po/POTFILES.in                                     |    1 +
 po/POTFILES.skip                                   |    1 +
 schemas/Makefile.am                                |    1 +
 ....gnome.desktop.a11y.magnifier.gschema.xml.in.in |  117 ++++++++++++++++++++
 5 files changed, 138 insertions(+), 0 deletions(-)
---
diff --git a/headers/gdesktop-enums.h b/headers/gdesktop-enums.h
index 67dcff4..b6c36db 100644
--- a/headers/gdesktop-enums.h
+++ b/headers/gdesktop-enums.h
@@ -89,4 +89,22 @@ typedef enum
   G_DESKTOP_SCREENSAVER_MODE_SINGLE
 } GDesktopScreensaverMode;
 
+typedef enum
+{
+  G_DESKTOP_MAGNIFIER_MOUSE_TRACKING_MODE_NONE,
+  G_DESKTOP_MAGNIFIER_MOUSE_TRACKING_MODE_CENTERED,
+  G_DESKTOP_MAGNIFIER_MOUSE_TRACKING_MODE_PROPORTIONAL,
+  G_DESKTOP_MAGNIFIER_MOUSE_TRACKING_MODE_PUSH
+} GDesktopMagnifierMouseTrackingMode;
+
+typedef enum
+{
+  G_DESKTOP_MAGNIFIER_SCREEN_POSITION_NONE,
+  G_DESKTOP_MAGNIFIER_SCREEN_POSITION_FULL_SCREEN,
+  G_DESKTOP_MAGNIFIER_SCREEN_POSITION_TOP_HALF,
+  G_DESKTOP_MAGNIFIER_SCREEN_POSITION_BOTTOM_HALF,
+  G_DESKTOP_MAGNIFIER_SCREEN_POSITION_LEFT_HALF,
+  G_DESKTOP_MAGNIFIER_SCREEN_POSITION_RIGHT_HALF,
+} GDesktopMagnifierScreenPosition
+
 #endif /* __gdesktop_enums_h__ */
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 8199d8b..0cb40a9 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -2,6 +2,7 @@
 # Please keep this list in alphabetic order.
 schemas/org.gnome.desktop.a11y.applications.gschema.xml.in.in
 schemas/org.gnome.desktop.a11y.keyboard.gschema.xml.in.in
+schemas/org.gnome.desktop.a11y.magnifier.gschema.xml.in.in
 schemas/org.gnome.desktop.a11y.mouse.gschema.xml.in.in
 schemas/org.gnome.desktop.background.gschema.xml.in.in
 schemas/org.gnome.desktop.default-applications.gschema.xml.in.in
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index e04636f..c1436bb 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -3,6 +3,7 @@
 # Please keep this file sorted alphabetically.
 schemas/org.gnome.desktop.a11y.applications.gschema.xml.in
 schemas/org.gnome.desktop.a11y.keyboard.gschema.xml.in
+schemas/org.gnome.desktop.a11y.magnifier.gschema.xml.in
 schemas/org.gnome.desktop.a11y.mouse.gschema.xml.in
 schemas/org.gnome.desktop.background.gschema.xml.in
 schemas/org.gnome.desktop.default-applications.gschema.xml.in
diff --git a/schemas/Makefile.am b/schemas/Makefile.am
index 97cdc83..4eff1e4 100644
--- a/schemas/Makefile.am
+++ b/schemas/Makefile.am
@@ -7,6 +7,7 @@ desktop_gschemas_in_in =						\
 	org.gnome.desktop.thumbnail-cache.gschema.xml.in.in		\
 	org.gnome.desktop.a11y.keyboard.gschema.xml.in.in		\
 	org.gnome.desktop.a11y.applications.gschema.xml.in.in		\
+	org.gnome.desktop.a11y.magnifier.gschema.xml.in.in		\
 	org.gnome.desktop.a11y.mouse.gschema.xml.in.in			\
 	org.gnome.desktop.thumbnailers.gschema.xml.in.in		\
 	org.gnome.desktop.session.gschema.xml.in.in			\
diff --git a/schemas/org.gnome.desktop.a11y.magnifier.gschema.xml.in.in b/schemas/org.gnome.desktop.a11y.magnifier.gschema.xml.in.in
new file mode 100644
index 0000000..620398a
--- /dev/null
+++ b/schemas/org.gnome.desktop.a11y.magnifier.gschema.xml.in.in
@@ -0,0 +1,117 @@
+<schemalist>
+
+  <schema id="org.gnome.desktop.a11y.magnifier"
+          path="/desktop/gnome/a11y/magnifier/"
+          gettext-domain="@GETTEXT_PACKAGE@">
+    <key name="show-magnifier" type="b">
+      <default>false</default>
+      <_summary>Show or hide the magnifier</_summary>
+      <_description>
+        Show or hide the magnifier and all of its zoom regions.
+      </_description>
+    </key>
+    <key name="mouse-tracking" enum="org.gnome.desktop.GDesktopMagnifierMouseTrackingMode">
+      <default>'proportional'</default>
+      <_summary>Mouse Tracking Mode</_summary>
+      <_description>
+        Determines the position of the magnified mouse image within the
+        magnified view and how it reacts to system mouse movement. The values
+        are
+        - none: no mouse tracking;
+        - centered: the mouse image is
+        displayed at the center of the zoom region (which also represents
+        the point under the system mouse) and the magnified contents are
+        scrolled as the system mouse moves;
+        - proportional: the position of the magnified mouse in the zoom region
+        is proportionally the same as the position of the system mouse on screen;
+        - push: when the magnified mouse intersects a boundary of the zoom
+        region, the contents are scrolled into view.
+      </_description>
+    </key>
+    <key name="screen-position" enum="org.gnome.desktop.GDesktopMagnifierScreenPosition">
+      <default>'full-screen'</default>
+      <_summary>Screen position</_summary>
+      <_description>
+        The magnified view either fills the entire screen, or occupies the
+        top-half, bottom-half, left-half, or right-half of the screen.
+      </_description>
+    </key>
+    <key name="mag-factor" type="d">
+      <default>2.0</default>
+      <_summary>Magnification factor</_summary>
+      <_description>
+        The power of the magnification. A value of 1.0 means no magnification.
+        A value of 2.0 doubles the size.
+      </_description>
+    </key>
+    <key name="lens-mode" type="b">
+      <default>false</default>
+      <_summary>Enable lens mode</_summary>
+      <_description>
+        Whether the magnified view should be centered over the location of
+        the system mouse and move with it.
+      </_description>
+    </key>
+    <key name="scroll-at-edges" type="b">
+      <default>false</default>
+      <_summary>
+        Scroll magnified contents beyond the edges of the desktop
+      </_summary>
+      <_description>
+        For centered mouse tracking, when the system pointer is at or near the
+        edge of the screen, the magnified contents continue to scroll such that
+        the screen edge moves into the magnified view.
+      </_description>
+    </key>
+
+    <!-- Cross-hairs -->
+    <key name="show-cross-hairs" type="b">
+      <default>false</default>
+      <_summary>Show or hide crosshairs</_summary>
+      <_description>
+        Enables/disables display of crosshairs centered on the magnified
+        mouse sprite.
+      </_description>
+    </key>
+    <key name="cross-hairs-thickness" type="i">
+      <default>8</default>
+      <_summary>Thickness of the crosshairs</_summary>
+      <_description>
+        Width of the vertical and horizontal lines that make up the crosshairs.
+      </_description>
+    </key>
+    <key name="cross-hairs-color" type="s">
+      <default>'#ff0000'</default>
+      <_summary>Color of the crosshairs</_summary>
+      <_description>
+        The color of the the vertical and horizontal lines that make up
+        the crosshairs.
+      </_description>
+    </key>
+    <key name="cross-hairs-opacity" type="i">
+      <default>169</default>
+      <_summary>Opacity of the crosshairs</_summary>
+      <_description>
+        Determines the transparency of the crosshairs, from fully opaque
+        to fully transparent.
+      </_description>
+    </key>
+    <key name="cross-hairs-length" type="i">
+      <default>4096</default>
+      <_summary>Length of the crosshairs</_summary>
+      <_description>
+        Determines the length of the vertical and horizontal lines that
+        make up the crosshairs.
+      </_description>
+    </key>
+    <key name="cross-hairs-clip" type="b">
+      <default>false</default>
+      <_summary>Clip the crosshairs at the center</_summary>
+      <_description>
+        Determines whether the crosshairs intersect the magnified mouse sprite,
+        or are clipped such that the ends of the horizontal and vertical lines
+        surround the mouse image.
+      </_description>
+    </key>
+  </schema>
+</schemalist>



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