tAdd Karen. - cancel - free software for cancelling people and organizations HTML git clone https://git.parazyd.org/cancel DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 284b38e8a9118e062fb73271e71ad4148838293d DIR parent a9ace26d77bd50bd2b4594297e69277a6103cd10 HTML Author: parazyd <parazyd@dyne.org> Date: Thu, 25 Mar 2021 01:43:07 +0100 Add Karen. Diffstat: M cancel.c | 19 +++++++++++++------ A karen.png | 0 2 files changed, 13 insertions(+), 6 deletions(-) --- DIR diff --git a/cancel.c b/cancel.c t@@ -19,15 +19,22 @@ static void cancel(GtkButton *btn, gpointer data) { - GtkWidget *dialog; + GtkWidget *dialog, *karen, *content_area, *label; - dialog = gtk_message_dialog_new(NULL, 0, GTK_MESSAGE_INFO, - GTK_BUTTONS_OK, "Successfully cancelled!"); + dialog = gtk_dialog_new_with_buttons("Cancelled", NULL, + GTK_DIALOG_MODAL, "OK", GTK_RESPONSE_ACCEPT, NULL); - gtk_dialog_run(GTK_DIALOG(dialog)); - gtk_widget_destroy(dialog); + content_area = gtk_dialog_get_content_area(GTK_DIALOG(dialog)); + label = gtk_label_new("\nSuccessfully cancelled!\n"); + gtk_container_add(GTK_CONTAINER(content_area), label); - g_application_quit(G_APPLICATION(data)); + karen = gtk_image_new_from_file("karen.png"); + gtk_container_add(GTK_CONTAINER(content_area), karen); + + gtk_widget_show_all(dialog); + + g_signal_connect_swapped(dialog, "response", + G_CALLBACK (g_application_quit), data); } static void activate(GtkApplication *app, gpointer data) DIR diff --git a/karen.png b/karen.png Binary files differ.