1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 3 /* 4 * GThumb 5 * 6 * Copyright (C) 2009 Free Software Foundation, Inc. 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program. If not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 23 #include <config.h> 24 #include <glib/gi18n.h> 25 #include <glib-object.h> 26 #include <gthumb.h> 27 #include "callbacks.h" 28 #include "dlg-rename-series.h" 29 30 31 void rs__gth_browser_file_list_rename_cb(GthBrowser * browser)32rs__gth_browser_file_list_rename_cb (GthBrowser *browser) 33 { 34 GList *items; 35 GList *file_data_list; 36 GList *file_list; 37 38 items = gth_file_selection_get_selected (GTH_FILE_SELECTION (gth_browser_get_file_list_view (browser))); 39 file_data_list = gth_file_list_get_files (GTH_FILE_LIST (gth_browser_get_file_list (browser)), items); 40 file_list = gth_file_data_list_to_file_list (file_data_list); 41 if (file_list != NULL) 42 dlg_rename_series (browser, file_list); 43 44 _g_object_list_unref (file_list); 45 _g_object_list_unref (file_data_list); 46 _gtk_tree_path_list_free (items); 47 } 48