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

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

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

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

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

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

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

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

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-EXIT">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">GNOME_KEY_NAME_CLOSE</title>
<programlisting>#define GNOME_KEY_NAME_CLOSE 	        'W'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-CLOSE">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">GNOME_KEY_NAME_CUT</title>
<programlisting>#define GNOME_KEY_NAME_CUT 	        'X'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-CUT">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">GNOME_KEY_NAME_COPY</title>
<programlisting>#define GNOME_KEY_NAME_COPY	        'C'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-COPY">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">GNOME_KEY_NAME_PASTE</title>
<programlisting>#define GNOME_KEY_NAME_PASTE 	        'V'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-PASTE">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">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">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">GNOME_KEY_NAME_CLEAR</title>
<programlisting>#define GNOME_KEY_NAME_CLEAR 	        0
</programlisting>
<para>

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

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

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-UNDO">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">GNOME_KEY_NAME_REDO</title>
<programlisting>#define GNOME_KEY_NAME_REDO	        'R'
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-REDO">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">GNOME_KEY_NAME_NEW</title>
<programlisting>#define GNOME_KEY_NAME_NEW	        0
</programlisting>
<para>

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

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

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-SAVE">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">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">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">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">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">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">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">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">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">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">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">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">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">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">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">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">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">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">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">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">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">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">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">GNOME_KEY_NAME_PRINT</title>
<programlisting>#define GNOME_KEY_NAME_PRINT            0
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GNOME-KEY-MOD-PRINT">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">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">GNOME_KEY_MOD_PRINT_SETUP</title>
<programlisting>#define GNOME_KEY_MOD_PRINT_SETUP       (0)
</programlisting>
<para>

</para></refsect2>

</refsect1>




</refentry>
