diff options
author | Mohammed Sadiq <sadiq@sadiqpk.org> | 2018-05-07 22:12:09 +0530 |
---|---|---|
committer | Mohammed Sadiq <sadiq@sadiqpk.org> | 2018-05-07 22:30:40 +0530 |
commit | 772c994fd08d02bd0eaab5e8adab0b14578a8a4b (patch) | |
tree | e46e1acfb60f318317f72a57cbca3bd0d41dc0c8 /examples | |
parent | c5976fed9a570ee9b3e39d873f609fa200334eb6 (diff) | |
download | gtk+-772c994fd08d02bd0eaab5e8adab0b14578a8a4b.tar.gz |
examples: Simplify .ui files
Run gtk4-builder-tool recursively
Diffstat (limited to 'examples')
-rw-r--r-- | examples/application10/prefs.ui | 9 | ||||
-rw-r--r-- | examples/application10/window.ui | 123 | ||||
-rw-r--r-- | examples/application2/window.ui | 4 | ||||
-rw-r--r-- | examples/application3/window.ui | 4 | ||||
-rw-r--r-- | examples/application4/window.ui | 4 | ||||
-rw-r--r-- | examples/application5/window.ui | 4 | ||||
-rw-r--r-- | examples/application6/prefs.ui | 9 | ||||
-rw-r--r-- | examples/application6/window.ui | 4 | ||||
-rw-r--r-- | examples/application7/prefs.ui | 9 | ||||
-rw-r--r-- | examples/application7/window.ui | 10 | ||||
-rw-r--r-- | examples/application8/prefs.ui | 9 | ||||
-rw-r--r-- | examples/application8/window.ui | 33 | ||||
-rw-r--r-- | examples/application9/prefs.ui | 9 | ||||
-rw-r--r-- | examples/application9/window.ui | 43 | ||||
-rw-r--r-- | examples/bp/gtk/help-overlay.ui | 12 | ||||
-rw-r--r-- | examples/bp/gtk/menus.ui | 1 | ||||
-rw-r--r-- | examples/builder.ui | 7 |
17 files changed, 82 insertions, 212 deletions
diff --git a/examples/application10/prefs.ui b/examples/application10/prefs.ui index 95e1cb8069..e4796b92bb 100644 --- a/examples/application10/prefs.ui +++ b/examples/application10/prefs.ui @@ -9,15 +9,13 @@ <object class="GtkBox" id="vbox"> <child> <object class="GtkGrid" id="grid"> - <property name="visible">True</property> <property name="margin">6</property> <property name="row-spacing">12</property> <property name="column-spacing">6</property> <child> <object class="GtkLabel" id="fontlabel"> - <property name="visible">True</property> <property name="label">_Font:</property> - <property name="use-underline">True</property> + <property name="use-underline">1</property> <property name="mnemonic-widget">font</property> <property name="xalign">1</property> </object> @@ -28,7 +26,6 @@ </child> <child> <object class="GtkFontButton" id="font"> - <property name="visible">True</property> </object> <packing> <property name="left-attach">1</property> @@ -37,9 +34,8 @@ </child> <child> <object class="GtkLabel" id="transitionlabel"> - <property name="visible">True</property> <property name="label">_Transition:</property> - <property name="use-underline">True</property> + <property name="use-underline">1</property> <property name="mnemonic-widget">transition</property> <property name="xalign">1</property> </object> @@ -50,7 +46,6 @@ </child> <child> <object class="GtkComboBoxText" id="transition"> - <property name="visible">True</property> <items> <item translatable="yes" id="none">None</item> <item translatable="yes" id="crossfade">Fade</item> diff --git a/examples/application10/window.ui b/examples/application10/window.ui index c751dc69fb..9a0c9d0fd1 100644 --- a/examples/application10/window.ui +++ b/examples/application10/window.ui @@ -5,107 +5,86 @@ <property name="title" translatable="yes">Example Application</property> <property name="default-width">600</property> <property name="default-height">400</property> - <child type="titlebar"> - <object class="GtkHeaderBar" id="header"> - <property name="visible">True</property> - <property name="show-title-buttons">True</property> - <child> - <object class="GtkLabel" id="lines_label"> - <property name="visible">False</property> - <property name="label" translatable="yes">Lines:</property> - </object> - <packing> - <property name="pack-type">start</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="lines"> - <property name="visible">False</property> - </object> - <packing> - <property name="pack-type">start</property> - </packing> - </child> - <child type="title"> - <object class="GtkStackSwitcher" id="tabs"> - <property name="visible">True</property> - <property name="stack">stack</property> - </object> - </child> - <child> - <object class="GtkToggleButton" id="search"> - <property name="visible">True</property> - <property name="sensitive">False</property> - <style> - <class name="image-button"/> - </style> - <child> - <object class="GtkImage" id="search-icon"> - <property name="visible">True</property> - <property name="icon-name">edit-find-symbolic</property> - </object> - </child> - </object> - <packing> - <property name="pack-type">end</property> - </packing> - </child> + <child type="titlebar"> + <object class="GtkHeaderBar" id="header"> + <property name="show-title-buttons">1</property> + <child> + <object class="GtkLabel" id="lines_label"> + <property name="visible">0</property> + <property name="label" translatable="yes">Lines:</property> + </object> + </child> + <child> + <object class="GtkLabel" id="lines"> + <property name="visible">0</property> + </object> + </child> + <child type="title"> + <object class="GtkStackSwitcher" id="tabs"> + <property name="stack">stack</property> + </object> + </child> + <child> + <object class="GtkToggleButton" id="search"> + <property name="sensitive">0</property> + <style> + <class name="image-button"/> + </style> <child> - <object class="GtkMenuButton" id="gears"> - <property name="visible">True</property> - <property name="direction">none</property> - <property name="use-popover">True</property> - <style> - <class name="image-button"/> - </style> + <object class="GtkImage" id="search-icon"> + <property name="icon-name">edit-find-symbolic</property> </object> - <packing> - <property name="pack-type">end</property> - </packing> </child> </object> + <packing> + <property name="pack-type">end</property> + </packing> + </child> + <child> + <object class="GtkMenuButton" id="gears"> + <property name="direction">none</property> + <style> + <class name="image-button"/> + </style> + </object> + <packing> + <property name="pack-type">end</property> + </packing> </child> + </object> + </child> <child> <object class="GtkBox" id="content_box"> - <property name="visible">True</property> <property name="orientation">vertical</property> <child> <object class="GtkSearchBar" id="searchbar"> - <property name="visible">True</property> <child> <object class="GtkSearchEntry" id="searchentry"> <signal name="search-changed" handler="search_text_changed"/> - <property name="visible">True</property> </object> </child> </object> </child> <child> <object class="GtkBox" id="hbox"> - <property name="visible">True</property> <child> <object class="GtkRevealer" id="sidebar"> - <property name="visible">True</property> <property name="transition-type">slide-right</property> <child> - <object class="GtkScrolledWindow" id="sidebar-sw"> - <property name="visible">True</property> - <property name="hscrollbar-policy">never</property> - <property name="vscrollbar-policy">automatic</property> - <child> - <object class="GtkListBox" id="words"> - <property name="visible">True</property> - <property name="selection-mode">none</property> - </object> - </child> - </object> + <object class="GtkScrolledWindow" id="sidebar-sw"> + <property name="hscrollbar-policy">never</property> + <child> + <object class="GtkListBox" id="words"> + <property name="selection-mode">none</property> + </object> + </child> + </object> </child> </object> </child> <child> <object class="GtkStack" id="stack"> <signal name="notify::visible-child" handler="visible_child_changed"/> - <property name="visible">True</property> </object> </child> </object> diff --git a/examples/application2/window.ui b/examples/application2/window.ui index d90c3f618c..03fe6d1e05 100644 --- a/examples/application2/window.ui +++ b/examples/application2/window.ui @@ -7,14 +7,11 @@ <property name="default-height">400</property> <child> <object class="GtkBox" id="content_box"> - <property name="visible">True</property> <property name="orientation">vertical</property> <child> <object class="GtkHeaderBar" id="header"> - <property name="visible">True</property> <child type="title"> <object class="GtkStackSwitcher" id="tabs"> - <property name="visible">True</property> <property name="stack">stack</property> </object> </child> @@ -22,7 +19,6 @@ </child> <child> <object class="GtkStack" id="stack"> - <property name="visible">True</property> </object> </child> </object> diff --git a/examples/application3/window.ui b/examples/application3/window.ui index d90c3f618c..03fe6d1e05 100644 --- a/examples/application3/window.ui +++ b/examples/application3/window.ui @@ -7,14 +7,11 @@ <property name="default-height">400</property> <child> <object class="GtkBox" id="content_box"> - <property name="visible">True</property> <property name="orientation">vertical</property> <child> <object class="GtkHeaderBar" id="header"> - <property name="visible">True</property> <child type="title"> <object class="GtkStackSwitcher" id="tabs"> - <property name="visible">True</property> <property name="stack">stack</property> </object> </child> @@ -22,7 +19,6 @@ </child> <child> <object class="GtkStack" id="stack"> - <property name="visible">True</property> </object> </child> </object> diff --git a/examples/application4/window.ui b/examples/application4/window.ui index d90c3f618c..03fe6d1e05 100644 --- a/examples/application4/window.ui +++ b/examples/application4/window.ui @@ -7,14 +7,11 @@ <property name="default-height">400</property> <child> <object class="GtkBox" id="content_box"> - <property name="visible">True</property> <property name="orientation">vertical</property> <child> <object class="GtkHeaderBar" id="header"> - <property name="visible">True</property> <child type="title"> <object class="GtkStackSwitcher" id="tabs"> - <property name="visible">True</property> <property name="stack">stack</property> </object> </child> @@ -22,7 +19,6 @@ </child> <child> <object class="GtkStack" id="stack"> - <property name="visible">True</property> </object> </child> </object> diff --git a/examples/application5/window.ui b/examples/application5/window.ui index d90c3f618c..03fe6d1e05 100644 --- a/examples/application5/window.ui +++ b/examples/application5/window.ui @@ -7,14 +7,11 @@ <property name="default-height">400</property> <child> <object class="GtkBox" id="content_box"> - <property name="visible">True</property> <property name="orientation">vertical</property> <child> <object class="GtkHeaderBar" id="header"> - <property name="visible">True</property> <child type="title"> <object class="GtkStackSwitcher" id="tabs"> - <property name="visible">True</property> <property name="stack">stack</property> </object> </child> @@ -22,7 +19,6 @@ </child> <child> <object class="GtkStack" id="stack"> - <property name="visible">True</property> </object> </child> </object> diff --git a/examples/application6/prefs.ui b/examples/application6/prefs.ui index 95e1cb8069..e4796b92bb 100644 --- a/examples/application6/prefs.ui +++ b/examples/application6/prefs.ui @@ -9,15 +9,13 @@ <object class="GtkBox" id="vbox"> <child> <object class="GtkGrid" id="grid"> - <property name="visible">True</property> <property name="margin">6</property> <property name="row-spacing">12</property> <property name="column-spacing">6</property> <child> <object class="GtkLabel" id="fontlabel"> - <property name="visible">True</property> <property name="label">_Font:</property> - <property name="use-underline">True</property> + <property name="use-underline">1</property> <property name="mnemonic-widget">font</property> <property name="xalign">1</property> </object> @@ -28,7 +26,6 @@ </child> <child> <object class="GtkFontButton" id="font"> - <property name="visible">True</property> </object> <packing> <property name="left-attach">1</property> @@ -37,9 +34,8 @@ </child> <child> <object class="GtkLabel" id="transitionlabel"> - <property name="visible">True</property> <property name="label">_Transition:</property> - <property name="use-underline">True</property> + <property name="use-underline">1</property> <property name="mnemonic-widget">transition</property> <property name="xalign">1</property> </object> @@ -50,7 +46,6 @@ </child> <child> <object class="GtkComboBoxText" id="transition"> - <property name="visible">True</property> <items> <item translatable="yes" id="none">None</item> <item translatable="yes" id="crossfade">Fade</item> diff --git a/examples/application6/window.ui b/examples/application6/window.ui index d90c3f618c..03fe6d1e05 100644 --- a/examples/application6/window.ui +++ b/examples/application6/window.ui @@ -7,14 +7,11 @@ <property name="default-height">400</property> <child> <object class="GtkBox" id="content_box"> - <property name="visible">True</property> <property name="orientation">vertical</property> <child> <object class="GtkHeaderBar" id="header"> - <property name="visible">True</property> <child type="title"> <object class="GtkStackSwitcher" id="tabs"> - <property name="visible">True</property> <property name="stack">stack</property> </object> </child> @@ -22,7 +19,6 @@ </child> <child> <object class="GtkStack" id="stack"> - <property name="visible">True</property> </object> </child> </object> diff --git a/examples/application7/prefs.ui b/examples/application7/prefs.ui index 95e1cb8069..e4796b92bb 100644 --- a/examples/application7/prefs.ui +++ b/examples/application7/prefs.ui @@ -9,15 +9,13 @@ <object class="GtkBox" id="vbox"> <child> <object class="GtkGrid" id="grid"> - <property name="visible">True</property> <property name="margin">6</property> <property name="row-spacing">12</property> <property name="column-spacing">6</property> <child> <object class="GtkLabel" id="fontlabel"> - <property name="visible">True</property> <property name="label">_Font:</property> - <property name="use-underline">True</property> + <property name="use-underline">1</property> <property name="mnemonic-widget">font</property> <property name="xalign">1</property> </object> @@ -28,7 +26,6 @@ </child> <child> <object class="GtkFontButton" id="font"> - <property name="visible">True</property> </object> <packing> <property name="left-attach">1</property> @@ -37,9 +34,8 @@ </child> <child> <object class="GtkLabel" id="transitionlabel"> - <property name="visible">True</property> <property name="label">_Transition:</property> - <property name="use-underline">True</property> + <property name="use-underline">1</property> <property name="mnemonic-widget">transition</property> <property name="xalign">1</property> </object> @@ -50,7 +46,6 @@ </child> <child> <object class="GtkComboBoxText" id="transition"> - <property name="visible">True</property> <items> <item translatable="yes" id="none">None</item> <item translatable="yes" id="crossfade">Fade</item> diff --git a/examples/application7/window.ui b/examples/application7/window.ui index d500409755..90aa1844a6 100644 --- a/examples/application7/window.ui +++ b/examples/application7/window.ui @@ -7,27 +7,22 @@ <property name="default-height">400</property> <child> <object class="GtkBox" id="content_box"> - <property name="visible">True</property> <property name="orientation">vertical</property> <child> <object class="GtkHeaderBar" id="header"> - <property name="visible">True</property> <child type="title"> <object class="GtkStackSwitcher" id="tabs"> - <property name="visible">True</property> <property name="stack">stack</property> </object> </child> <child> <object class="GtkToggleButton" id="search"> - <property name="visible">True</property> - <property name="sensitive">False</property> + <property name="sensitive">0</property> <style> <class name="image-button"/> </style> <child> <object class="GtkImage" id="search-icon"> - <property name="visible">True</property> <property name="icon-name">edit-find-symbolic</property> </object> </child> @@ -40,11 +35,9 @@ </child> <child> <object class="GtkSearchBar" id="searchbar"> - <property name="visible">True</property> <child> <object class="GtkSearchEntry" id="searchentry"> <signal name="search-changed" handler="search_text_changed"/> - <property name="visible">True</property> </object> </child> </object> @@ -52,7 +45,6 @@ <child> <object class="GtkStack" id="stack"> <signal name="notify::visible-child" handler="visible_child_changed"/> - <property name="visible">True</property> </object> </child> </object> diff --git a/examples/application8/prefs.ui b/examples/application8/prefs.ui index 95e1cb8069..e4796b92bb 100644 --- a/examples/application8/prefs.ui +++ b/examples/application8/prefs.ui @@ -9,15 +9,13 @@ <object class="GtkBox" id="vbox"> <child> <object class="GtkGrid" id="grid"> - <property name="visible">True</property> <property name="margin">6</property> <property name="row-spacing">12</property> <property name="column-spacing">6</property> <child> <object class="GtkLabel" id="fontlabel"> - <property name="visible">True</property> <property name="label">_Font:</property> - <property name="use-underline">True</property> + <property name="use-underline">1</property> <property name="mnemonic-widget">font</property> <property name="xalign">1</property> </object> @@ -28,7 +26,6 @@ </child> <child> <object class="GtkFontButton" id="font"> - <property name="visible">True</property> </object> <packing> <property name="left-attach">1</property> @@ -37,9 +34,8 @@ </child> <child> <object class="GtkLabel" id="transitionlabel"> - <property name="visible">True</property> <property name="label">_Transition:</property> - <property name="use-underline">True</property> + <property name="use-underline">1</property> <property name="mnemonic-widget">transition</property> <property name="xalign">1</property> </object> @@ -50,7 +46,6 @@ </child> <child> <object class="GtkComboBoxText" id="transition"> - <property name="visible">True</property> <items> <item translatable="yes" id="none">None</item> <item translatable="yes" id="crossfade">Fade</item> diff --git a/examples/application8/window.ui b/examples/application8/window.ui index 3e51eb7af1..fbf9d4bbbd 100644 --- a/examples/application8/window.ui +++ b/examples/application8/window.ui @@ -7,27 +7,22 @@ <property name="default-height">400</property> <child> <object class="GtkBox" id="content_box"> - <property name="visible">True</property> <property name="orientation">vertical</property> <child> <object class="GtkHeaderBar" id="header"> - <property name="visible">True</property> <child type="title"> <object class="GtkStackSwitcher" id="tabs"> - <property name="visible">True</property> <property name="stack">stack</property> </object> </child> <child> <object class="GtkToggleButton" id="search"> - <property name="visible">True</property> - <property name="sensitive">False</property> + <property name="sensitive">0</property> <style> <class name="image-button"/> </style> <child> <object class="GtkImage" id="search-icon"> - <property name="visible">True</property> <property name="icon-name">edit-find-symbolic</property> </object> </child> @@ -38,9 +33,7 @@ </child> <child> <object class="GtkMenuButton" id="gears"> - <property name="visible">True</property> <property name="direction">none</property> - <property name="use-popover">True</property> <style> <class name="image-button"/> </style> @@ -53,41 +46,33 @@ </child> <child> <object class="GtkSearchBar" id="searchbar"> - <property name="visible">True</property> <child> <object class="GtkSearchEntry" id="searchentry"> <signal name="search-changed" handler="search_text_changed"/> - <property name="visible">True</property> </object> </child> </object> </child> <child> <object class="GtkBox" id="hbox"> - <property name="visible">True</property> <child> <object class="GtkRevealer" id="sidebar"> - <property name="visible">True</property> <property name="transition-type">slide-right</property> <child> - <object class="GtkScrolledWindow" id="sidebar-sw"> - <property name="visible">True</property> - <property name="hscrollbar-policy">never</property> - <property name="vscrollbar-policy">automatic</property> - <child> - <object class="GtkListBox" id="words"> - <property name="visible">True</property> - <property name="selection-mode">none</property> - </object> - </child> - </object> + <object class="GtkScrolledWindow" id="sidebar-sw"> + <property name="hscrollbar-policy">never</property> + <child> + <object class="GtkListBox" id="words"> + <property name="selection-mode">none</property> + </object> + </child> + </object> </child> </object> </child> <child> <object class="GtkStack" id="stack"> <signal name="notify::visible-child" handler="visible_child_changed"/> - <property name="visible">True</property> </object> </child> </object> diff --git a/examples/application9/prefs.ui b/examples/application9/prefs.ui index 95e1cb8069..e4796b92bb 100644 --- a/examples/application9/prefs.ui +++ b/examples/application9/prefs.ui @@ -9,15 +9,13 @@ <object class="GtkBox" id="vbox"> <child> <object class="GtkGrid" id="grid"> - <property name="visible">True</property> <property name="margin">6</property> <property name="row-spacing">12</property> <property name="column-spacing">6</property> <child> <object class="GtkLabel" id="fontlabel"> - <property name="visible">True</property> <property name="label">_Font:</property> - <property name="use-underline">True</property> + <property name="use-underline">1</property> <property name="mnemonic-widget">font</property> <property name="xalign">1</property> </object> @@ -28,7 +26,6 @@ </child> <child> <object class="GtkFontButton" id="font"> - <property name="visible">True</property> </object> <packing> <property name="left-attach">1</property> @@ -37,9 +34,8 @@ </child> <child> <object class="GtkLabel" id="transitionlabel"> - <property name="visible">True</property> <property name="label">_Transition:</property> - <property name="use-underline">True</property> + <property name="use-underline">1</property> <property name="mnemonic-widget">transition</property> <property name="xalign">1</property> </object> @@ -50,7 +46,6 @@ </child> <child> <object class="GtkComboBoxText" id="transition"> - <property name="visible">True</property> <items> <item translatable="yes" id="none">None</item> <item translatable="yes" id="crossfade">Fade</item> diff --git a/examples/application9/window.ui b/examples/application9/window.ui index c36337b4aa..4cced1a1da 100644 --- a/examples/application9/window.ui +++ b/examples/application9/window.ui @@ -7,44 +7,33 @@ <property name="default-height">400</property> <child> <object class="GtkBox" id="content_box"> - <property name="visible">True</property> <property name="orientation">vertical</property> <child> <object class="GtkHeaderBar" id="header"> - <property name="visible">True</property> <child> <object class="GtkLabel" id="lines_label"> - <property name="visible">False</property> + <property name="visible">0</property> <property name="label" translatable="yes">Lines:</property> </object> - <packing> - <property name="pack-type">start</property> - </packing> </child> <child> <object class="GtkLabel" id="lines"> - <property name="visible">False</property> + <property name="visible">0</property> </object> - <packing> - <property name="pack-type">start</property> - </packing> </child> <child type="title"> <object class="GtkStackSwitcher" id="tabs"> - <property name="visible">True</property> <property name="stack">stack</property> </object> </child> <child> <object class="GtkToggleButton" id="search"> - <property name="visible">True</property> - <property name="sensitive">False</property> + <property name="sensitive">0</property> <style> <class name="image-button"/> </style> <child> <object class="GtkImage" id="search-icon"> - <property name="visible">True</property> <property name="icon-name">edit-find-symbolic</property> </object> </child> @@ -55,9 +44,7 @@ </child> <child> <object class="GtkMenuButton" id="gears"> - <property name="visible">True</property> <property name="direction">none</property> - <property name="use-popover">True</property> <style> <class name="image-button"/> </style> @@ -70,41 +57,33 @@ </child> <child> <object class="GtkSearchBar" id="searchbar"> - <property name="visible">True</property> <child> <object class="GtkSearchEntry" id="searchentry"> <signal name="search-changed" handler="search_text_changed"/> - <property name="visible">True</property> </object> </child> </object> </child> <child> <object class="GtkBox" id="hbox"> - <property name="visible">True</property> <child> <object class="GtkRevealer" id="sidebar"> - <property name="visible">True</property> <property name="transition-type">slide-right</property> <child> - <object class="GtkScrolledWindow" id="sidebar-sw"> - <property name="visible">True</property> - <property name="hscrollbar-policy">never</property> - <property name="vscrollbar-policy">automatic</property> - <child> - <object class="GtkListBox" id="words"> - <property name="visible">True</property> - <property name="selection-mode">none</property> - </object> - </child> - </object> + <object class="GtkScrolledWindow" id="sidebar-sw"> + <property name="hscrollbar-policy">never</property> + <child> + <object class="GtkListBox" id="words"> + <property name="selection-mode">none</property> + </object> + </child> + </object> </child> </object> </child> <child> <object class="GtkStack" id="stack"> <signal name="notify::visible-child" handler="visible_child_changed"/> - <property name="visible">True</property> </object> </child> </object> diff --git a/examples/bp/gtk/help-overlay.ui b/examples/bp/gtk/help-overlay.ui index d9e3398aee..20be49ea24 100644 --- a/examples/bp/gtk/help-overlay.ui +++ b/examples/bp/gtk/help-overlay.ui @@ -4,37 +4,31 @@ <property name="modal">1</property> <child> <object class="GtkShortcutsSection"> - <property name="visible">1</property> <property name="section-name">shortcuts</property> <property name="max-height">12</property> <child> <object class="GtkShortcutsGroup"> - <property name="visible">1</property> <property name="title">General</property> <child> <object class="GtkShortcutsShortcut"> - <property name="visible">1</property> <property name="action-name">app.new</property> <property name="title" translatable="yes">New Window</property> </object> </child> <child> <object class="GtkShortcutsShortcut"> - <property name="visible">1</property> <property name="action-name">app.quit</property> <property name="title" translatable="yes">Quit</property> </object> </child> <child> <object class="GtkShortcutsShortcut"> - <property name="visible">1</property> <property name="action-name">win.fullscreen</property> <property name="title" translatable="yes">Fullscreen</property> </object> </child> <child> <object class="GtkShortcutsShortcut"> - <property name="visible">1</property> <property name="action-name">win.show-help-overlay</property> <property name="title" translatable="yes">Shortcuts</property> </object> @@ -43,39 +37,33 @@ </child> <child> <object class="GtkShortcutsGroup"> - <property name="visible">1</property> <property name="title">Text</property> <child> <object class="GtkShortcutsShortcut"> - <property name="visible">1</property> <property name="action-name">win.copy</property> <property name="title" translatable="yes">Copy</property> </object> </child> <child> <object class="GtkShortcutsShortcut"> - <property name="visible">1</property> <property name="action-name">win.paste</property> <property name="title" translatable="yes">Paste</property> </object> </child> <child> <object class="GtkShortcutsShortcut"> - <property name="visible">1</property> <property name="action-name">win.justify::left</property> <property name="title" translatable="yes">Justify left</property> </object> </child> <child> <object class="GtkShortcutsShortcut"> - <property name="visible">1</property> <property name="action-name">win.justify::center</property> <property name="title" translatable="yes">Justify center</property> </object> </child> <child> <object class="GtkShortcutsShortcut"> - <property name="visible">1</property> <property name="action-name">win.justify::right</property> <property name="title" translatable="yes">Justify right</property> </object> diff --git a/examples/bp/gtk/menus.ui b/examples/bp/gtk/menus.ui index e81f0a442f..1df1ac0f56 100644 --- a/examples/bp/gtk/menus.ui +++ b/examples/bp/gtk/menus.ui @@ -1,5 +1,4 @@ <?xml version="1.0" encoding="UTF-8"?> - <interface> <menu id="app-menu"> <section> diff --git a/examples/builder.ui b/examples/builder.ui index b9b5c2d145..eb4c60c866 100644 --- a/examples/builder.ui +++ b/examples/builder.ui @@ -1,13 +1,10 @@ <interface> <object id="window" class="GtkWindow"> - <property name="visible">True</property> <property name="title">Grid</property> <child> <object id="grid" class="GtkGrid"> - <property name="visible">True</property> <child> <object id="button1" class="GtkButton"> - <property name="visible">True</property> <property name="label">Button 1</property> </object> <packing> @@ -17,7 +14,6 @@ </child> <child> <object id="button2" class="GtkButton"> - <property name="visible">True</property> <property name="label">Button 2</property> </object> <packing> @@ -27,7 +23,6 @@ </child> <child> <object id="quit" class="GtkButton"> - <property name="visible">True</property> <property name="label">Quit</property> </object> <packing> @@ -37,8 +32,6 @@ </packing> </child> </object> - <packing> - </packing> </child> </object> </interface> |