event-editor: Shuffle some code
Declaring the entries struct inline saves us a few lines of code.
This commit is contained in:
@@ -85,10 +85,6 @@ struct _GcalEventEditorDialog
|
|||||||
gboolean writable;
|
gboolean writable;
|
||||||
};
|
};
|
||||||
|
|
||||||
static void on_calendar_selected_action_cb (GSimpleAction *menu_item,
|
|
||||||
GVariant *value,
|
|
||||||
gpointer user_data);
|
|
||||||
|
|
||||||
G_DEFINE_TYPE (GcalEventEditorDialog, gcal_event_editor_dialog, ADW_TYPE_WINDOW)
|
G_DEFINE_TYPE (GcalEventEditorDialog, gcal_event_editor_dialog, ADW_TYPE_WINDOW)
|
||||||
|
|
||||||
enum
|
enum
|
||||||
@@ -109,11 +105,6 @@ enum
|
|||||||
static guint signals[NUM_SIGNALS] = { 0, };
|
static guint signals[NUM_SIGNALS] = { 0, };
|
||||||
static GParamSpec* properties[N_PROPS] = { NULL, };
|
static GParamSpec* properties[N_PROPS] = { NULL, };
|
||||||
|
|
||||||
static const GActionEntry action_entries[] =
|
|
||||||
{
|
|
||||||
{ "select-calendar", on_calendar_selected_action_cb, "s" },
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Auxiliary methods
|
* Auxiliary methods
|
||||||
@@ -550,6 +541,11 @@ gcal_event_editor_dialog_finalize (GObject *object)
|
|||||||
static void
|
static void
|
||||||
gcal_event_editor_dialog_constructed (GObject* object)
|
gcal_event_editor_dialog_constructed (GObject* object)
|
||||||
{
|
{
|
||||||
|
const GActionEntry action_entries[] =
|
||||||
|
{
|
||||||
|
{ "select-calendar", on_calendar_selected_action_cb, "s" },
|
||||||
|
};
|
||||||
|
|
||||||
GcalEventEditorDialog *self;
|
GcalEventEditorDialog *self;
|
||||||
|
|
||||||
self = GCAL_EVENT_EDITOR_DIALOG (object);
|
self = GCAL_EVENT_EDITOR_DIALOG (object);
|
||||||
|
|||||||
Reference in New Issue
Block a user