diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-02-05 22:50:31 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-02-05 22:50:31 +0000 |
commit | 6370cf3b8ea3858d0fbd4784e48ce0f4a2cc8a83 (patch) | |
tree | f44039820f62e472ca8763f4c8c7e2eef5004ec0 /docs | |
parent | 9b8cf1d532975caa1a91cd166c0a27446728e0bc (diff) | |
download | gtk+-6370cf3b8ea3858d0fbd4784e48ce0f4a2cc8a83.tar.gz |
Remove a (now) misleading comment.
* gtk/gtkrc.c (gtk_rc_parse_file): Remove a (now) misleading comment.
* gtk/tmpl/gtkrc.sgml: Update the description of RC file loading
to match recent code changes. Also document font_name and engine.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/ChangeLog | 5 | ||||
-rw-r--r-- | docs/reference/gtk/tmpl/gtkrc.sgml | 62 |
2 files changed, 52 insertions, 15 deletions
diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index c875badab7..34f211eb18 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2002-02-05 Matthias Clasen <matthias@local> + + * gtk/tmpl/gtkrc.sgml: Update the description of RC file loading + to match recent code changes. Also document font_name and engine. + Tue Jan 29 23:41:31 2002 Owen Taylor <otaylor@redhat.com> * gtk/Makefile.am (content_files): Add x11.sgml. diff --git a/docs/reference/gtk/tmpl/gtkrc.sgml b/docs/reference/gtk/tmpl/gtkrc.sgml index 76c14a8cad..58596be833 100644 --- a/docs/reference/gtk/tmpl/gtkrc.sgml +++ b/docs/reference/gtk/tmpl/gtkrc.sgml @@ -33,16 +33,13 @@ Additionally, the <envar>GTK_RC_FILES</envar> environment variable can be set to a #G_SEARCHPATH_SEPARATOR_S-separated list of files in order to overwrite the set of default files at runtime. </para> -<para> -For each default file, in addition to the file itself, -GTK+ will look for a locale-specific file that will -be parsed before the main file. For instance, -if <envar>LANG</envar> is set to <literal>ja_JP.ujis</literal>, -when loading the default file <filename>~/.gtkrc</filename> -then GTK+ looks for <filename>~/.gtkrc.ja_JP.ujis</filename>, -<filename>~/.gtkrc.ja_JP</filename>, and -<filename>~/.gtkrc.ja</filename>, and parses all files that -it finds. +<para><anchor id="locale-specific-rc"> +For each RC file, in addition to the file itself, GTK+ will look for +a locale-specific file that will be parsed after the main file. +For instance, if <envar>LANG</envar> is set to <literal>ja_JP.ujis</literal>, +when loading the default file <filename>~/.gtkrc</filename> then GTK+ looks +for <filename>~/.gtkrc.ja_JP</filename> and <filename>~/.gtkrc.ja</filename>, +and parses the first of those that exists. </para> </refsect2> @@ -130,7 +127,14 @@ The possible toplevel declarations are: <varlistentry> <term><literal>include <replaceable>filename</replaceable></literal></term> <listitem> - <para>Parses another file at this point.</para> + <para>Parses another file at this point. If + <replaceable>filename</replaceable> is not an absolute filename, + it is searched in the directories of the currently open RC files. + </para> + <para>GTK+ also tries to load a + <link linkend="locale-specific-rc">locale-specific variant</link> of + the included file. + </para> </listitem> </varlistentry> <varlistentry> @@ -254,7 +258,9 @@ elements are: <term><literal>font = <replaceable>font</replaceable></literal></term> <listitem> <para> - Sets the font for a widget. + Sets the font for a widget. <replaceable>font</replaceable> must be + a XLFD font description, e.g. + <literal>"-*-helvetica-medium-r-normal--10-*-*-*-*-*-*-*"</literal>. </para> </listitem> </varlistentry> @@ -263,11 +269,27 @@ elements are: <listitem> <para> Sets the fontset for a widget. Overrides any - <literal>font</literal> declarations. + <literal>font</literal> declarations. <replaceable>font</replaceable> + must be a comma-separated list of XLFD font descriptions, e.g. + <literal>"-JIS-Fixed-Medium-R-Normal--26-180-100-100-C-240, + -JIS-Fixed-Medium-R-Normal--26-180-100-100-C-120, + -GB-Fixed-Medium-R-Normal--26-180-100-100-C-240, + -Adobe-Courier-Bold-R-Normal--25-180-100-100-M-150"</literal>. </para> </listitem> </varlistentry> <varlistentry> + <term><literal>font_name = <replaceable>font</replaceable></literal></term> + <listitem> + <para> + Sets the font for a widget. Overrides any + <literal>font</literal> or <literal>fontset</literal> declarations. + <replaceable>font</replaceable> must be a Pango font name, e.g. + <literal>"Sans Italic 10"</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> <term><literal>stock[<replaceable>"stock-id"</replaceable>] = { <replaceable>icon source specifications</replaceable> }</literal></term> <listitem> <para> @@ -275,6 +297,15 @@ elements are: </para> </listitem> </varlistentry> + <varlistentry> + <term><literal>engine <replaceable>"engine"</replaceable> { <replaceable>engine-specific +settings</replaceable> }</literal></term> + <listitem> + <para> + Defines the engine to be used when drawing with this style. + </para> + </listitem> + </varlistentry> </variablelist> </para> <para> @@ -336,7 +367,7 @@ state of the widget. The states are: </variablelist> </para> -<para id="color-format"> +<para><anchor id="color-format"> Colors can be specified as a string containing a color name (GTK+ knows all names from the X color database <filename>/usr/lib/X11/rgb.txt</filename>), @@ -656,7 +687,8 @@ statement in a RC file. Parses a given resource file. </para> -@filename: the filename of a file to parse. +@filename: the filename of a file to parse. If @filename is not absolute, it + is searched in the current directory. <!-- ##### FUNCTION gtk_rc_parse_string ##### --> |