Make ag_app_buttoned_dialog()'s first parameter nullable

This commit is contained in:
Gergely Polonkai 2014-08-08 00:42:24 +02:00
parent 75e7bba711
commit a3927458b4

View File

@ -437,9 +437,14 @@ ag_app_buttoned_dialog(GtkWidget *window,
const gchar *button_text;
gint response_id;
GtkWidget *dialog;
GtkWindow *parent = NULL;
if (window) {
parent = GTK_WINDOW(window);
}
dialog = gtk_message_dialog_new(
GTK_WINDOW(window),
parent,
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
message_type,
GTK_BUTTONS_NONE,