[gnome-calendar] application: Turn it into a DzlApplication
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] application: Turn it into a DzlApplication
- Date: Mon, 29 Apr 2019 20:11:56 +0000 (UTC)
commit 0c3a16b6882b6a9aa440cc9ce1e44e1af7d5ca30
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Apr 27 19:37:00 2019 -0300
application: Turn it into a DzlApplication
This is required for Dazzle resources to be registered
correctly.
src/gcal-application.c | 4 ++--
src/gcal-application.h | 7 +++----
2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/gcal-application.c b/src/gcal-application.c
index 58e26e84..1890f3fe 100644
--- a/src/gcal-application.c
+++ b/src/gcal-application.c
@@ -36,7 +36,7 @@
struct _GcalApplication
{
- GtkApplication parent;
+ DzlApplication parent;
GtkWidget *window;
@@ -67,7 +67,7 @@ static void gcal_application_quit (GSimpleAction *
GVariant *parameter,
gpointer user_data);
-G_DEFINE_TYPE (GcalApplication, gcal_application, GTK_TYPE_APPLICATION);
+G_DEFINE_TYPE (GcalApplication, gcal_application, DZL_TYPE_APPLICATION);
static gboolean show_version = FALSE;
diff --git a/src/gcal-application.h b/src/gcal-application.h
index 65b817ba..9ee8c3cf 100644
--- a/src/gcal-application.h
+++ b/src/gcal-application.h
@@ -24,13 +24,12 @@
#include "gcal-context.h"
#include "gcal-manager.h"
-#include <gtk/gtk.h>
+#include <dazzle.h>
G_BEGIN_DECLS
-#define GCAL_TYPE_APPLICATION (gcal_application_get_type ())
-
-G_DECLARE_FINAL_TYPE (GcalApplication, gcal_application, GCAL, APPLICATION, GtkApplication)
+#define GCAL_TYPE_APPLICATION (gcal_application_get_type ())
+G_DECLARE_FINAL_TYPE (GcalApplication, gcal_application, GCAL, APPLICATION, DzlApplication)
GcalApplication* gcal_application_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]