event-editor-dialog: Remove dead code
These weren't being used anywhere.
This commit is contained in:
@@ -90,7 +90,6 @@ struct _GcalEventEditorDialog
|
|||||||
/* flags */
|
/* flags */
|
||||||
gboolean event_is_new;
|
gboolean event_is_new;
|
||||||
gboolean recurrence_changed;
|
gboolean recurrence_changed;
|
||||||
gboolean setting_event;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static void on_calendar_selected_action_cb (GSimpleAction *menu_item,
|
static void on_calendar_selected_action_cb (GSimpleAction *menu_item,
|
||||||
@@ -282,14 +281,6 @@ transient_size_allocate_cb (GcalEventEditorDialog *self)
|
|||||||
MAX (400, (gint) (0.75 * alloc.height)));
|
MAX (400, (gint) (0.75 * alloc.height)));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
fix_reminders_label_height_cb (GtkWidget *summary_label,
|
|
||||||
GdkRectangle *allocation,
|
|
||||||
GtkWidget *reminders_label)
|
|
||||||
{
|
|
||||||
gtk_widget_set_size_request (reminders_label, -1, allocation->height);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
on_action_button_clicked_cb (GtkWidget *widget,
|
on_action_button_clicked_cb (GtkWidget *widget,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
@@ -530,7 +521,6 @@ gcal_event_editor_dialog_class_init (GcalEventEditorDialogClass *klass)
|
|||||||
|
|
||||||
|
|
||||||
/* callbacks */
|
/* callbacks */
|
||||||
gtk_widget_class_bind_template_callback (widget_class, fix_reminders_label_height_cb);
|
|
||||||
gtk_widget_class_bind_template_callback (widget_class, on_action_button_clicked_cb);
|
gtk_widget_class_bind_template_callback (widget_class, on_action_button_clicked_cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -616,8 +606,6 @@ gcal_event_editor_dialog_set_event (GcalEventEditorDialog *self,
|
|||||||
|
|
||||||
g_clear_object (&self->event);
|
g_clear_object (&self->event);
|
||||||
|
|
||||||
self->setting_event = TRUE;
|
|
||||||
|
|
||||||
/* If we just set the event to NULL, simply send a property notify */
|
/* If we just set the event to NULL, simply send a property notify */
|
||||||
if (!event)
|
if (!event)
|
||||||
GCAL_GOTO (out);
|
GCAL_GOTO (out);
|
||||||
@@ -668,8 +656,6 @@ out:
|
|||||||
|
|
||||||
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_EVENT]);
|
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_EVENT]);
|
||||||
|
|
||||||
self->setting_event = FALSE;
|
|
||||||
|
|
||||||
GCAL_EXIT;
|
GCAL_EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user