<?xml version='1.0' encoding='utf-8'?>

<!--
 Copyright © 2012 Ryan Lortie

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 3 of the licence, or (at
  your option) any later version.

  This program is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
  USA

  Author: Ryan Lortie <desrt@desrt.ca>
-->

<schemalist gettext-domain='gucharmap'>
  <enum id='org.gnome.Charmap.GucharmapChaptersMode'>
    <value nick='script' value='0'/>
    <value nick='block' value='1'/>
  </enum>

  <schema id='org.gnome.Charmap' path='/org/gnome/charmap/'>
    <key name='group-by' enum='org.gnome.Charmap.GucharmapChaptersMode'>
      <summary>Character map grouping method</summary>
      <description>
        This is how the characters in the character map are grouped.
        The characters can either be grouped by 'script' or 'block'.
      </description>
      <default>'script'</default>
    </key>

    <key name='font' type='ms'>
      <summary>Character map font description</summary>
      <description>
        The font to use for the character map.  If set to 'nothing' then
        the default is the system font with the size doubled.  Otherwise
        it should be a font description string like 'Sans 24'.
      </description>
      <default>nothing</default>
    </key>

    <key name='snap-cols-pow2' type='b'>
      <summary>Snap number of columns to a power of two</summary>
      <description>
        The number of columns in the character map grid is determined by
        the width of the window.  If this setting is 'true' then the
        value will be forced to the nearest power of two.
      </description>
      <default>false</default>
    </key>

    <key name='last-char' type='u'>
      <range min="0" max="0x10ffff" />
      <summary>Last selected character</summary>
      <description>
        This is the last character that was selected in the character
        map (and will be selected again when the character map is next
        started).

        By default, it is the first letter of the alphabet in the current
        locale.
      </description>
      <!-- The unicode code point of the first letter of the alphabet -->
      <default l10n='messages' context='First letter'>0x41</default>
    </key>
  </schema>

  <schema id='org.gnome.Charmap.WindowState' path='/org/gnome/charmap/window-state/'>
    <key name='maximized' type='b'>
      <default>false</default>
    </key>

    <key name='fullscreen' type='b'>
      <default>false</default>
    </key>

    <key name='size' type='(ii)'>
      <default>(-1, -1)</default>
    </key>
  </schema>
</schemalist>
