application: Turn it into a DzlApplication
This is required for Dazzle resources to be registered correctly.
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
struct _GcalApplication
|
struct _GcalApplication
|
||||||
{
|
{
|
||||||
GtkApplication parent;
|
DzlApplication parent;
|
||||||
|
|
||||||
GtkWidget *window;
|
GtkWidget *window;
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@ static void gcal_application_quit (GSimpleAction *
|
|||||||
GVariant *parameter,
|
GVariant *parameter,
|
||||||
gpointer user_data);
|
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;
|
static gboolean show_version = FALSE;
|
||||||
|
|
||||||
|
|||||||
@@ -24,13 +24,12 @@
|
|||||||
#include "gcal-context.h"
|
#include "gcal-context.h"
|
||||||
#include "gcal-manager.h"
|
#include "gcal-manager.h"
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <dazzle.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GCAL_TYPE_APPLICATION (gcal_application_get_type ())
|
#define GCAL_TYPE_APPLICATION (gcal_application_get_type ())
|
||||||
|
G_DECLARE_FINAL_TYPE (GcalApplication, gcal_application, GCAL, APPLICATION, DzlApplication)
|
||||||
G_DECLARE_FINAL_TYPE (GcalApplication, gcal_application, GCAL, APPLICATION, GtkApplication)
|
|
||||||
|
|
||||||
GcalApplication* gcal_application_new (void);
|
GcalApplication* gcal_application_new (void);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user