[gnome-panel] applets: Add GSettings schemas for applets



commit dea38d7234cf078090aad61f8650466d259e1d6d
Author: Vincent Untz <vuntz gnome org>
Date:   Mon Mar 28 11:04:25 2011 +0530

    applets: Add GSettings schemas for applets

 data/Makefile.am                                   |   12 +++-
 .../org.gnome.gnome-panel.applet.clock.gschema.xml |   84 ++++++++++++++++++++
 data/org.gnome.gnome-panel.applet.fish.gschema.xml |   34 ++++++++
 ...nome.gnome-panel.applet.window-list.gschema.xml |   19 +++++
 ...ome-panel.applet.workspace-switcher.gschema.xml |   19 +++++
 5 files changed, 167 insertions(+), 1 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 7351dd2..1e7f4c7 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -3,13 +3,23 @@ SUBDIRS = 16x16 22x22 24x24 32x32 48x48 scalable
 gsettings_ENUM_NAMESPACE = org.gnome.gnome-panel
 gsettings_ENUM_FILES = $(top_srcdir)/gnome-panel/panel-enums-gsettings.h
 
-gsettings_SCHEMAS =					\
+gsettings_applets_schemas =						\
+	org.gnome.gnome-panel.applet.clock.gschema.xml			\
+	org.gnome.gnome-panel.applet.fish.gschema.xml			\
+	org.gnome.gnome-panel.applet.window-list.gschema.xml		\
+	org.gnome.gnome-panel.applet.workspace-switcher.gschema.xml
+
+gsettings_panel_schemas =				\
 	org.gnome.gnome-panel.gschema.xml		\
 	org.gnome.gnome-panel.launcher.gschema.xml	\
 	org.gnome.gnome-panel.menu-button.gschema.xml	\
 	org.gnome.gnome-panel.object.gschema.xml	\
 	org.gnome.gnome-panel.toplevel.gschema.xml
 
+gsettings_SCHEMAS =					\
+	$(gsettings_panel_schemas)			\
+	$(gsettings_applets_schemas)
+
 @GSETTINGS_RULES@
 
 default_layoutdir   = $(datadir)/gnome-panel
