[gnome-todo] window: Add GtdOmniArea to the headerbar
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] window: Add GtdOmniArea to the headerbar
- Date: Fri, 1 May 2020 00:13:27 +0000 (UTC)
commit 033f7477ece6e81ed9805505a671d6db7233d7b2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Apr 30 19:16:14 2020 -0300
window: Add GtdOmniArea to the headerbar
src/gtd-window.c | 2 ++
src/gtd-window.ui | 8 ++++++++
2 files changed, 10 insertions(+)
---
diff --git a/src/gtd-window.c b/src/gtd-window.c
index d9864a8..bfa2ad4 100644
--- a/src/gtd-window.c
+++ b/src/gtd-window.c
@@ -33,6 +33,7 @@
#include "gtd-manager-protected.h"
#include "gtd-notification.h"
#include "gtd-notification-widget.h"
+#include "gtd-omni-area.h"
#include "gtd-plugin-manager.h"
#include "gtd-task.h"
#include "gtd-task-list.h"
@@ -577,6 +578,7 @@ gtd_window_class_init (GtdWindowClass *klass)
g_type_ensure (GTD_TYPE_MENU_BUTTON);
g_type_ensure (GTD_TYPE_NOTIFICATION_WIDGET);
+ g_type_ensure (GTD_TYPE_OMNI_AREA);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/todo/ui/gtd-window.ui");
diff --git a/src/gtd-window.ui b/src/gtd-window.ui
index 9064c1a..fe57dbb 100644
--- a/src/gtd-window.ui
+++ b/src/gtd-window.ui
@@ -83,6 +83,14 @@
<property name="spacing">6</property>
</object>
</child>
+
+ <!-- Omni Area -->
+ <child type="title">
+ <object class="GtdOmniArea" id="omni_area">
+ </object>
+ </child>
+
+
<child type="end">
<object class="GtkMenuButton">
<property name="menu-model">app-menu</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]