/* browser.h */ #ifndef BROWSER_BROWSER_H # define BROWSER_BROWSER_H # include # include "mime.h" /* Browser */ /* types */ enum { BR_COL_PATH = 0, BR_COL_DISPLAY_NAME, BR_COL_PIXBUF_24, #if GTK_CHECK_VERSION(2, 6, 0) BR_COL_PIXBUF_48, #endif BR_COL_IS_DIRECTORY, BR_COL_MIME_TYPE, BR_NUM_COLS }; # define BR_LAST BR_NUM_COLS typedef struct _BrowserPreferences { gboolean show_hidden_files; } BrowserPreferences; typedef struct _Browser { /* config */ /* Config * config; */ BrowserPreferences prefs; BrowserPreferences prefs_tmp; /* mime */ Mime * mime; /* history */ GList * history; GList * current; /* widgets */ GtkIconTheme * theme; GdkPixbuf * pb_file_24; GdkPixbuf * pb_folder_24; #if GTK_CHECK_VERSION(2, 6, 0) GdkPixbuf * pb_file_48; GdkPixbuf * pb_folder_48; #endif GtkWidget * window; GtkToolItem * tb_back; GtkToolItem * tb_updir; GtkToolItem * tb_forward; GtkWidget * tb_path; GtkWidget * scrolled; GtkWidget * detailview; GtkWidget * iconview; GtkListStore * store; GtkWidget * statusbar; guint statusbar_id; /* preferences */ GtkWidget * pr_window; GtkWidget * pr_hidden; } Browser; /* functions */ Browser * browser_new(char const * directory); void browser_delete(Browser * browser); /* useful */ int browser_error(Browser * browser, char const * message, int ret); #endif /* !BROWSER_BROWSER_H */