[geary/wip/cdavis/hdyheaderbar] toolbar: Use HdyHeaderBar
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/cdavis/hdyheaderbar] toolbar: Use HdyHeaderBar
- Date: Sat, 6 Feb 2021 12:08:19 +0000 (UTC)
commit 44bc5c5cda6039e5d49ba93cc3832b3033a99384
Author: Christopher Davis <brainblasted disroot org>
Date: Sat Feb 6 04:07:28 2021 -0800
toolbar: Use HdyHeaderBar
This was forgotten when porting to HdyWindow,
but is needed for making the window draggable.
src/client/components/components-conversation-header-bar.vala | 2 +-
src/client/components/main-toolbar.vala | 4 ++--
ui/components-conversation-header-bar.ui | 2 +-
ui/main-toolbar.ui | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/client/components/components-conversation-header-bar.vala
b/src/client/components/components-conversation-header-bar.vala
index 858930110..202cf7c43 100644
--- a/src/client/components/components-conversation-header-bar.vala
+++ b/src/client/components/components-conversation-header-bar.vala
@@ -6,7 +6,7 @@
*/
[GtkTemplate (ui = "/org/gnome/Geary/components-conversation-header-bar.ui")]
-public class Components.ConversationHeaderBar : Gtk.HeaderBar {
+public class Components.ConversationHeaderBar : Hdy.HeaderBar {
public Components.ConversationActionBar action_bar { get; set; }
public bool folded { get; set; }
diff --git a/src/client/components/main-toolbar.vala b/src/client/components/main-toolbar.vala
index 252b106c4..607c2af3f 100644
--- a/src/client/components/main-toolbar.vala
+++ b/src/client/components/main-toolbar.vala
@@ -24,7 +24,7 @@ public class MainToolbar : Hdy.Leaflet {
// Folder header elements
[GtkChild]
- private Gtk.HeaderBar folder_header;
+ private Hdy.HeaderBar folder_header;
[GtkChild]
private Gtk.MenuButton main_menu_button;
@@ -33,7 +33,7 @@ public class MainToolbar : Hdy.Leaflet {
// Conversations header elements
[GtkChild]
- private Gtk.HeaderBar conversations_header;
+ private Hdy.HeaderBar conversations_header;
[GtkChild]
private Gtk.ToggleButton search_conversations_button;
diff --git a/ui/components-conversation-header-bar.ui b/ui/components-conversation-header-bar.ui
index 1cb7a8228..965f12625 100644
--- a/ui/components-conversation-header-bar.ui
+++ b/ui/components-conversation-header-bar.ui
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.20"/>
- <template class="ComponentsConversationHeaderBar" parent="GtkHeaderBar">
+ <template class="ComponentsConversationHeaderBar" parent="HdyHeaderBar">
<property name="visible">True</property>
<property name="hexpand">True</property>
<signal name="notify::parent" handler="update_action_bar" swapped="no"/>
diff --git a/ui/main-toolbar.ui b/ui/main-toolbar.ui
index 39a041917..aba5529bf 100644
--- a/ui/main-toolbar.ui
+++ b/ui/main-toolbar.ui
@@ -17,7 +17,7 @@
<property name="transition_type">over</property>
<property name="hexpand_set">True</property>
<child>
- <object class="GtkHeaderBar" id="folder_header">
+ <object class="HdyHeaderBar" id="folder_header">
<property name="visible">True</property>
<property name="show_close_button" bind-source="MainToolbar" bind-property="show_close_button"
bind-flags="sync-create"/>
<property name="title">Mail</property>
@@ -57,7 +57,7 @@
</packing>
</child>
<child>
- <object class="GtkHeaderBar" id="conversations_header">
+ <object class="HdyHeaderBar" id="conversations_header">
<property name="visible">True</property>
<property name="hexpand">True</property>
<property name="show_close_button" bind-source="MainToolbar" bind-property="show_close_button"
bind-flags="sync-create"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]