<refentry id="gnomeui-gnome-uidefs">
<refmeta>
<refentrytitle>gnome-uidefs</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GNOMEUI Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>gnome-uidefs</refname><refpurpose>
Useful GNOME macros</refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>
<synopsis>

#include &lt;gnome.h&gt;


#define     <link linkend="GNOME-PAD-CAPS">GNOME_PAD</link>
#define     <link linkend="GNOME-PAD-SMALL-CAPS">GNOME_PAD_SMALL</link>
#define     <link linkend="GNOME-PAD-BIG-CAPS">GNOME_PAD_BIG</link>
#define     <link linkend="GNOME-YES-CAPS">GNOME_YES</link>
#define     <link linkend="GNOME-NO-CAPS">GNOME_NO</link>
#define     <link linkend="GNOME-OK-CAPS">GNOME_OK</link>
#define     <link linkend="GNOME-CANCEL-CAPS">GNOME_CANCEL</link>
#define     <link linkend="GNOME-KEY-NAME-EXIT-CAPS">GNOME_KEY_NAME_EXIT</link>
#define     <link linkend="GNOME-KEY-MOD-EXIT-CAPS">GNOME_KEY_MOD_EXIT</link>
#define     <link linkend="GNOME-KEY-NAME-CLOSE-CAPS">GNOME_KEY_NAME_CLOSE</link>
#define     <link linkend="GNOME-KEY-MOD-CLOSE-CAPS">GNOME_KEY_MOD_CLOSE</link>
#define     <link linkend="GNOME-KEY-NAME-CUT-CAPS">GNOME_KEY_NAME_CUT</link>
#define     <link linkend="GNOME-KEY-MOD-CUT-CAPS">GNOME_KEY_MOD_CUT</link>
#define     <link linkend="GNOME-KEY-NAME-COPY-CAPS">GNOME_KEY_NAME_COPY</link>
#define     <link linkend="GNOME-KEY-MOD-COPY-CAPS">GNOME_KEY_MOD_COPY</link>
#define     <link linkend="GNOME-KEY-NAME-PASTE-CAPS">GNOME_KEY_NAME_PASTE</link>
#define     <link linkend="GNOME-KEY-MOD-PASTE-CAPS">GNOME_KEY_MOD_PASTE</link>
#define     <link linkend="GNOME-KEY-NAME-SELECT-ALL-CAPS">GNOME_KEY_NAME_SELECT_ALL</link>
#define     <link linkend="GNOME-KEY-MOD-SELECT-ALL-CAPS">GNOME_KEY_MOD_SELECT_ALL</link>
#define     <link linkend="GNOME-KEY-NAME-CLEAR-CAPS">GNOME_KEY_NAME_CLEAR</link>
#define     <link linkend="GNOME-KEY-MOD-CLEAR-CAPS">GNOME_KEY_MOD_CLEAR</link>
#define     <link linkend="GNOME-KEY-NAME-UNDO-CAPS">GNOME_KEY_NAME_UNDO</link>
#define     <link linkend="GNOME-KEY-MOD-UNDO-CAPS">GNOME_KEY_MOD_UNDO</link>
#define     <link linkend="GNOME-KEY-NAME-REDO-CAPS">GNOME_KEY_NAME_REDO</link>
#define     <link linkend="GNOME-KEY-MOD-REDO-CAPS">GNOME_KEY_MOD_REDO</link>
#define     <link linkend="GNOME-KEY-NAME-NEW-CAPS">GNOME_KEY_NAME_NEW</link>
#define     <link linkend="GNOME-KEY-MOD-NEW-CAPS">GNOME_KEY_MOD_NEW</link>
#define     <link linkend="GNOME-KEY-NAME-SAVE-CAPS">GNOME_KEY_NAME_SAVE</link>
#define     <link linkend="GNOME-KEY-MOD-SAVE-CAPS">GNOME_KEY_MOD_SAVE</link>
#define     <link linkend="GNOME-KEY-NAME-SAVE-AS-CAPS">GNOME_KEY_NAME_SAVE_AS</link>
#define     <link linkend="GNOME-KEY-MOD-SAVE-AS-CAPS">GNOME_KEY_MOD_SAVE_AS</link>
#define     <link linkend="GNOME-KEY-NAME-OPEN-CAPS">GNOME_KEY_NAME_OPEN</link>
#define     <link linkend="GNOME-KEY-MOD-OPEN-CAPS">GNOME_KEY_MOD_OPEN</link>
#define     <link linkend="GNOME-KEY-NAME-NEW-WINDOW-CAPS">GNOME_KEY_NAME_NEW_WINDOW</link>
#define     <link linkend="GNOME-KEY-MOD-NEW-WINDOW-CAPS">GNOME_KEY_MOD_NEW_WINDOW</link>
#define     <link linkend="GNOME-KEY-NAME-CLOSE-WINDOW-CAPS">GNOME_KEY_NAME_CLOSE_WINDOW</link>
#define     <link linkend="GNOME-KEY-MOD-CLOSE-WINDOW-CAPS">GNOME_KEY_MOD_CLOSE_WINDOW</link>
#define     <link linkend="GNOME-KEY-NAME-REDO-MOVE-CAPS">GNOME_KEY_NAME_REDO_MOVE</link>
#define     <link linkend="GNOME-KEY-MOD-REDO-MOVE-CAPS">GNOME_KEY_MOD_REDO_MOVE</link>
#define     <link linkend="GNOME-KEY-NAME-UNDO-MOVE-CAPS">GNOME_KEY_NAME_UNDO_MOVE</link>
#define     <link linkend="GNOME-KEY-MOD-UNDO-MOVE-CAPS">GNOME_KEY_MOD_UNDO_MOVE</link>
#define     <link linkend="GNOME-KEY-NAME-FIND-CAPS">GNOME_KEY_NAME_FIND</link>
#define     <link linkend="GNOME-KEY-MOD-FIND-CAPS">GNOME_KEY_MOD_FIND</link>
#define     <link linkend="GNOME-KEY-NAME-FIND-AGAIN-CAPS">GNOME_KEY_NAME_FIND_AGAIN</link>
#define     <link linkend="GNOME-KEY-MOD-FIND-AGAIN-CAPS">GNOME_KEY_MOD_FIND_AGAIN</link>
#define     <link linkend="GNOME-KEY-NAME-REPLACE-CAPS">GNOME_KEY_NAME_REPLACE</link>
#define     <link linkend="GNOME-KEY-MOD-REPLACE-CAPS">GNOME_KEY_MOD_REPLACE</link>
#define     <link linkend="GNOME-KEY-NAME-PAUSE-GAME-CAPS">GNOME_KEY_NAME_PAUSE_GAME</link>
#define     <link linkend="GNOME-KEY-MOD-PAUSE-GAME-CAPS">GNOME_KEY_MOD_PAUSE_GAME</link>
#define     <link linkend="GNOME-KEY-NAME-NEW-GAME-CAPS">GNOME_KEY_NAME_NEW_GAME</link>
#define     <link linkend="GNOME-KEY-MOD-NEW-GAME-CAPS">GNOME_KEY_MOD_NEW_GAME</link>
#define     <link linkend="GNOME-KEY-NAME-PRINT-CAPS">GNOME_KEY_NAME_PRINT</link>
#define     <link linkend="GNOME-KEY-MOD-PRINT-CAPS">GNOME_KEY_MOD_PRINT</link>
#define     <link linkend="GNOME-KEY-NAME-PRINT-SETUP-CAPS">GNOME_KEY_NAME_PRINT_SETUP</link>
#define     <link linkend="GNOME-KEY-MOD-PRINT-SETUP-CAPS">GNOME_KEY_MOD_PRINT_SETUP</link>
</synopsis>
</refsynopsisdiv>





