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:
parent
0a163c7fd7
commit
6c227b5a65
10
ChangeLog
10
ChangeLog
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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>
|
||||
|
@ -24,19 +24,19 @@ roughly described by the following DTD.
|
||||
<!ELEMENT menuitem EMPTY >
|
||||
<!ELEMENT toolitem EMPTY >
|
||||
<!ELEMENT separator EMPTY >
|
||||
<!ATTLIST menubar name #IMPLIED >
|
||||
<!ATTLIST toolbar name #IMPLIED >
|
||||
<!ATTLIST popup name #IMPLIED >
|
||||
<!ATTLIST placeholder name #IMPLIED >
|
||||
<!ATTLIST menu name #IMPLIED
|
||||
action #REQUIRED
|
||||
pos (top|bot) #IMPLIED >
|
||||
<!ATTLIST menuitem name #IMPLIED
|
||||
action #REQUIRED
|
||||
pos (top|bot) #IMPLIED >
|
||||
<!ATTLIST toolitem name #IMPLIED
|
||||
action #REQUIRED
|
||||
pos (top|bot) #IMPLIED >
|
||||
<!ATTLIST menubar name #IMPLIED >
|
||||
<!ATTLIST toolbar name #IMPLIED >
|
||||
<!ATTLIST popup name #IMPLIED >
|
||||
<!ATTLIST placeholder name #IMPLIED >
|
||||
<!ATTLIST menu name #IMPLIED
|
||||
action #REQUIRED
|
||||
position (top|bot) #IMPLIED >
|
||||
<!ATTLIST menuitem name #IMPLIED
|
||||
action #REQUIRED
|
||||
position (top|bot) #IMPLIED >
|
||||
<!ATTLIST toolitem name #IMPLIED
|
||||
action #REQUIRED
|
||||
position (top|bot) #IMPLIED >
|
||||
</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>
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user