2 * prefs.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005-2009 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2006-2009 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 #define GEANY_PREFS_H 1
27 /* General Preferences dialog settings. */
28 typedef struct GeanyPrefs
30 gboolean load_session
;
31 gboolean load_plugins
;
33 gboolean confirm_exit
;
34 gboolean beep_on_errors
;
35 gboolean suppress_status_messages
;
36 gboolean switch_to_status
;
38 gchar
*default_open_path
;
39 gchar
*custom_plugin_path
;
43 extern GeanyPrefs prefs
;
46 typedef struct GeanyToolPrefs
51 gchar
*context_action_cmd
;
55 extern GeanyToolPrefs tool_prefs
;
58 void prefs_show_dialog(void);
60 void on_prefs_font_choosed(GtkFontButton
*widget
, gpointer user_data
);
62 void on_prefs_color_choosed(GtkColorButton
*widget
, gpointer user_data
);
64 void on_prefs_tools_button_clicked(GtkButton
*button
, gpointer user_data
);