diff options
Diffstat (limited to 'mini-commander/src/preferences.h')
-rw-r--r-- | mini-commander/src/preferences.h | 109 |
1 files changed, 0 insertions, 109 deletions
diff --git a/mini-commander/src/preferences.h b/mini-commander/src/preferences.h deleted file mode 100644 index f68c4093..00000000 --- a/mini-commander/src/preferences.h +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Mini-Commander Applet - * Copyright (C) 1998, 1999 Oliver Maruhn <[email protected]> - * 2002 Sun Microsystems Inc. - * - * Authors: Oliver Maruhn <[email protected]> - * Mark McLoughlin <[email protected]> - * - * 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 St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef __PREFERENCES_H__ -#define __PREFERENCES_H__ - -#include <glib.h> - -G_BEGIN_DECLS - -#include <sys/types.h> -#include <regex.h> - -#include <gtk/gtk.h> - -typedef struct { - char *pattern; - char *command; - regex_t regex; -} MCMacro; - -typedef struct { - int show_default_theme; - int auto_complete_history; - - int normal_size_x; - int normal_size_y; - int panel_size_x; - - int cmd_line_color_fg_r; - int cmd_line_color_fg_g; - int cmd_line_color_fg_b; - int cmd_line_color_bg_r; - int cmd_line_color_bg_g; - int cmd_line_color_bg_b; - - GSList *macros; - - guint idle_macros_loader_id; - -} MCPreferences; - -typedef struct { - GtkWidget *dialog; - GtkWidget *auto_complete_history_toggle; - GtkWidget *size_spinner; - GtkWidget *use_default_theme_toggle; - GtkWidget *fg_color_picker; - GtkWidget *bg_color_picker; - GtkWidget *macros_tree; - GtkWidget *delete_button; - GtkWidget *add_button; - - GtkListStore *macros_store; - - GtkWidget *macro_add_dialog; - GtkWidget *pattern_entry; - GtkWidget *command_entry; -} MCPrefsDialog; - -/* Defaults */ -#define MC_DEFAULT_SHOW_DEFAULT_THEME TRUE -#define MC_DEFAULT_SHOW_HANDLE FALSE -#define MC_DEFAULT_SHOW_FRAME FALSE -#define MC_DEFAULT_AUTO_COMPLETE_HISTORY TRUE - -#define MC_DEFAULT_NORMAL_SIZE_X 150 -#define MC_DEFAULT_NORMAL_SIZE_Y 48 - -#define MC_DEFAULT_CMD_LINE_COLOR_FG_R 0xfc65 -#define MC_DEFAULT_CMD_LINE_COLOR_FG_G 0xfc65 -#define MC_DEFAULT_CMD_LINE_COLOR_FG_B 0xfc65 -#define MC_DEFAULT_CMD_LINE_COLOR_BG_R 0x0 -#define MC_DEFAULT_CMD_LINE_COLOR_BG_G 0x0 -#define MC_DEFAULT_CMD_LINE_COLOR_BG_B 0x0 - -#include "mini-commander_applet.h" - -void mc_load_preferences (MCData *mc); -void mc_show_preferences (GtkAction *action, - MCData *mc); -void mc_macros_free (GSList *macros); - -gboolean mc_key_writable (MCData *mc, - const char *key); - -G_END_DECLS - -#endif |