forked from AuroraMiddleware/gtk
Merge branch 'simplify-toolbar' into 'master'
3to4: Remove GtkToolbar::toolbar_style See merge request GNOME/gtk!3040
This commit is contained in:
commit
6e8e467cc9
@ -1723,6 +1723,20 @@ rewrite_toolbar (Element *element,
|
||||
|
||||
set_attribute_value (element, "class", "GtkBox");
|
||||
|
||||
for (l = element->children; l; l = l->next)
|
||||
{
|
||||
Element *child = l->data;
|
||||
|
||||
if (g_str_equal (child->element_name, "property") &&
|
||||
(has_attribute (child, "name", "toolbar_style") ||
|
||||
has_attribute (child, "name", "toolbar-style")))
|
||||
{
|
||||
element->children = g_list_remove (element->children, child);
|
||||
free_element (child);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for (l = element->children; l; l = l->next)
|
||||
{
|
||||
Element *child = l->data;
|
||||
|
@ -3,6 +3,7 @@
|
||||
<requires lib="gtk+" version="3.0"/>
|
||||
<object class="GtkToolbar">
|
||||
<property name="visible">1</property>
|
||||
<property name="toolbar_style">both</property>
|
||||
<child>
|
||||
<object class="GtkToolButton">
|
||||
<property name="visible">1</property>
|
||||
|
Loading…
Reference in New Issue
Block a user