aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/delete-comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/delete-comp.c')
-rw-r--r--calendar/gui/dialogs/delete-comp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/calendar/gui/dialogs/delete-comp.c b/calendar/gui/dialogs/delete-comp.c
index 995eed72d3..b222bc7285 100644
--- a/calendar/gui/dialogs/delete-comp.c
+++ b/calendar/gui/dialogs/delete-comp.c
@@ -150,10 +150,11 @@ delete_component_dialog (CalComponent *comp,
}
}
- dialog = gtk_message_dialog_new(NULL, 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "%s", str);
+ dialog = gtk_message_dialog_new (gtk_widget_get_toplevel (widget),
+ 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "%s", str);
g_free (str);
- ret = gtk_dialog_run((GtkDialog *)dialog) == GTK_RESPONSE_YES;
- gtk_widget_destroy(dialog);
+ ret = gtk_dialog_run ((GtkDialog *)dialog) == GTK_RESPONSE_YES;
+ gtk_widget_destroy (dialog);
return ret;
}