testsuite: Get rid of GtkToolbar

Just use GtkBox instead
This commit is contained in:
Benjamin Otte 2020-02-03 05:40:46 +01:00
parent e00030dff2
commit d72301b3c1
4 changed files with 7 additions and 12 deletions

View File

@ -639,6 +639,7 @@ test_types (void)
{
const gchar buffer[] =
"<interface>"
" <object class=\"GtkBox\" id=\"box\"/>"
" <object class=\"GtkButton\" id=\"button\"/>"
" <object class=\"GtkCheckButton\" id=\"checkbutton\"/>"
" <object class=\"GtkDialog\" id=\"dialog\"/>"
@ -657,7 +658,6 @@ test_types (void)
" <object class=\"GtkStatusbar\" id=\"statusbar\"/>"
" <object class=\"GtkTextView\" id=\"textview\"/>"
" <object class=\"GtkToggleButton\" id=\"togglebutton\"/>"
" <object class=\"GtkToolbar\" id=\"toolbar\"/>"
" <object class=\"GtkTreeStore\" id=\"treestore\"/>"
" <object class=\"GtkTreeView\" id=\"treeview\"/>"
" <object class=\"GtkViewport\" id=\"viewport\"/>"

View File

@ -1,6 +1,6 @@
@import "reset-to-defaults.css";
toolbar {
box {
border-image: url("green-20x20.png") 5000;
background-image: none;
background-color: #000;

View File

@ -7,11 +7,10 @@
<property name="row_spacing">8</property>
<property name="column_spacing">8</property>
<child>
<object class="GtkToolbar" id="toolbar1">
<object class="GtkBox">
<property name="width_request">1</property>
<property name="height_request">1</property>
<property name="can_focus">1</property>
<property name="show_arrow">0</property>
<layout>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
@ -21,11 +20,10 @@
</object>
</child>
<child>
<object class="GtkToolbar" id="toolbar2">
<object class="GtkBox">
<property name="width_request">1</property>
<property name="height_request">1</property>
<property name="can_focus">1</property>
<property name="show_arrow">0</property>
<layout>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
@ -35,11 +33,10 @@
</object>
</child>
<child>
<object class="GtkToolbar" id="toolbar3">
<object class="GtkBox">
<property name="width_request">1</property>
<property name="height_request">1</property>
<property name="can_focus">1</property>
<property name="show_arrow">0</property>
<layout>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
@ -49,11 +46,10 @@
</object>
</child>
<child>
<object class="GtkToolbar" id="toolbar4">
<object class="GtkBox">
<property name="width_request">1</property>
<property name="height_request">1</property>
<property name="can_focus">1</property>
<property name="show_arrow">0</property>
<layout>
<property name="left_attach">0</property>
<property name="top_attach">1</property>

View File

@ -3,11 +3,10 @@
<object class="GtkWindow" id="window1">
<property name="type">popup</property>
<child>
<object class="GtkToolbar" id="toolbar1">
<object class="GtkBox">
<property name="width_request">10</property>
<property name="height_request">10</property>
<property name="can_focus">1</property>
<property name="show_arrow">0</property>
</object>
</child>
</object>