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:
@@ -257,16 +257,6 @@ on_calendar_selected_action_cb (GSimpleAction *action,
|
|||||||
GCAL_EXIT;
|
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
|
static void
|
||||||
on_cancel_button_clicked_cb (GtkButton *button,
|
on_cancel_button_clicked_cb (GtkButton *button,
|
||||||
GcalEventEditorDialog *self)
|
GcalEventEditorDialog *self)
|
||||||
@@ -433,13 +423,6 @@ gcal_event_editor_dialog_constructed (GObject* object)
|
|||||||
gtk_widget_insert_action_group (GTK_WIDGET (self),
|
gtk_widget_insert_action_group (GTK_WIDGET (self),
|
||||||
"event-editor-dialog",
|
"event-editor-dialog",
|
||||||
G_ACTION_GROUP (self->action_group));
|
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
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user