Code cleanup

This commit is contained in:
Pierre Pronchery 2012-02-25 03:50:10 +00:00
parent 3ea9b1ffca
commit 4c89e69218

View File

@ -1,5 +1,5 @@
/* $Id$ */ /* $Id$ */
/* Copyright (c) 2011 Pierre Pronchery <khorben@defora.org> */ /* Copyright (c) 2009-2012 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS Desktop Surfer */ /* This file is part of DeforaOS Desktop Surfer */
/* This program is free software: you can redistribute it and/or modify /* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -331,7 +331,7 @@ static int _download_error(Download * download, char const * message, int ret)
perror(message); perror(message);
return -ret; return -ret;
} }
dialog = gtk_message_dialog_new(download != NULL dialog = gtk_message_dialog_new((download != NULL)
? GTK_WINDOW(download->window) : NULL, ? GTK_WINDOW(download->window) : NULL,
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE, GTK_BUTTONS_CLOSE,