Merge pull request #76 from gergelypolonkai/bug-51
Add correct parent for ag_app_buttoned_dialog()
This commit is contained in:
commit
0fc538769c
@ -481,12 +481,11 @@ ag_app_buttoned_dialog(GtkWindow *window,
|
|||||||
const gchar *button_text;
|
const gchar *button_text;
|
||||||
gint response_id;
|
gint response_id;
|
||||||
GtkWidget *dialog;
|
GtkWidget *dialog;
|
||||||
GtkWindow *parent = NULL;
|
|
||||||
|
|
||||||
g_return_val_if_fail(GTK_IS_WINDOW(window), GTK_RESPONSE_NONE);
|
g_return_val_if_fail(GTK_IS_WINDOW(window), GTK_RESPONSE_NONE);
|
||||||
|
|
||||||
dialog = gtk_message_dialog_new(
|
dialog = gtk_message_dialog_new(
|
||||||
parent,
|
window,
|
||||||
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
|
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||||
message_type,
|
message_type,
|
||||||
GTK_BUTTONS_NONE,
|
GTK_BUTTONS_NONE,
|
||||||
|
Loading…
Reference in New Issue
Block a user