summaryrefslogtreecommitdiff
path: root/demos/constraint-editor
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-09 10:26:22 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-11 12:20:57 -0400
commitcd0081d08ab9abccc3bddc8b597413d17f2af709 (patch)
treef0f0964fce367041d6e03cd08f43d1523f1ad1e8 /demos/constraint-editor
parent48821a64d0a55895bcf511ea5fe50431d193acd2 (diff)
downloadgtk+-cd0081d08ab9abccc3bddc8b597413d17f2af709.tar.gz
Use gtk_window_destroy
Replace calls to gtk_widget_destroy on windows with gtk_window_destroy.
Diffstat (limited to 'demos/constraint-editor')
-rw-r--r--demos/constraint-editor/constraint-editor-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/constraint-editor/constraint-editor-window.c b/demos/constraint-editor/constraint-editor-window.c
index 1a78092994..2a7b228028 100644
--- a/demos/constraint-editor/constraint-editor-window.c
+++ b/demos/constraint-editor/constraint-editor-window.c
@@ -317,7 +317,7 @@ save_response_cb (GtkNativeDialog *dialog,
"Saving failed");
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (message_dialog),
"%s", error->message);
- g_signal_connect (message_dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
+ g_signal_connect (message_dialog, "response", G_CALLBACK (gtk_window_destroy), NULL);
gtk_widget_show (message_dialog);
g_error_free (error);
}
@@ -403,7 +403,7 @@ constraint_editor_done (ConstraintEditor *editor,
g_clear_object (&old_constraint);
- gtk_widget_destroy (gtk_widget_get_ancestor (GTK_WIDGET (editor), GTK_TYPE_WINDOW));
+ gtk_window_destroy (GTK_WINDOW (gtk_widget_get_ancestor (GTK_WIDGET (editor), GTK_TYPE_WINDOW)));
}
static void
@@ -444,7 +444,7 @@ guide_editor_done (GuideEditor *editor,
GtkConstraintGuide *guide,
ConstraintEditorWindow *win)
{
- gtk_widget_destroy (gtk_widget_get_ancestor (GTK_WIDGET (editor), GTK_TYPE_WINDOW));
+ gtk_window_destroy (GTK_WINDOW (gtk_widget_get_ancestor (GTK_WIDGET (editor), GTK_TYPE_WINDOW)));
}
static void