Make ag_app_buttoned_dialog()'s first parameter nullable
This commit is contained in:
parent
75e7bba711
commit
a3927458b4
@ -437,9 +437,14 @@ ag_app_buttoned_dialog(GtkWidget *window,
|
|||||||
const gchar *button_text;
|
const gchar *button_text;
|
||||||
gint response_id;
|
gint response_id;
|
||||||
GtkWidget *dialog;
|
GtkWidget *dialog;
|
||||||
|
GtkWindow *parent = NULL;
|
||||||
|
|
||||||
|
if (window) {
|
||||||
|
parent = GTK_WINDOW(window);
|
||||||
|
}
|
||||||
|
|
||||||
dialog = gtk_message_dialog_new(
|
dialog = gtk_message_dialog_new(
|
||||||
GTK_WINDOW(window),
|
parent,
|
||||||
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