summaryrefslogtreecommitdiff
path: root/gtk/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gui.c')
-rw-r--r--gtk/gui.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/gtk/gui.c b/gtk/gui.c
index 1d15ef743..a120fdfb6 100644
--- a/gtk/gui.c
+++ b/gtk/gui.c
@@ -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,