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
|
||||
{
|
||||
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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user