diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-12-13 09:03:47 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-12-13 09:03:47 -0500 |
commit | 7c70ad46264b449b40b2b9e41fbd77c87ce61c43 (patch) | |
tree | 308816881dce24e6e24975b3da0f7bdf8ea3744b /demos/gtk-demo/application.c | |
parent | 66b4f2a9dd581fdc60c755d0fa70483a9faee07e (diff) | |
download | gtk+-alert-dialog-show-tweak.tar.gz |
alertdialog: Add a cancellable argumentalert-dialog-show-tweak
Allow passing a cancellable to gtk_alert_dialog_show.
Diffstat (limited to 'demos/gtk-demo/application.c')
-rw-r--r-- | demos/gtk-demo/application.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/gtk-demo/application.c b/demos/gtk-demo/application.c index 4570d06452..907436965f 100644 --- a/demos/gtk-demo/application.c +++ b/demos/gtk-demo/application.c @@ -37,7 +37,7 @@ show_action_dialog (GSimpleAction *action) dialog = gtk_alert_dialog_new ("You activated action: \"%s\n", g_action_get_name (G_ACTION (action))); - gtk_alert_dialog_show (dialog, NULL); + gtk_alert_dialog_show (dialog, NULL, NULL); g_object_unref (dialog); } @@ -106,7 +106,7 @@ open_response_cb (GObject *source, GtkAlertDialog *alert; alert = gtk_alert_dialog_new ("Error loading file: \"%s\"", error->message); - gtk_alert_dialog_show (alert, NULL); + gtk_alert_dialog_show (alert, NULL, NULL); g_object_unref (alert); g_error_free (error); } |