From 6078a6e7b206d682fe568822744288245399f036 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 6 Sep 2014 11:01:46 +0200 Subject: [PATCH] Add correct parent for ag_app_buttoned_dialog() It was still using @parent, which was explicitly set to NULL Fixes #51 --- src/ag-app.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ag-app.c b/src/ag-app.c index d545664..3ae09f9 100644 --- a/src/ag-app.c +++ b/src/ag-app.c @@ -481,12 +481,11 @@ ag_app_buttoned_dialog(GtkWindow *window, const gchar *button_text; gint response_id; GtkWidget *dialog; - GtkWindow *parent = NULL; g_return_val_if_fail(GTK_IS_WINDOW(window), GTK_RESPONSE_NONE); dialog = gtk_message_dialog_new( - parent, + window, GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, message_type, GTK_BUTTONS_NONE,