From 501e1a788c6e9720381603aceba1d1719a6ed51f Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sun, 21 Oct 2012 20:03:23 +0200 Subject: add gsettings schema --- data/Makefile.am | 33 ++-- data/eom.pc.in | 2 +- data/eom.schemas.in | 300 ------------------------------------ data/org.mate.eom.gschema.xml.in.in | 124 +++++++++++++++ 4 files changed, 138 insertions(+), 321 deletions(-) delete mode 100644 data/eom.schemas.in create mode 100644 data/org.mate.eom.gschema.xml.in.in diff --git a/data/Makefile.am b/data/Makefile.am index b89623a..dcf635a 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -8,11 +8,12 @@ DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in.in=.desktop) desktopdir = $(datadir)/applications desktop_DATA = $(DESKTOP_FILES) -@INTLTOOL_SCHEMAS_RULE@ +@INTLTOOL_XML_NOMERGE_RULE@ +gsettings_SCHEMAS = org.mate.eom.gschema.xml +@GSETTINGS_RULES@ -schemas_in_files = eom.schemas.in -schemasdir = $(MATECONF_SCHEMA_FILE_DIR) -schemas_DATA = $(schemas_in_files:.schemas.in=.schemas) +%.gschema.xml.in: %.gschema.xml.in.in Makefile + $(AM_V_GEN) $(SED) -e 's^\@datadir\@^$(datadir)^g' -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@ gladedir = $(pkgdatadir) glade_DATA = eom-image-properties-dialog.ui \ @@ -32,24 +33,16 @@ pkgconfig_DATA = eom.pc gtkrcdir = $(pkgdatadir) gtkrc_DATA = gtkrc -install-data-local: -if MATECONF_SCHEMAS_INSTALL - if test -z "$(DESTDIR)" ; then \ - for p in $(schemas_DATA) ; do \ - MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) $(MATECONFTOOL) --makefile-install-rule $(top_builddir)/data/$$p >&1 > /dev/null; \ - done \ - fi -endif - -EXTRA_DIST = \ - $(gtkrc_DATA) \ - $(glade_DATA) \ - $(DESKTOP_IN_FILES) \ - $(schemas_in_files) \ +EXTRA_DIST = \ + $(gtkrc_DATA) \ + $(glade_DATA) \ + $(DESKTOP_IN_FILES) \ + $(gsettings_SCHEMAS_in_in) \ $(UI_FILES) DISTCLEANFILES = \ - $(DESKTOP_FILES) \ - $(schemas_DATA) + $(DESKTOP_FILES) \ + $(gsettings_SCHEMAS_in) \ + $(gsettings_SCHEMAS) -include $(top_srcdir)/git.mk diff --git a/data/eom.pc.in b/data/eom.pc.in index 2e7259c..25a7fab 100644 --- a/data/eom.pc.in +++ b/data/eom.pc.in @@ -6,6 +6,6 @@ pluginsdir=@libdir@/eom/plugins Name: Eye of MATE Description: The MATE Image Viewer -Requires: gtk+-2.0, mateconf-2.0 +Requires: gtk+-2.0, gio-2.0 Version: @VERSION@ Cflags: -I${includedir} diff --git a/data/eom.schemas.in b/data/eom.schemas.in deleted file mode 100644 index 626ebca..0000000 --- a/data/eom.schemas.in +++ /dev/null @@ -1,300 +0,0 @@ - - - - /schemas/apps/eom/view/autorotate - /apps/eom/view/autorotate - eom - bool - 1 - - Automatic orientation - Whether the image should be rotated automatically based on - EXIF orientation. - - - - - /schemas/apps/eom/view/background-color - /apps/eom/view/background-color - eom - string - #000000 - - Background Color - The color that is used to fill the area behind the image. - If the use-background-color key is not set, the color is determined - by the active GTK+ theme instead. - - - - - /schemas/apps/eom/view/use-background-color - /apps/eom/view/use-background-color - eom - bool - 1 - - Use a custom background color - If this is active, the color set by the background-color key will be used to fill the area behind the image. If it is not set, the current GTK+ theme will determine the fill color. - - - - - /schemas/apps/eom/view/interpolate - /apps/eom/view/interpolate - eom - bool - 1 - - Interpolate Image - Whether the image should be interpolated on zoom-out. - This leads to better quality but is somewhat slower than - non-interpolated images. - - - - - /schemas/apps/eom/view/extrapolate - /apps/eom/view/extrapolate - eom - bool - 1 - - Extrapolate Image - Whether the image should be extrapolated on zoom-in. - This leads to blurry quality and is somewhat slower than - non-extrapolated images. - - - - - /schemas/apps/eom/view/transparency - /apps/eom/view/transparency - eom - string - CHECK_PATTERN - - Transparency indicator - Determines how transparency should be indicated. Valid values - are CHECK_PATTERN, COLOR and NONE. If COLOR is chosen, then - the trans-color key determines the color value used. - - - - - - /schemas/apps/eom/view/scroll_wheel_zoom - /apps/eom/view/scroll_wheel_zoom - eom - bool - 1 - - Scroll wheel zoom - Whether the scroll wheel should be used for zooming. - - - - - /schemas/apps/eom/view/zoom_multiplier - /apps/eom/view/zoom_multiplier - eom - float - 0.05 - - Zoom multiplier - The multiplier to be applied when using the mouse scroll wheel - for zooming. This value defines the zooming step used for each scroll - event. For example, 0.05 results in a 5% zoom increment for each - scroll event and 1.00 result in a 100% zoom increment. - - - - - /schemas/apps/eom/view/trans_color - /apps/eom/view/trans_color - eom - string - #000000 - - Transparency color - If the transparency key has the value COLOR, then this - key determines the color which is used for indicating transparency. - - - - - - /schemas/apps/eom/full_screen/loop - /apps/eom/full_screen/loop - eom - bool - 1 - - Loop through the image sequence - Whether the sequence of images should be shown in an - endless loop. - - - - - /schemas/apps/eom/full_screen/upscale - /apps/eom/full_screen/upscale - eom - bool - 1 - - Allow zoom greater than 100% initially - If this is set to FALSE small images will not be - stretched to fit into the screen initially. - - - - - /schemas/apps/eom/full_screen/seconds - /apps/eom/full_screen/seconds - eom - int - 5 - - Delay in seconds until showing the next image - A value greater than 0 determines the seconds an image stays - on screen until the next one is shown automatically. Zero - disables the automatic browsing. - - - - - /schemas/apps/eom/ui/toolbar - /apps/eom/ui/toolbar - eom - bool - 1 - - Show/Hide the window toolbar. - - - - - /schemas/apps/eom/ui/statusbar - /apps/eom/ui/statusbar - eom - bool - 1 - - Show/Hide the window statusbar. - - - - - /schemas/apps/eom/ui/image_collection - /apps/eom/ui/image_collection - eom - bool - 0 - - Show/Hide the image collection pane. - - - - - /schemas/apps/eom/ui/image_collection_position - /apps/eom/ui/image_collection_position - eom - int - 0 - - Image collection pane position. Set to 0 for bottom; - 1 for left; 2 for top; 3 for right. - - - - - /schemas/apps/eom/ui/image_collection_resizable - /apps/eom/ui/image_collection_resizable - eom - bool - 0 - - Whether the image collection pane should be resizable. - - - - - /schemas/apps/eom/ui/sidebar - /apps/eom/ui/sidebar - eom - bool - 1 - - Show/Hide the window side pane. - - - - - /schemas/apps/eom/ui/scroll_buttons - /apps/eom/ui/scroll_buttons - eom - bool - 1 - - Show/Hide the image collection pane scroll buttons. - - - - - /schemas/apps/eom/ui/disable_trash_confirmation - /apps/eom/ui/disable_trash_confirmation - eom - bool - 0 - - Trash images without asking - If activated, Eye of MATE won't ask for confirmation when - moving images to the trash. It will still ask if any of the files - cannot be moved to the trash and would be deleted instead. - - - - - /schemas/apps/eom/ui/filechooser_xdg_fallback - /apps/eom/ui/filechooser_xdg_fallback - eom - bool - 1 - - Whether the file chooser should show the user's pictures folder if no images are loaded. - If activated and no image is loaded in the active window, the file chooser will display the user's pictures folder using the XDG special user directories. If deactivated or the pictures folder has not been set up, it will show the current working directory. - - - - - /schemas/apps/eom/ui/propsdialog_netbook_mode - /apps/eom/ui/propsdialog_netbook_mode - eom - bool - 1 - - Whether the metadata list in the properties dialog should have its own page. - If activated, the detailed metadata list in the properties dialog - will be moved to its own page in the dialog. This should make the dialog - more usable on smaller screens, e.g. as used by netbooks. If disabled, - the widget will be embedded on the "Metadata" page. - - - - - /schemas/apps/eom/plugins/active_plugins - /apps/eom/plugins/active_plugins - eom - list - string - [] - - Active plugins - List of active plugins. It doesn't contain the "Location" of the active plugins. - See the .eom-plugin file for obtaining the "Location" of a given plugin. - - - - - diff --git a/data/org.mate.eom.gschema.xml.in.in b/data/org.mate.eom.gschema.xml.in.in new file mode 100644 index 0000000..4dd5831 --- /dev/null +++ b/data/org.mate.eom.gschema.xml.in.in @@ -0,0 +1,124 @@ + + + + + + + + + + true + <_summary>Automatic orientation + <_description>Whether the image should be rotated automatically based on EXIF orientation. + + + '#000000' + <_summary>Background Color + <_description>The color that is used to fill the area behind the image. If the use-background-color key is not set, the color is determined by the active GTK+ theme instead. + + + true + <_summary>Use a custom background color + <_description>If this is active, the color set by the background-color key will be used to fill the area behind the image. If it is not set, the current GTK+ theme will determine the fill color. + + + true + <_summary>Interpolate Image + <_description>Whether the image should be interpolated on zoom-out. This leads to better quality but is somewhat slower than non-interpolated images. + + + true + <_summary>Extrapolate Image + <_description>Whether the image should be extrapolated on zoom-in. This leads to blurry quality and is somewhat slower than non-extrapolated images. + + + 'CHECK_PATTERN' + <_summary>Transparency indicator + <_description>Determines how transparency should be indicated. Valid values are CHECK_PATTERN, COLOR and NONE. If COLOR is chosen, then the trans-color key determines the color value used. + + + true + <_summary>Scroll wheel zoom + <_description>Whether the scroll wheel should be used for zooming. + + + 0.05 + <_summary>Zoom multiplier + <_description>The multiplier to be applied when using the mouse scroll wheel for zooming. This value defines the zooming step used for each scroll event. For example, 0.05 results in a 5% zoom increment for each scroll event and 1.00 result in a 100% zoom increment. + + + '#000000' + <_summary>Transparency color + <_description>If the transparency key has the value COLOR, then this key determines the color which is used for indicating transparency. + + + + + true + <_summary>Loop through the image sequence + <_description>Whether the sequence of images should be shown in an endless loop. + + + true + <_summary>Allow zoom greater than 100% initially + <_description>If this is set to FALSE small images will not be stretched to fit into the screen initially. + + + 5 + <_summary>Delay in seconds until showing the next image + <_description>A value greater than 0 determines the seconds an image stays on screen until the next one is shown automatically. Zero disables the automatic browsing. + + + + + true + <_summary>Show/Hide the window toolbar. + + + true + <_summary>Show/Hide the window statusbar. + + + false + <_summary>Show/Hide the image collection pane. + + + 0 + <_summary>Image collection pane position. Set to 0 for bottom; 1 for left; 2 for top; 3 for right. + + + false + <_summary>Whether the image collection pane should be resizable. + + + true + <_summary>Show/Hide the window side pane. + + + true + <_summary>Show/Hide the image collection pane scroll buttons. + + + false + <_summary>Trash images without asking + <_description>If activated, Eye of MATE won't ask for confirmation when moving images to the trash. It will still ask if any of the files cannot be moved to the trash and would be deleted instead. + + + true + <_summary>Whether the file chooser should show the user's pictures folder if no images are loaded. + <_description>If activated and no image is loaded in the active window, the file chooser will display the user's pictures folder using the XDG special user directories. If deactivated or the pictures folder has not been set up, it will show the current working directory. + + + true + <_summary>Whether the metadata list in the properties dialog should have its own page. + <_description>If activated, the detailed metadata list in the properties dialog will be moved to its own page in the dialog. This should make the dialog more usable on smaller screens, e.g. as used by netbooks. If disabled, the widget will be embedded on the "Metadata" page. + + + + + [] + <_summary>Active plugins + <_description>List of active plugins. It doesn't contain the "Location" of the active plugins. See the .eom-plugin file for obtaining the "Location" of a given plugin. + + + -- cgit v1.2.1