diff options
author | Vincent Sanders <vince@kyllikki.org> | 2012-12-30 01:17:17 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2013-01-01 00:59:47 +0000 |
commit | 33934e12713f2ba8f5369a27f6abf725862f1a18 (patch) | |
tree | 2e44e88ae51bd73d7b7b2f2b40e63100c0451946 /gtk/gui.c | |
parent | ea3f09a72433be165cc4ec09052b3d636e64ac0c (diff) | |
download | netsurf-33934e12713f2ba8f5369a27f6abf725862f1a18.tar.gz netsurf-33934e12713f2ba8f5369a27f6abf725862f1a18.tar.bz2 |
implement the GTK preferances dialog with signals
Diffstat (limited to 'gtk/gui.c')
-rw-r--r-- | gtk/gui.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -59,7 +59,6 @@ #include "desktop/tree.h" #include "css/utils.h" #include "gtk/compat.h" -#include "gtk/dialogs/options.h" #include "gtk/completion.h" #include "gtk/cookies.h" #include "gtk/download.h" @@ -85,6 +84,7 @@ char *toolbar_indices_file_location; char *res_dir_location; char *print_options_file_location; char *languages_file_location; +char *themelist_file_location; GdkPixbuf *favicon_pixbuf; /* favicon default pixbuf */ @@ -364,6 +364,17 @@ static void gui_init(int argc, char** argv, char **respath) die("Unable to find resources.\n"); } + /* find the theme list file */ + themelist_file_location = filepath_find(respath, "themelist"); + if ((themelist_file_location != NULL) && + (strlen(themelist_file_location) < 10)) { + free(themelist_file_location); + themelist_file_location = NULL; + } + if (themelist_file_location == NULL) { + LOG(("Unable to find themelist - disabling")); + } + /* Obtain resources path location. * * Uses the directory the languages file was found in, |