[nautilus/wip/exalm/libhandy: 2/4] Port NautilusToolbar to HdyHeaderBar
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/exalm/libhandy: 2/4] Port NautilusToolbar to HdyHeaderBar
- Date: Tue, 8 Sep 2020 21:54:36 +0000 (UTC)
commit bb11ddf173804fa1175e9404ea2fc6c6ad53a508
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Sep 9 00:18:30 2020 +0500
Port NautilusToolbar to HdyHeaderBar
src/nautilus-toolbar.c | 4 ++--
src/nautilus-toolbar.h | 4 ++--
src/resources/ui/nautilus-toolbar.ui | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index eb8605406..c47798906 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -61,7 +61,7 @@ typedef enum
struct _NautilusToolbar
{
- GtkHeaderBar parent_instance;
+ HdyHeaderBar parent_instance;
NautilusWindow *window;
@@ -128,7 +128,7 @@ enum
static GParamSpec *properties[NUM_PROPERTIES] = { NULL, };
-G_DEFINE_TYPE (NautilusToolbar, nautilus_toolbar, GTK_TYPE_HEADER_BAR);
+G_DEFINE_TYPE (NautilusToolbar, nautilus_toolbar, HDY_TYPE_HEADER_BAR);
static void nautilus_toolbar_set_window_slot_real (NautilusToolbar *self,
NautilusWindowSlot *slot);
diff --git a/src/nautilus-toolbar.h b/src/nautilus-toolbar.h
index 13f00721e..4e8fe6068 100644
--- a/src/nautilus-toolbar.h
+++ b/src/nautilus-toolbar.h
@@ -23,7 +23,7 @@
#pragma once
-#include <gtk/gtk.h>
+#include <handy.h>
#include "nautilus-window-slot.h"
@@ -31,7 +31,7 @@ G_BEGIN_DECLS
#define NAUTILUS_TYPE_TOOLBAR nautilus_toolbar_get_type()
-G_DECLARE_FINAL_TYPE (NautilusToolbar, nautilus_toolbar, NAUTILUS, TOOLBAR, GtkHeaderBar)
+G_DECLARE_FINAL_TYPE (NautilusToolbar, nautilus_toolbar, NAUTILUS, TOOLBAR, HdyHeaderBar)
GtkWidget *nautilus_toolbar_new (void);
diff --git a/src/resources/ui/nautilus-toolbar.ui b/src/resources/ui/nautilus-toolbar.ui
index 51a882838..4bf6e3621 100644
--- a/src/resources/ui/nautilus-toolbar.ui
+++ b/src/resources/ui/nautilus-toolbar.ui
@@ -477,7 +477,7 @@
</object>
</child>
</object>
- <template class="NautilusToolbar" parent="GtkHeaderBar">
+ <template class="NautilusToolbar" parent="HdyHeaderBar">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="show_close_button">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]