Add correct parent for ag_app_buttoned_dialog()

It was still using @parent, which was explicitly set to NULL

Fixes #51
This commit is contained in:
Gergely Polonkai 2014-09-06 11:01:46 +02:00
parent acd4a8e078
commit 6078a6e7b2

View File

@ -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,