1 /* 2 * Copyright (C) 2008 Giuseppe Torelli - <colossus73@gmail.com> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 17 * MA 02110-1301 USA. 18 */ 19 20 #ifndef XARCHIVER_PREF_DIALOG_H 21 #define XARCHIVER_PREF_DIALOG_H 22 23 #include <gtk/gtk.h> 24 25 typedef struct Prefs_dialog_data 26 { 27 GtkWidget *dialog1,*dialog_vbox1,*combo_prefered_format, *prefer_unzip; 28 GtkWidget *confirm_deletion, *store_output,*combo_archive_view,*combo_icon_size; 29 GtkWidget *check_show_comment, *check_sort_filename_column, *show_location_bar, *show_sidebar, *show_toolbar, *combo_prefered_viewer, *combo_prefered_archiver, *combo_prefered_custom_cmd; 30 GtkWidget *combo_prefered_web_browser, *combo_prefered_editor, *combo_prefered_temp_dir, *combo_prefered_extract_dir, *allow_sub_dir,*check_save_geometry,*prefs_notebook; 31 GtkListStore *prefs_liststore; 32 GtkWidget *iconview; 33 gint geometry[5]; 34 gint extract_dialog[2]; 35 gint add_coords[2]; 36 gboolean size_changed[2]; 37 } Prefs_dialog_data; 38 39 extern gchar *config_file; 40 extern GtkIconTheme *icon_theme; 41 42 Prefs_dialog_data *xa_create_prefs_dialog(); 43 void xa_prefs_adapt_options(Prefs_dialog_data *); 44 void xa_prefs_apply_options(Prefs_dialog_data *); 45 void xa_prefs_iconview_changed(GtkIconView *, Prefs_dialog_data *); 46 void xa_prefs_load_options(Prefs_dialog_data *); 47 void xa_prefs_save_options(Prefs_dialog_data *, const char *); 48 49 #endif 50