Replace homegrown "nbsp", "hash" and "percent" entities by standard ISO

* gtk/tmpl/gtkprogress.sgml:
	* gtk/tmpl/gtkscale.sgml:
	* gtk/tmpl/gtktreemodel.sgml:
	* gtk/tmpl/gtkimage.sgml:
	* gtk/tmpl/gtksignal.sgml:
	* gtk/tmpl/gtkrc.sgml:
	* gtk/gtk-docs.sgml:
	* gdk/gdk-docs.sgml:
	* gdk/tmpl/threads.sgml:
	* gdk/tmpl/cursors.sgml:
	* gdk/tmpl/rgb.sgml: Replace homegrown "nbsp", "hash" and
	"percent" entities by standard ISO entities "nbsp", "num" and
	"percnt".

	* gtk/text_widget.sgml: Fix a link.
This commit is contained in:
Matthias Clasen
2002-06-03 17:47:31 +00:00
parent dc8e66d35d
commit 96937b32e4
13 changed files with 44 additions and 29 deletions

View File

@ -1,3 +1,21 @@
2002-06-03 Matthias Clasen <maclas@gmx.de>
* gtk/tmpl/gtkprogress.sgml:
* gtk/tmpl/gtkscale.sgml:
* gtk/tmpl/gtktreemodel.sgml:
* gtk/tmpl/gtkimage.sgml:
* gtk/tmpl/gtksignal.sgml:
* gtk/tmpl/gtkrc.sgml:
* gtk/gtk-docs.sgml:
* gdk/gdk-docs.sgml:
* gdk/tmpl/threads.sgml:
* gdk/tmpl/cursors.sgml:
* gdk/tmpl/rgb.sgml: Replace homegrown "nbsp", "hash" and
"percent" entities by standard ISO entities "nbsp", "num" and
"percnt".
* gtk/text_widget.sgml: Fix a link.
2002-05-30 Matthias Clasen <maclas@gmx.de> 2002-05-30 Matthias Clasen <maclas@gmx.de>
Make stock icons appear again (patch by Gediminas Paulauskas): Make stock icons appear again (patch by Gediminas Paulauskas):

View File

@ -1,7 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY hash "#">
<!ENTITY gdk-General SYSTEM "xml/general.xml"> <!ENTITY gdk-General SYSTEM "xml/general.xml">
<!ENTITY gdk-Bitmaps-and-Pixmaps SYSTEM "xml/pixmaps.xml"> <!ENTITY gdk-Bitmaps-and-Pixmaps SYSTEM "xml/pixmaps.xml">
<!ENTITY gdk-Images SYSTEM "xml/images.xml"> <!ENTITY gdk-Images SYSTEM "xml/images.xml">

View File