diff --git a/data/org.gnome.gnome-panel.applet.clock.gschema.xml b/data/org.gnome.gnome-panel.applet.clock.gschema.xml
new file mode 100644
index 0000000..c085a83
--- /dev/null
+++ b/data/org.gnome.gnome-panel.applet.clock.gschema.xml
@@ -0,0 +1,84 @@
+<schemalist gettext-domain="gnome-panel-3.0">
+  <schema id="org.gnome.gnome-panel.applet.clock">
+    <key name="format" type="s">
+      <default l10n="messages" context="format">''</default>
+      <summary>Hour format</summary>
+      <description>This key specifies the hour format used by the clock applet. Possible values are "12-hour", "24-hour", "internet", "unix" and "custom". If set to "internet", the clock will display Internet time. The Internet time system divides the day into 1000 ".beats". There are no time zones in this system, so time is the same all over the world. If set to "unix", the clock will display time in seconds since Epoch, i.e. 1970-01-01. If set to "custom", the clock will display time according to the format specified in the custom_format key.</description>
+    </key>
+    <key name="custom-format" type="s">
+      <default>''</default>
+      <summary>Custom format of the clock</summary>
+      <description>This key specifies the format used by the clock applet when the format key is set to "custom". You can use conversion specifiers understood by strftime() to obtain a specific format. See the strftime() manual for more information.</description>
+    </key>
+    <key name="show-seconds" type="b">
+      <default>false</default>
+      <summary>Show time with seconds</summary>
+      <description>If true, display seconds in time.</description>
+    </key>
+    <key name="show-date" type="b">
+      <default>true</default>
+      <summary>Show date in clock</summary>
+      <description>If true, display date in the clock, in addition to time.</description>
+    </key>
+    <key name="show-tooltip" type="b">
+      <default>true</default>
+      <summary>Show date in tooltip</summary>
+      <description>If true, show date in a tooltip when the pointer is over the clock.</description>
+    </key>
+    <key name="show-weather" type="b">
+      <default>true</default>
+      <summary>Show weather in clock</summary>
+      <description>If true, display a weather icon.</description>
+    </key>
+    <key name="show-temperature" type="b">
+      <default>true</default>
+      <summary>Show temperature in clock</summary>
+      <description>If true, show the temperature next to the weather icon.</description>
+    </key>
+    <key name="show-week-numbers" type="b">
+      <default>true</default>
+      <summary>Show week numbers in calendar</summary>
+      <description>If true, show week numbers in the calendar.</description>
+    </key>
+    <key name="expand-appointments" type="b">
+      <default>false</default>
+      <summary>Expand list of appointments</summary>
+      <description>If true, expand the list of appointments in the calendar window.</description>
+    </key>
+    <key name="expand-birthdays" type="b">
+      <default>false</default>
+      <summary>Expand list of birthdays</summary>
+      <description>If true, expand the list of birthdays in the calendar window.</description>
+    </key>
+    <key name="expand-tasks" type="b">
+      <default>false</default>
+      <summary>Expand list of tasks</summary>
+      <description>If true, expand the list of tasks in the calendar window.</description>
+    </key>
+    <key name="expand-weather" type="b">
+      <default>false</default>
+      <summary>Expand list of weather information</summary>
+      <description>If true, expand the list of weather information in the calendar window.</description>
+    </key>
+    <key name="expand-locations" type="b">
+      <default>false</default>
+      <summary>Expand list of locations</summary>
+      <description>If true, expand the list of locations in the calendar window.</description>
+    </key>
+    <key name="cities" type="as">
+      <default>[]</default>
+      <summary>List of locations</summary>
+      <description>A list of locations to display in the calendar window.</description>
+    </key>
+    <key name="temperature-unit" type="s">
+      <default>'Default'</default>
+      <summary>Temperature unit</summary>
+      <description>The unit to use when showing temperatures.</description>
+    </key>
+    <key name="speed-unit" type="s">
+      <default>'Default'</default>
+      <summary>Speed unit</summary>
+      <description>The unit to use when showing wind speed.</description>
+    </key>
+  </schema>
+</schemalist>
diff --git a/data/org.gnome.gnome-panel.applet.fish.gschema.xml b/data/org.gnome.gnome-panel.applet.fish.gschema.xml
new file mode 100644
index 0000000..8335b88
--- /dev/null
+++ b/data/org.gnome.gnome-panel.applet.fish.gschema.xml
@@ -0,0 +1,34 @@
+<schemalist gettext-domain="gnome-panel-3.0">
+  <schema id="org.gnome.gnome-panel.applet.fish">
+    <key name="name" type="s">
+      <default>'Wanda'</default>
+      <summary>The fish's name</summary>
+      <description>A fish without a name is a pretty dull fish. Bring your fish to life by naming him.</description>
+    </key>
+    <key name="image" type="s">
+      <default>'wanda.png'</default>
+      <summary>The fish's animation pixmap</summary>
+      <description>This key specifies the filename of the pixmap which will be used for the animation displayed in the fish applet relative to the pixmap directory.</description>
+    </key>
+    <key name="command" type="s">
+      <default>'fortune'</default>
+      <summary>Command to execute on click</summary>
+      <description>This key specifies the command that will be tried to execute when the fish is clicked.</description>
+    </key>
+    <key name="frames" type="i">
+      <default>8</default>
+      <summary>Frames in fish's animation</summary>
+      <description>This key specifies the number of frames that will be displayed in the fish's animation.</description>
+    </key>
+    <key name="speed" type="d">
+      <default>0.3</default>
+      <summary>Pause per frame</summary>
+      <description>This key specifies the number of seconds each frame will be displayed.</description>
+    </key>
+    <key name="rotate" type="b">
+      <default>false</default>
+      <summary>Rotate on vertical panels</summary>
+      <description>If true, the fish's animation will be displayed rotated on vertical panels.</description>
+    </key>
+  </schema>
+</schemalist>
diff --git a/data/org.gnome.gnome-panel.applet.window-list.gschema.xml b/data/org.gnome.gnome-panel.applet.window-list.gschema.xml
new file mode 100644
index 0000000..9fda7f7
--- /dev/null
+++ b/data/org.gnome.gnome-panel.applet.window-list.gschema.xml
@@ -0,0 +1,19 @@
+<schemalist gettext-domain="gnome-panel-3.0">
+  <schema id="org.gnome.gnome-panel.applet.window-list">
+    <key name="display-all-workspaces" type="b">
+      <default>false</default>
+      <summary>Show windows from all workspaces</summary>
+      <description>If true, the window list will show windows from all workspaces. Otherwise it will only display windows from the current workspace.</description>
+    </key>
+    <key name="group-windows" type="s">
+      <default>'never'</default>
+      <summary>When to group windows</summary>
+      <description>Decides when to group windows from the same application on the window list. Possible values are "never", "auto" and "always".</description>
+    </key>
+    <key name="move-unminimized-windows" type="b">
+      <default>true</default>
+      <summary>Move windows to current workspace when unminimized</summary>
+      <description>If true, then when unminimizing a window, move it to the current workspace. Otherwise, switch to the workspace of the window.</description>
+    </key>
+  </schema>
+</schemalist>
diff --git a/data/org.gnome.gnome-panel.applet.workspace-switcher.gschema.xml b/data/org.gnome.gnome-panel.applet.workspace-switcher.gschema.xml
new file mode 100644
index 0000000..a975e3e
--- /dev/null
+++ b/data/org.gnome.gnome-panel.applet.workspace-switcher.gschema.xml
@@ -0,0 +1,19 @@
+<schemalist gettext-domain="gnome-panel-3.0">
+  <schema id="org.gnome.gnome-panel.applet.workspace-switcher">
+    <key name="display-workspace-names" type="b">
+      <default>false</default>
+      <summary>Display workspace names</summary>
+      <description>If true, the workspaces in the workspace switcher will display the names of the workspaces. Otherwise they will display the windows on the workspace. This setting only works when the window manager is Metacity.</description>
+    </key>
+    <key name="display-all-workspaces" type="b">
+      <default>true</default>
+      <summary>Display all workspaces</summary>
+      <description>If true, the workspace switcher will show all workspaces. Otherwise it will only show the current workspace.</description>
+    </key>
+    <key name="num-rows" type="i">
+      <default>1</default>
+      <summary>Rows in workspace switcher</summary>
+      <description>This key specifies how many rows (for horizontal layout) or columns (for vertical layout) the workspace switcher shows the workspaces in. This key is only relevant if the display_all_workspaces key is true.</description>
+    </key>
+  </schema>
+</schemalist>



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