[gnome-characters/bilelmoussaoui/split-headerbar: 5/5] add a HdyHeaderGroup
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters/bilelmoussaoui/split-headerbar: 5/5] add a HdyHeaderGroup
- Date: Sun, 7 Jun 2020 11:49:11 +0000 (UTC)
commit 3e1911373377fcb580b48584bfb2544a1942efa2
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Sun Jun 7 13:48:33 2020 +0200
add a HdyHeaderGroup
data/mainwindow.ui | 134 ++++++++++++++++++++++++++++++-----------------------
1 file changed, 75 insertions(+), 59 deletions(-)
---
diff --git a/data/mainwindow.ui b/data/mainwindow.ui
index 3379e2f..46d5acb 100644
--- a/data/mainwindow.ui
+++ b/data/mainwindow.ui
@@ -13,63 +13,68 @@
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
- <object class="HdyHeaderBar" id="sidebar-headerbar">
- <property name="can_focus">False</property>
+ <object class="HdyWindowHandle">
<property name="visible">True</property>
<child>
- <object class="GtkToggleButton" id="search-active-button">
- <property name="can_focus">True</property>
+ <object class="GtkHeaderBar" id="sidebar-headerbar">
+ <property name="can_focus">False</property>
<property name="visible">True</property>
- <style>
- <class name="image-button" />
- </style>
<child>
- <object class="GtkImage" id="search-button-image">
+ <object class="GtkToggleButton" id="search-active-button">
+ <property name="can_focus">True</property>
<property name="visible">True</property>
- <property name="icon-name">edit-find-symbolic</property>
+ <style>
+ <class name="image-button" />
+ </style>
+ <child>
+ <object class="GtkImage" id="search-button-image">
+ <property name="visible">True</property>
+ <property name="icon-name">edit-find-symbolic</property>
+ </object>
+ </child>
</object>
+ <packing>
+ <property name="pack-type">start</property>
+ </packing>
</child>
- </object>
- <packing>
- <property name="pack-type">start</property>
- </packing>
- </child>
- <child>
- <object class="GtkButton" id="sidebar-back-button">
- <property name="can_focus">True</property>
- <property name="visible">False</property>
- <style>
- <class name="image-button" />
- </style>
<child>
- <object class="GtkImage" id="back-button-image">
- <property name="visible">True</property>
- <property name="icon-name">go-previous-symbolic</property>
+ <object class="GtkButton" id="sidebar-back-button">
+ <property name="can_focus">True</property>
+ <property name="visible">False</property>
+ <style>
+ <class name="image-button" />
+ </style>
+ <child>
+ <object class="GtkImage" id="back-button-image">
+ <property name="visible">True</property>
+ <property name="icon-name">go-previous-symbolic</property>
+ </object>
+ </child>
</object>
+ <packing>
+ <property name="pack-type">start</property>
+ </packing>
</child>
- </object>
- <packing>
- <property name="pack-type">start</property>
- </packing>
- </child>
- <child>
- <object class="GtkMenuButton" id="menu-button">
- <property name="can_focus">False</property>
- <property name="visible">True</property>
- <property name="use_popover">True</property>
- <style>
- <class name="image-button" />
- </style>
<child>
- <object class="GtkImage" id="menu-button-image">
+ <object class="GtkMenuButton" id="menu-button">
+ <property name="can_focus">False</property>
<property name="visible">True</property>
- <property name="icon-name">open-menu-symbolic</property>
+ <property name="use_popover">True</property>
+ <style>
+ <class name="image-button" />
+ </style>
+ <child>
+ <object class="GtkImage" id="menu-button-image">
+ <property name="visible">True</property>
+ <property name="icon-name">open-menu-symbolic</property>
+ </object>
+ </child>
</object>
+ <packing>
+ <property name="pack-type">end</property>
+ </packing>
</child>
</object>
- <packing>
- <property name="pack-type">end</property>
- </packing>
</child>
</object>
<packing>
@@ -139,29 +144,34 @@
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
- <object class="HdyHeaderBar" id="main-headerbar">
- <property name="can_focus">False</property>
+ <object class="HdyWindowHandle">
<property name="visible">True</property>
- <property name="show-close-button">True</property>
- <property name="has-subtitle">False</property>
- <property name="title" translatable="yes">Current page</property>
<child>
- <object class="GtkButton" id="main-back-button">
- <property name="can_focus">True</property>
- <property name="visible">False</property>
- <style>
- <class name="image-button" />
- </style>
+ <object class="GtkHeaderBar" id="main-headerbar">
+ <property name="can_focus">False</property>
+ <property name="visible">True</property>
+ <property name="show-close-button">True</property>
+ <property name="has-subtitle">False</property>
+ <property name="title" translatable="yes">Current page</property>
<child>
- <object class="GtkImage">
- <property name="visible">True</property>
- <property name="icon-name">go-previous-symbolic</property>
+ <object class="GtkButton" id="main-back-button">
+ <property name="can_focus">True</property>
+ <property name="visible">False</property>
+ <style>
+ <class name="image-button" />
+ </style>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="icon-name">go-previous-symbolic</property>
+ </object>
+ </child>
</object>
+ <packing>
+ <property name="pack-type">start</property>
+ </packing>
</child>
</object>
- <packing>
- <property name="pack-type">start</property>
- </packing>
</child>
</object>
<packing>
@@ -206,5 +216,11 @@
<widget name="header-separator"/>
</widgets>
</object>
+ <object class="HdyHeaderGroup">
+ <headerbars>
+ <headerbar name="sidebar-headerbar"/>
+ <headerbar name="main-headerbar"/>
+ </headerbars>
+ </object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]