<refsect1>
<title>Description</title>
<para>
Use the GNOME_PAD macros to make GNOME spacing and distances more
consistent. GNOME_YES and GNOME_NO, GNOME_OK and GNOME_CANCEL are used
to represent button numbers in yes-no or ok-cancel GnomeDialogs.
Ignore the GNOME_KEY_ macros, they are old cruft.
</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="GNOME-PAD-CAPS">GNOME_PAD</title>
<programlisting>#define GNOME_PAD          8
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-PAD-SMALL-CAPS">GNOME_PAD_SMALL</title>
<programlisting>#define GNOME_PAD_SMALL    4
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-PAD-BIG-CAPS">GNOME_PAD_BIG</title>
<programlisting>#define GNOME_PAD_BIG      12
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-YES-CAPS">GNOME_YES</title>
<programlisting>#define GNOME_YES 0 
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-NO-CAPS">GNOME_NO</title>
<programlisting>#define GNOME_NO 1 
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-OK-CAPS">GNOME_OK</title>
<programlisting>#define GNOME_OK 0
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-CANCEL-CAPS">GNOME_CANCEL</title>
<programlisting>#define GNOME_CANCEL 1
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-EXIT-CAPS">GNOME_KEY_NAME_EXIT</title>
<programlisting>#define GNOME_KEY_NAME_EXIT 	        'Q'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-EXIT-CAPS">GNOME_KEY_MOD_EXIT</title>
<programlisting>#define GNOME_KEY_MOD_EXIT	        (GDK_CONTROL_MASK)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-CLOSE-CAPS">GNOME_KEY_NAME_CLOSE</title>
<programlisting>#define GNOME_KEY_NAME_CLOSE 	        'W'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-CLOSE-CAPS">GNOME_KEY_MOD_CLOSE</title>
<programlisting>#define	GNOME_KEY_MOD_CLOSE	        (GDK_CONTROL_MASK)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-CUT-CAPS">GNOME_KEY_NAME_CUT</title>
<programlisting>#define GNOME_KEY_NAME_CUT 	        'X'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-CUT-CAPS">GNOME_KEY_MOD_CUT</title>
<programlisting>#define GNOME_KEY_MOD_CUT 	        (GDK_CONTROL_MASK)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-COPY-CAPS">GNOME_KEY_NAME_COPY</title>
<programlisting>#define GNOME_KEY_NAME_COPY	        'C'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-COPY-CAPS">GNOME_KEY_MOD_COPY</title>
<programlisting>#define GNOME_KEY_MOD_COPY	        (GDK_CONTROL_MASK)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-PASTE-CAPS">GNOME_KEY_NAME_PASTE</title>
<programlisting>#define GNOME_KEY_NAME_PASTE 	        'V'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-PASTE-CAPS">GNOME_KEY_MOD_PASTE</title>
<programlisting>#define GNOME_KEY_MOD_PASTE 	        (GDK_CONTROL_MASK)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-SELECT-ALL-CAPS">GNOME_KEY_NAME_SELECT_ALL</title>
<programlisting>#define GNOME_KEY_NAME_SELECT_ALL       0
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-SELECT-ALL-CAPS">GNOME_KEY_MOD_SELECT_ALL</title>
<programlisting>#define GNOME_KEY_MOD_SELECT_ALL        (0)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-CLEAR-CAPS">GNOME_KEY_NAME_CLEAR</title>
<programlisting>#define GNOME_KEY_NAME_CLEAR 	        0
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-CLEAR-CAPS">GNOME_KEY_MOD_CLEAR</title>
<programlisting>#define GNOME_KEY_MOD_CLEAR 	        (0)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-UNDO-CAPS">GNOME_KEY_NAME_UNDO</title>
<programlisting>#define GNOME_KEY_NAME_UNDO  	        'Z'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-UNDO-CAPS">GNOME_KEY_MOD_UNDO</title>
<programlisting>#define GNOME_KEY_MOD_UNDO  	        (GDK_CONTROL_MASK)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-REDO-CAPS">GNOME_KEY_NAME_REDO</title>
<programlisting>#define GNOME_KEY_NAME_REDO	        'R'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-REDO-CAPS">GNOME_KEY_MOD_REDO</title>
<programlisting>#define GNOME_KEY_MOD_REDO	        (GDK_CONTROL_MASK)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-NEW-CAPS">GNOME_KEY_NAME_NEW</title>
<programlisting>#define GNOME_KEY_NAME_NEW	        0
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-NEW-CAPS">GNOME_KEY_MOD_NEW</title>
<programlisting>#define GNOME_KEY_MOD_NEW	        (0)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-SAVE-CAPS">GNOME_KEY_NAME_SAVE</title>
<programlisting>#define GNOME_KEY_NAME_SAVE	        'S'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-SAVE-CAPS">GNOME_KEY_MOD_SAVE</title>
<programlisting>#define GNOME_KEY_MOD_SAVE	        (GDK_CONTROL_MASK)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-SAVE-AS-CAPS">GNOME_KEY_NAME_SAVE_AS</title>
<programlisting>#define GNOME_KEY_NAME_SAVE_AS	        0
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-SAVE-AS-CAPS">GNOME_KEY_MOD_SAVE_AS</title>
<programlisting>#define GNOME_KEY_MOD_SAVE_AS           (0)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-OPEN-CAPS">GNOME_KEY_NAME_OPEN</title>
<programlisting>#define GNOME_KEY_NAME_OPEN	        GDK_F3
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-OPEN-CAPS">GNOME_KEY_MOD_OPEN</title>
<programlisting>#define GNOME_KEY_MOD_OPEN	        (0)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-NEW-WINDOW-CAPS">GNOME_KEY_NAME_NEW_WINDOW</title>
<programlisting>#define GNOME_KEY_NAME_NEW_WINDOW       0
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-NEW-WINDOW-CAPS">GNOME_KEY_MOD_NEW_WINDOW</title>
<programlisting>#define GNOME_KEY_MOD_NEW_WINDOW        (0)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-CLOSE-WINDOW-CAPS">GNOME_KEY_NAME_CLOSE_WINDOW</title>
<programlisting>#define GNOME_KEY_NAME_CLOSE_WINDOW     0
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-CLOSE-WINDOW-CAPS">GNOME_KEY_MOD_CLOSE_WINDOW</title>
<programlisting>#define GNOME_KEY_MOD_CLOSE_WINDOW      (0)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-REDO-MOVE-CAPS">GNOME_KEY_NAME_REDO_MOVE</title>
<programlisting>#define GNOME_KEY_NAME_REDO_MOVE        'R'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-REDO-MOVE-CAPS">GNOME_KEY_MOD_REDO_MOVE</title>
<programlisting>#define GNOME_KEY_MOD_REDO_MOVE         (GDK_CONTROL_MASK)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-UNDO-MOVE-CAPS">GNOME_KEY_NAME_UNDO_MOVE</title>
<programlisting>#define GNOME_KEY_NAME_UNDO_MOVE        'Z'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-UNDO-MOVE-CAPS">GNOME_KEY_MOD_UNDO_MOVE</title>
<programlisting>#define GNOME_KEY_MOD_UNDO_MOVE         (GDK_CONTROL_MASK)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-FIND-CAPS">GNOME_KEY_NAME_FIND</title>
<programlisting>#define GNOME_KEY_NAME_FIND             GDK_F6
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-FIND-CAPS">GNOME_KEY_MOD_FIND</title>
<programlisting>#define GNOME_KEY_MOD_FIND              (0)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-FIND-AGAIN-CAPS">GNOME_KEY_NAME_FIND_AGAIN</title>
<programlisting>#define GNOME_KEY_NAME_FIND_AGAIN       GDK_F6
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-FIND-AGAIN-CAPS">GNOME_KEY_MOD_FIND_AGAIN</title>
<programlisting>#define GNOME_KEY_MOD_FIND_AGAIN        (GDK_SHIFT_MASK)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-REPLACE-CAPS">GNOME_KEY_NAME_REPLACE</title>
<programlisting>#define GNOME_KEY_NAME_REPLACE          GDK_F7
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-REPLACE-CAPS">GNOME_KEY_MOD_REPLACE</title>
<programlisting>#define GNOME_KEY_MOD_REPLACE           (0)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-PAUSE-GAME-CAPS">GNOME_KEY_NAME_PAUSE_GAME</title>
<programlisting>#define GNOME_KEY_NAME_PAUSE_GAME       0
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-PAUSE-GAME-CAPS">GNOME_KEY_MOD_PAUSE_GAME</title>
<programlisting>#define GNOME_KEY_MOD_PAUSE_GAME        (0)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-NEW-GAME-CAPS">GNOME_KEY_NAME_NEW_GAME</title>
<programlisting>#define GNOME_KEY_NAME_NEW_GAME         'N'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-NEW-GAME-CAPS">GNOME_KEY_MOD_NEW_GAME</title>
<programlisting>#define GNOME_KEY_MOD_NEW_GAME          (GDK_CONTROL_MASK)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-PRINT-CAPS">GNOME_KEY_NAME_PRINT</title>
<programlisting>#define GNOME_KEY_NAME_PRINT            0
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-PRINT-CAPS">GNOME_KEY_MOD_PRINT</title>
<programlisting>#define GNOME_KEY_MOD_PRINT             (0)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-NAME-PRINT-SETUP-CAPS">GNOME_KEY_NAME_PRINT_SETUP</title>
<programlisting>#define GNOME_KEY_NAME_PRINT_SETUP      0
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-PRINT-SETUP-CAPS">GNOME_KEY_MOD_PRINT_SETUP</title>
<programlisting>#define GNOME_KEY_MOD_PRINT_SETUP       (0)
</programlisting>
<para>

</para></refsect2>

</refsect1>




</refentry>
