/*
- * Geeqie
- * (C) 2004 John Ellis
- * Copyright (C) 2008 - 2010 The Geeqie Team
+ * Copyright (C) 2004 John Ellis
+ * Copyright (C) 2008 - 2016 The Geeqie Team
*
* Author: John Ellis
*
- * This software is released under the GNU General Public License (GNU GPL).
- * Please read the included file COPYING for more information.
- * This software comes with no warranty of any kind, use at your own risk!
+ * 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
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-
#include "main.h"
#include "collect.h"
#include "collect-dlg.h"
collection_confirm_cancel_cb, fd);
generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION,
- _("Overwrite existing file?"), fd->dest_path);
+ _("Overwrite existing file?"), fd->dest_path, TRUE);
generic_dialog_add_button(gd, GTK_STOCK_OK, _("_Overwrite"), collection_confirm_ok_cb, TRUE);
fd = file_util_file_dlg(title, "dlg_collection", parent,
collection_save_or_load_dialog_close_cb, cd);
- generic_dialog_add_message(GENERIC_DIALOG(fd), NULL, title, NULL);
+ generic_dialog_add_message(GENERIC_DIALOG(fd), NULL, title, NULL, FALSE);
file_dialog_add_button(fd, stock_id, btntext, btnfunc, TRUE);
file_dialog_add_path_widgets(fd, get_collections_dir(), path,
void collection_dialog_save_as(gchar *path, CollectionData *cd)
{
-#if 0
- if (!cd->list)
- {
- GtkWidget *parent = NULL;
- CollectWindow *cw;
-
- cw = collection_window_find(cd);
- if (cw) parent = cw->window;
- file_util_warning_dialog(_("Collection empty"),
- _("The current collection is empty, save aborted."),
- GTK_STOCK_DIALOG_INFO, parent);
- return;
- }
-#endif
-
if (!path) path = cd->path;
if (!path) path = cd->name;