@ -128,8 +128,8 @@ from inline data as in the below example.
<programlisting> <programlisting>
/* This data is in X bitmap format, and can be created with the 'bitmap' /* This data is in X bitmap format, and can be created with the 'bitmap'
utility. */ utility. */
&hash;define cursor1_width 16 &num;define cursor1_width 16
&hash;define cursor1_height 16 &num;define cursor1_height 16
static unsigned char cursor1_bits[] = { static unsigned char cursor1_bits[] = {
0x80, 0x01, 0x40, 0x02, 0x20, 0x04, 0x10, 0x08, 0x08, 0x10, 0x04, 0x20, 0x80, 0x01, 0x40, 0x02, 0x20, 0x04, 0x10, 0x08, 0x08, 0x10, 0x04, 0x20,
0x82, 0x41, 0x41, 0x82, 0x41, 0x82, 0x82, 0x41, 0x04, 0x20, 0x08, 0x10, 0x82, 0x41, 0x41, 0x82, 0x41, 0x82, 0x82, 0x41, 0x04, 0x20, 0x08, 0x10,

View File

@ -37,10 +37,10 @@ in cases where a "better" visual than the default is available.
<example> <example>
<title>A simple example program using GdkRGB.</title> <title>A simple example program using GdkRGB.</title>
<programlisting> <programlisting>
&hash;include &lt;gtk/gtk.h&gt; &num;include &lt;gtk/gtk.h&gt;
&hash;define IMAGE_WIDTH 256 &num;define IMAGE_WIDTH 256
&hash;define IMAGE_HEIGHT 256 &num;define IMAGE_HEIGHT 256
guchar rgbbuf[IMAGE_WIDTH * IMAGE_HEIGHT * 3]; guchar rgbbuf[IMAGE_WIDTH * IMAGE_HEIGHT * 3];

View File

@ -104,16 +104,16 @@ illustrate how to use threads within GTK+ programs.
* *
*/ */
&hash;include &lt;stdio.h&gt; &num;include &lt;stdio.h&gt;
&hash;include &lt;stdlib.h&gt; &num;include &lt;stdlib.h&gt;
&hash;include &lt;unistd.h&gt; &num;include &lt;unistd.h&gt;
&hash;include &lt;time.h&gt; &num;include &lt;time.h&gt;
&hash;include &lt;gtk/gtk.h&gt; &num;include &lt;gtk/gtk.h&gt;
&hash;include &lt;glib.h&gt; &num;include &lt;glib.h&gt;
&hash;include &lt;pthread.h&gt; &num;include &lt;pthread.h&gt;
&hash;define YES_IT_IS (1) &num;define YES_IT_IS (1)
&hash;define NO_IT_IS_NOT (0) &num;define NO_IT_IS_NOT (0)
typedef struct typedef struct
{ {

View File

@ -1,8 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY hash "#">
<!ENTITY percent "&#37;">
<!ENTITY GtkAccelLabel SYSTEM "xml/gtkaccellabel.xml"> <!ENTITY GtkAccelLabel SYSTEM "xml/gtkaccellabel.xml">
<!ENTITY GtkAdjustment SYSTEM "xml/gtkadjustment.xml"> <!ENTITY GtkAdjustment SYSTEM "xml/gtkadjustment.xml">
<!ENTITY GtkAlignment SYSTEM "xml/gtkalignment.xml"> <!ENTITY GtkAlignment SYSTEM "xml/gtkalignment.xml">

View File

@ -162,7 +162,7 @@ font and foreground color &mdash; use standard
functions such as functions such as
<link linkend="gtk-widget-modify-font">gtk_widget_modify_font()</link> <link linkend="gtk-widget-modify-font">gtk_widget_modify_font()</link>
or or
<link linkend="gtk-widget-modify-fg">gtk_widget_modify_text()</link>. <link linkend="gtk-widget-modify-text">gtk_widget_modify_text()</link>.
For other attributes there are dedicated methods on For other attributes there are dedicated methods on
<link linkend="GtkTextView">GtkTextView</link> such as <link linkend="GtkTextView">GtkTextView</link> such as
<link linkend="gtk-text-view-set-tabs">gtk_text_view_set_tabs()</link>. <link linkend="gtk-text-view-set-tabs">gtk_text_view_set_tabs()</link>.

View File

@ -45,7 +45,7 @@ on the image, such as button clicks, place the image inside a
GdkEventButton *event, GdkEventButton *event,
gpointer data) gpointer data)
{ {
g_print ("Event box clicked at coordinates &percent;d,&percent;d\n", g_print ("Event box clicked at coordinates &percnt;d,&percnt;d\n",
event->x, event->y); event->x, event->y);
/* Returning TRUE means we handled the event, so the signal /* Returning TRUE means we handled the event, so the signal

View File

@ -53,22 +53,22 @@ current progress. The string can contain the following substitution characters:
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para> <para>
&percent;v - the current progress value. &percnt;v - the current progress value.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
&percent;l - the lower bound for the progress value. &percnt;l - the lower bound for the progress value.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
&percent;u - the upper bound for the progress value. &percnt;u - the upper bound for the progress value.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
&percent;p - the current progress percentage. &percnt;p - the current progress percentage.
</para> </para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>

View File

@ -371,9 +371,9 @@ state of the widget. The states are:
Colors can be specified as a string containing a color name (GTK+ knows Colors can be specified as a string containing a color name (GTK+ knows
all names from the X color database all names from the X color database
<filename>/usr/lib/X11/rgb.txt</filename>), <filename>/usr/lib/X11/rgb.txt</filename>),
in one of the hexadecimal forms <literal>&hash;rrrrggggbbbb</literal>, in one of the hexadecimal forms <literal>&num;rrrrggggbbbb</literal>,
<literal>&hash;rrrgggbbb</literal>, <literal>&hash;rrggbb</literal>, <literal>&num;rrrgggbbb</literal>, <literal>&num;rrggbb</literal>,
or <literal>&hash;rgb</literal>, where <literal>r</literal>, or <literal>&num;rgb</literal>, where <literal>r</literal>,
<literal>g</literal> and <literal>b</literal> are <literal>g</literal> and <literal>b</literal> are
hex digits, or they can be specified as a triplet hex digits, or they can be specified as a triplet
<literal>{ <replaceable>r</replaceable>, <replaceable>g</replaceable>, <literal>{ <replaceable>r</replaceable>, <replaceable>g</replaceable>,

View File

@ -121,7 +121,7 @@ static gchar*
format_value_callback (GtkScale *scale, format_value_callback (GtkScale *scale,
gdouble value) gdouble value)
{ {
return g_strdup_printf ("--&gt;&percent;0.*g&lt;--", return g_strdup_printf ("--&gt;&percnt;0.*g&lt;--",
gtk_scale_get_digits (scale), value); gtk_scale_get_digits (scale), value);
} }
</programlisting></informalexample> </programlisting></informalexample>

View File

@ -450,7 +450,7 @@ as parameter to your function:
<programlisting> <programlisting>
static void button_clicked_int (GtkButton* button, gpointer func_data) static void button_clicked_int (GtkButton* button, gpointer func_data)
{ {
g_print ("button pressed: &percent;d\n", GPOINTER_TO_INT (func_data)); g_print ("button pressed: &percnt;d\n", GPOINTER_TO_INT (func_data));
} }
/* By calling this function, you will make the g_print above /* By calling this function, you will make the g_print above

View File

@ -177,7 +177,7 @@ enum
-1); -1);
/* Do something with the data */ /* Do something with the data */
g_print ("Row &percent;d: (&percent;s,&percent;d)\n", row_count, str_data, int_data); g_print ("Row &percnt;d: (&percnt;s,&percnt;d)\n", row_count, str_data, int_data);
g_free (str_data); g_free (str_data);
row_count ++; row_count ++;