Merge pull request #76 from gergelypolonkai/bug-51

Add correct parent for ag_app_buttoned_dialog()
This commit is contained in:
Gergely Polonkai 2014-09-06 11:03:02 +02:00
commit 0fc538769c

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,