[gnome-calendar/gbsneto/edit-dialog-cleanup: 13/23] event-editor-dialog: Remove dead code
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gbsneto/edit-dialog-cleanup: 13/23] event-editor-dialog: Remove dead code
- Date: Sat, 31 Oct 2020 18:47:17 +0000 (UTC)
commit 252c307d69976fe7ce74acdf20a81b175e9767b1
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Oct 31 12:59:05 2020 -0300
event-editor-dialog: Remove dead code
These weren't being used anywhere.
src/gui/event-editor/gcal-event-editor-dialog.c | 14 --------------
1 file changed, 14 deletions(-)
---
diff --git a/src/gui/event-editor/gcal-event-editor-dialog.c b/src/gui/event-editor/gcal-event-editor-dialog.c
index 3d86d7ef..f25142d2 100644
--- a/src/gui/event-editor/gcal-event-editor-dialog.c
+++ b/src/gui/event-editor/gcal-event-editor-dialog.c
@@ -90,7 +90,6 @@ struct _GcalEventEditorDialog
/* flags */
gboolean event_is_new;
gboolean recurrence_changed;
- gboolean setting_event;
};
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)));
}
-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
on_action_button_clicked_cb (GtkWidget *widget,
gpointer user_data)
@@ -530,7 +521,6 @@ gcal_event_editor_dialog_class_init (GcalEventEditorDialogClass *klass)
/* 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);
}
@@ -616,8 +606,6 @@ gcal_event_editor_dialog_set_event (GcalEventEditorDialog *self,
g_clear_object (&self->event);
- self->setting_event = TRUE;
-
/* If we just set the event to NULL, simply send a property notify */
if (!event)
GCAL_GOTO (out);
@@ -668,8 +656,6 @@ out:
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_EVENT]);
- self->setting_event = FALSE;
-
GCAL_EXIT;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]