event-editor-dialog: Drop the useless transient_size_allocate_cb()

This drops the transient_size_allocate_cb() callback function that in
practice does nothing at all. This also fixes an error message as the
size-allocate signal doesn't exist anymore in GTK 4.
This commit is contained in:
Adrien Plazas
2022-05-06 08:40:26 +02:00
parent 595523f688
commit 6b389005e0
@@ -257,16 +257,6 @@ on_calendar_selected_action_cb (GSimpleAction *action,
GCAL_EXIT;
}
static void
transient_size_allocate_cb (GcalEventEditorDialog *self)
{
GtkAllocation alloc;
GtkWindow *transient;
transient = gtk_window_get_transient_for (GTK_WINDOW (self));
gtk_widget_get_allocation (GTK_WIDGET (transient), &alloc);
}
static void
on_cancel_button_clicked_cb (GtkButton *button,
GcalEventEditorDialog *self)
@@ -433,13 +423,6 @@ gcal_event_editor_dialog_constructed (GObject* object)
gtk_widget_insert_action_group (GTK_WIDGET (self),
"event-editor-dialog",
G_ACTION_GROUP (self->action_group));
/* Watch the main window and adapt the maximum size */
g_signal_connect_object (gtk_window_get_transient_for (GTK_WINDOW (self)),
"size-allocate",
G_CALLBACK (transient_size_allocate_cb),
self,
G_CONNECT_SWAPPED);
}
static void