Use "position" instead of "pos".

* tests/merge-2.ui: Use "position" instead of "pos".

	* gtk/gtkuimanager.c (start_element_handler): No need
	to be terse: Change the name of the "pos" attribute
	to "position".

	* gtk/tmpl/gtkuimanager.sgml: Change the name of the "pos"
	attribute to "position".
This commit is contained in:
Matthias Clasen 2003-09-04 09:07:23 +00:00
parent 0a163c7fd7
commit 6c227b5a65
9 changed files with 65 additions and 22 deletions

View File

@ -1,9 +1,17 @@
2003-09-04 Matthias Clasen <maclas@gmx.de>
* tests/merge-2.ui: Use "position" instead of "pos".
* gtk/gtkuimanager.c (start_element_handler): No need
to be terse: Change the name of the "pos" attribute
to "position".
2003-09-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and
GtkUIManagerNode to shorten the names and to make the
GTK_UI_MANAGER_<TYPE> names available for a public enum.
* gtk/gtkactiongroup.c:
* gtk/gtkuimanager.c: Various doc tweaks.

View File

@ -1,9 +1,17 @@
2003-09-04 Matthias Clasen <maclas@gmx.de>
* tests/merge-2.ui: Use "position" instead of "pos".
* gtk/gtkuimanager.c (start_element_handler): No need
to be terse: Change the name of the "pos" attribute
to "position".
2003-09-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and
GtkUIManagerNode to shorten the names and to make the
GTK_UI_MANAGER_<TYPE> names available for a public enum.
* gtk/gtkactiongroup.c:
* gtk/gtkuimanager.c: Various doc tweaks.

View File

@ -1,9 +1,17 @@
2003-09-04 Matthias Clasen <maclas@gmx.de>
* tests/merge-2.ui: Use "position" instead of "pos".
* gtk/gtkuimanager.c (start_element_handler): No need
to be terse: Change the name of the "pos" attribute
to "position".
2003-09-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and
GtkUIManagerNode to shorten the names and to make the
GTK_UI_MANAGER_<TYPE> names available for a public enum.
* gtk/gtkactiongroup.c:
* gtk/gtkuimanager.c: Various doc tweaks.

View File

@ -1,9 +1,17 @@
2003-09-04 Matthias Clasen <maclas@gmx.de>
* tests/merge-2.ui: Use "position" instead of "pos".
* gtk/gtkuimanager.c (start_element_handler): No need
to be terse: Change the name of the "pos" attribute
to "position".
2003-09-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and
GtkUIManagerNode to shorten the names and to make the
GTK_UI_MANAGER_<TYPE> names available for a public enum.
* gtk/gtkactiongroup.c:
* gtk/gtkuimanager.c: Various doc tweaks.

View File

@ -1,9 +1,17 @@
2003-09-04 Matthias Clasen <maclas@gmx.de>
* tests/merge-2.ui: Use "position" instead of "pos".
* gtk/gtkuimanager.c (start_element_handler): No need
to be terse: Change the name of the "pos" attribute
to "position".
2003-09-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and
GtkUIManagerNode to shorten the names and to make the
GTK_UI_MANAGER_<TYPE> names available for a public enum.
* gtk/gtkactiongroup.c:
* gtk/gtkuimanager.c: Various doc tweaks.

View File

@ -1,5 +1,8 @@
2003-09-04 Matthias Clasen <maclas@gmx.de>
* gtk/tmpl/gtkuimanager.sgml: Change the name of the "pos"
attribute to "position".
* gtk/tmpl/gtkactiongroup.sgml: Doc tweaks.
2003-09-02 Matthias Clasen <maclas@gmx.de>

View File

@ -24,19 +24,19 @@ roughly described by the following DTD.
&lt;!ELEMENT menuitem EMPTY &gt;
&lt;!ELEMENT toolitem EMPTY &gt;
&lt;!ELEMENT separator EMPTY &gt;
&lt;!ATTLIST menubar name &num;IMPLIED &gt;
&lt;!ATTLIST toolbar name &num;IMPLIED &gt;
&lt;!ATTLIST popup name &num;IMPLIED &gt;
&lt;!ATTLIST placeholder name &num;IMPLIED &gt;
&lt;!ATTLIST menu name &num;IMPLIED
action &num;REQUIRED
pos (top|bot) &num;IMPLIED &gt;
&lt;!ATTLIST menuitem name &num;IMPLIED
action &num;REQUIRED
pos (top|bot) &num;IMPLIED &gt;
&lt;!ATTLIST toolitem name &num;IMPLIED
action &num;REQUIRED
pos (top|bot) &num;IMPLIED &gt;
&lt;!ATTLIST menubar name &num;IMPLIED &gt;
&lt;!ATTLIST toolbar name &num;IMPLIED &gt;
&lt;!ATTLIST popup name &num;IMPLIED &gt;
&lt;!ATTLIST placeholder name &num;IMPLIED &gt;
&lt;!ATTLIST menu name &num;IMPLIED
action &num;REQUIRED
position (top|bot) &num;IMPLIED &gt;
&lt;!ATTLIST menuitem name &num;IMPLIED
action &num;REQUIRED
position (top|bot) &num;IMPLIED &gt;
&lt;!ATTLIST toolitem name &num;IMPLIED
action &num;REQUIRED
position (top|bot) &num;IMPLIED &gt;
</programlisting>
There are some additional restrictions beyond those specified in the
DTD, e.g. every toolitem must have a toolbar in its anchestry and
@ -108,7 +108,7 @@ action</para></listitem>
</variablelist>
</para>
<para>
The pos attribute determines where a constructed widget is positioned
The "position" attribute determines where a constructed widget is positioned
wrt. to its siblings in the partially constructed tree. If it is
"top", the widget is prepended, otherwise it is appended.
</para>

View File

@ -797,7 +797,7 @@ start_element_handler (GMarkupParseContext *context,
action = attribute_values[i];
action_quark = g_quark_from_string (attribute_values[i]);
}
else if (!strcmp (attribute_names[i], "pos"))
else if (!strcmp (attribute_names[i], "position"))
{
top = !strcmp (attribute_values[i], "top");
}

View File

@ -2,7 +2,7 @@
<ui>
<menubar>
<menu name="FileMenu" action="FileMenuAction">
<menuitem name="New" action="NewAction" pos="top" />
<menuitem name="New" action="NewAction" position="top" />
<separator />
<menuitem name="Quit" action="QuitAction" />
</menu>
@ -17,7 +17,7 @@
</placeholder>
</toolbar>
<popup name="FileMenu" action="FileMenuAction">
<menuitem name="New" action="NewAction" pos="top" />
<menuitem name="New" action="NewAction" position="top" />
<menu name="HelpMenu" action="HelpMenuAction">
<menuitem name="About" action="AboutAction" />
</menu>