<HTML
><HEAD
><TITLE
>Format information for the configuration of keybindings
      for standard mens</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK
REL="HOME"
TITLE="Gnome Developers' Information"
HREF="book1.html"><LINK
REL="UP"
TITLE="Automatic menu and toolbar creation with GnomeAppHelper"
HREF="gnome-app-helper.html"><LINK
REL="PREVIOUS"
TITLE="Convenience macros to fill GnomeUIInfo structures"
HREF="gnome-app-helper-convenience-macros.html"><LINK
REL="NEXT"
TITLE="Functions provided by GnomeAppHelper"
HREF="gnome-app-helper-functions.html"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Gnome Developers' Information</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="gnome-app-helper-convenience-macros.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 7. Automatic menu and toolbar creation with GnomeAppHelper</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="gnome-app-helper-functions.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="GNOME-APP-HELPER-KEYBINDINGS-CONFIG"
>Format information for the configuration of keybindings
      for standard mens</A
></H1
><P
>        The information about keybindings is stored using
        gnome-config.  It's stored in the section "/Gnome/Menus".
        Each keybinding is two key/value pairs.  We'll assume that the
        menu item is new.  The idea extends.  The first key pair, in
        this case, is Menu-new-accelerator-key.  The value is an
        integer (I believe from gtk+/gdk/gdkkeysyms.h) describing
        which key corresponds to this menu item.  The second key is
        Menu-new-ac-mods.  This value is another integer, describing
        which set of modifiers corresponds to this menu item.  This
        value is a logical or of values in GdkModifierType in
        gtk+/gdk/gdktypes.h.
      </P
><P
>        If building the configuration by hand, you need to edit
        ~/.gnome/Gnome.  You need to add a section headed by [Menus].
        It should contain two lines for each menu item.  Again suppose
        that you're configuring the menu item new.  The first line of
        the pair should read "Menu-new-accelerator-key=&#60;number&#62;"
        where &#60;number&#62; is an integer from gtk+/gdk/gdkkeysyms.h.
        Usually this means that it's an ASCII value describing which
        key corresponds to this menu item.  The second line should
        read "Menu-new-ac-mods=&#60;number&#62;" where &#60;number&#62; is a logical or
        of values from GdkModifierType in gtk+/gdk/gdktypes.h.
        Usually, this means to start with 0.  If you want shift to be
        part of the keybinding, add 1.  If you want control to be part
        of the keybinding add 4.  If you want alt to be part of the
        keybinding, add 8.  The result is the value substituted for
        &#60;number&#62; in the second line of the pair.
	
      </P
><P
>        The list of possible menu items is as follows.
        <P
></P
><UL
><LI
><P
>new</P
></LI
><LI
><P
>open</P
></LI
><LI
><P
>save</P
></LI
><LI
><P
>save-as</P
></LI
><LI
><P
>revert</P
></LI
><LI
><P
>print</P
></LI
><LI
><P
>print-setup</P
></LI
><LI
><P
>close</P
></LI
><LI
><P
>exit</P
></LI
><LI
><P
>cut</P
></LI
><LI
><P
>copy</P
></LI
><LI
><P
>paste</P
></LI
><LI
><P
>clear</P
></LI
><LI
><P
>undo</P
></LI
><LI
><P
>redo</P
></LI
><LI
><P
>find</P
></LI
><LI
><P
>find-again</P
></LI
><LI
><P
>replace</P
></LI
><LI
><P
>properties</P
></LI
><LI
><P
>preferences</P
></LI
><LI
><P
>about</P
></LI
><LI
><P
>select-all</P
></LI
><LI
><P
>new-window</P
></LI
><LI
><P
>close-window</P
></LI
><LI
><P
>new-game</P
></LI
><LI
><P
>pause-game</P
></LI
><LI
><P
>restart-game</P
></LI
><LI
><P
>undo-move</P
></LI
><LI
><P
>redo-move</P
></LI
><LI
><P
>hint</P
></LI
><LI
><P
>scores</P
></LI
><LI
><P
>end-game</P
></LI
></UL
>
      </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="gnome-app-helper-convenience-macros.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="book1.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="gnome-app-helper-functions.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Convenience macros to fill <SPAN
CLASS="STRUCTNAME"
>GnomeUIInfo</SPAN
> structures</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="gnome-app-helper.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Functions provided by GnomeAppHelper</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>