[Xfce4-commits] [apps/mousepad] 01/45: Build system support for GSettings
noreply at xfce.org
noreply at xfce.org
Fri Jul 11 13:03:06 CEST 2014
This is an automated email from the git hooks/post-receive script.
mbrush pushed a commit to branch master
in repository apps/mousepad.
commit 203536a3039200b571aa9cd68f2e2e7f031f98cb
Author: Matthew Brush <mbrush at codebrainz.ca>
Date: Sun Jul 6 00:16:46 2014 -0700
Build system support for GSettings
Including a preliminary, non-tested schema XML file.
---
.gitignore | 2 +
Makefile.am | 2 +
autogen.sh | 2 +
configure.ac.in | 6 +
mousepad/Makefile.am | 4 +
mousepad/mousepad-settings.gschema.xml | 194 ++++++++++++++++++++++++++++++++
6 files changed, 210 insertions(+)
diff --git a/.gitignore b/.gitignore
index 3e3e61d..893c216 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,6 +23,7 @@ intltool-merge.in
intltool-update.in
libtool
ltmain.sh
+/m4/
missing
mkinstalldirs
mousepad/.deps/
@@ -30,6 +31,7 @@ mousepad/mousepad
mousepad/mousepad-dbus-infos.h
mousepad/mousepad-marshal.c
mousepad/mousepad-marshal.h
+/mousepad/mousepad-settings.gschema.valid
mousepad/mousepad-window-ui.h
po/.intltool-merge-cache
po/POTFILES
diff --git a/Makefile.am b/Makefile.am
index 1c251d5..964dd9a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,5 @@
+ACLOCAL_AMFLAGS = -I m4
+
SUBDIRS = \
mousepad \
po
diff --git a/autogen.sh b/autogen.sh
index fb9b80b..da7625e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+mkdir -p m4/ || exit $?
+
(type xdt-autogen) >/dev/null 2>&1 || {
cat >&2 <<EOF
autogen.sh: You don't seem to have the Xfce development tools installed on
diff --git a/configure.ac.in b/configure.ac.in
index 1595d44..e4c46aa 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -21,6 +21,7 @@ AC_COPYRIGHT([Copyright (c) 2007-2010
The Xfce development team. All rights reserved.])
AC_INIT([Mousepad], [mousepad_version], [http://bugzilla.xfce.org/], [mousepad])
AC_PREREQ([2.50])
+AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_TARGET()
AC_REVISION([])
@@ -86,6 +87,11 @@ XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.12.0])
XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.18.0])
XDT_CHECK_PACKAGE([GTKSOURCEVIEW], [gtksourceview-2.0])
+dnl ************************************
+dnl *** Enable support for GSettings ***
+dnl ************************************
+GLIB_GSETTINGS
+
dnl **********************************
dnl *** Optional support for D-BUS ***
dnl **********************************
diff --git a/mousepad/Makefile.am b/mousepad/Makefile.am
index 3dfb8ac..6230f97 100644
--- a/mousepad/Makefile.am
+++ b/mousepad/Makefile.am
@@ -113,6 +113,10 @@ endif
EXTRA_DIST = \
mousepad-dbus-infos.xml \
mousepad-marshal.list \
+ mousepad-settings.gschema.xml \
mousepad-window-ui.xml
+gsettings_SCHEMAS = mousepad-settings.gschema.xml
+ at GSETTINGS_RULES@
+
# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
diff --git a/mousepad/mousepad-settings.gschema.xml b/mousepad/mousepad-settings.gschema.xml
new file mode 100644
index 0000000..ca60429
--- /dev/null
+++ b/mousepad/mousepad-settings.gschema.xml
@@ -0,0 +1,194 @@
+<schemalist>
+ <schema id="org.xfce.Mousepad" path="/org/xfce/Mousepad/" gettext-domain="mousepad">
+
+ <!-- Search preferences -->
+
+ <key name="search-direction" type="i">
+ <range min="0" max="2"/>
+ <default>1</default>
+ <summary>Search direction</summary>
+ <description>
+ When 0 the search direction is backwards/upwards, when 1 the search
+ direction is forwards/downwards, when 2 the search will wrap around.
+ </description>
+ </key>
+
+ <key name="search-match-case" type="b">
+ <default>false</default>
+ <summary>Match case</summary>
+ <description>
+ When true searches will be case-sensitive, when false they will
+ be case-insensitive.
+ </description>
+ </key>
+
+ <key name="search-match-whole-word" type="b">
+ <default>false</default>
+ <summary>Match whole word</summary>
+ <description>
+ When true searches must match an entire word (using default word
+ boundary characters), when false matches can occur anywhere, even
+ within a larger word.
+ </description>
+ </key>
+
+ <key name="search-replace-all-location" type="i">
+ <range min="0" max="2"/>
+ <default>1</default>
+ <summary>Replace-all location</summary>
+ <description>
+ When 0 the replace-all is performed within the current selection, when
+ 1 the replace-all is performed in the current document, and when 2
+ the replace-all is performed in all currently open documents.
+ </description>
+ </key>
+
+ <!-- Textview preferences -->
+
+ <key name="view-autoindent" type="b">
+ <default>false</default>
+ <summary>Auto-indentation</summary>
+ <description>
+ When true auto-indentation is enabled, when false it is not.
+ </description>
+ </key>
+
+ <key name="view-font-name" type="s">
+ <default>'Monospace'</default>
+ <summary>Font name</summary>
+ <description>
+ The name of the font to use in the textviews. Can contain Pango
+ font description syntax for greater control.
+ </description>
+ </key>
+
+ <key name="view-show-line-numbers" type="b">
+ <default>false</default>
+ <summary>Show line numbers</summary>
+ <description>
+ When true the line numbers gutter/margin will be visible, when false
+ it will not be visible.
+ </description>
+ </key>
+
+ <key name="view-tab-size" type="i">
+ <range min="1" max="32"/>
+ <default>8</default>
+ <summary>Tab width</summary>
+ <description>
+ The number of characters wide that a tab character appears as.
+ </description>
+ </key>
+
+ <key name="view-insert-spaces" type="b">
+ <default>false</default>
+ <summary>Insert spaces instead of tabs</summary>
+ <description>
+ When true spaces will be insert when the Tab key is pressed instead
+ of tab characters, when false tab characters will be inserted.
+ </description>
+ </key>
+
+ <key name="view-word-wrap" type="b">
+ <default>false</default>
+ <summary>Word wrapping</summary>
+ <description>
+ When true long lines will be virtually wrapped in order to fit within
+ the text view, when false long lines will extend out of view.
+ </description>
+ </key>
+
+ <key name="view-color-scheme" type="s">
+ <default>'none'</default>
+ <summary>Color scheme</summary>
+ <description>
+ Name of the color scheme to use to highlight syntax or 'none' for
+ no syntax highlighting.
+ </description>
+ </key>
+
+ <!-- Window preferences -->
+
+ <key name="window-height" type="i">
+ <default>480</default>
+ <summary>Window height</summary>
+ <description>The height of window in pixels.</description>
+ </key>
+
+ <key name="window-width" type="i">
+ <default>640</default>
+ <summary>Window width</summary>
+ <description>The width of windows in pixels.</description>
+ </key>
+
+ <key name="window-statusbar-visible" type="b">
+ <default>true</default>
+ <summary>Statusbar visible</summary>
+ <description>
+ When true the statusbar is visible, when false it is not visible.
+ </description>
+ </key>
+
+ <!-- Other preferences -->
+
+ <key name="misc-always-show-tabs" type="b">
+ <default>false</default>
+ <summary>Always show tabs</summary>
+ <description>
+ When true the main document notebook will always show its tabs, when
+ false the tabs will be hidden when there is only one document open.
+ </description>
+ </key>
+
+ <key name="misc-cycle-tabs" type="b">
+ <default>false</default>
+ <summary>Cycle tabs</summary>
+ <description>
+ When true and cycling through tabs, wrap around once the last tab is
+ reached, when false do nothing at the last tab.
+ </description>
+ </key>
+
+ <key name="misc-default-tab-sizes" type="s">
+ <default>'2,3,4,8'</default>
+ <summary>Default tab sizes</summary>
+ <description>
+ A comma-separated string listing the tab sizes that are show in the
+ user-interface for selecting tab width.
+ </description>
+ </key>
+
+ <key name="misc-path-in-title" type="b">
+ <default>false</default>
+ <summary>Show path in window title</summary>
+ <description>
+ When true the active document's full path will be shown in the window's
+ titlebar, when false only the basename will be shown.
+ </description>
+ </key>
+
+ <key name="misc-recent-menu-items" type="i">
+ <range min="1" max="100"/>
+ <default>10</default>
+ <summary>Number of recent documents</summary>
+ <description>
+ The number of recent documents to track and show in the user interace.
+ </description>
+ </key>
+
+ <key name="misc-remember-geometry" type="b">
+ <default>true</default>
+ <summary>Remember window geometry</summary>
+ <description>
+ When true the size and position of the window will be saved and restored
+ for the next window if possible. Note that this feature may not behave
+ as expected with all window managers as the size and/or position reported
+ may vary depending on the size of window decorations or the number and
+ resolutions of currently connected monitors. If your windows are showing
+ off-screen or in weird locations, set this to false to use your window
+ manager's default window positioning mechanism.
+ </description>
+ </key>
+
+ </schema>
+</schemalist>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list