summaryrefslogtreecommitdiff
path: root/gtk/gui.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2011-12-31 00:00:54 +0000
committerVincent Sanders <vince@netsurf-browser.org>2011-12-31 00:00:54 +0000
commite0596793e1a1c34786586cb18ee4fc8652ef7c50 (patch)
tree3e51933e2ea15d3f0cbf235884f5a684efa1d7c8 /gtk/gui.c
parentbe20f89884da134b09a96f459bd47e4badb0af39 (diff)
downloadnetsurf-e0596793e1a1c34786586cb18ee4fc8652ef7c50.tar.gz
netsurf-e0596793e1a1c34786586cb18ee4fc8652ef7c50.tar.bz2
load default favicon once
svn path=/trunk/netsurf/; revision=13357
Diffstat (limited to 'gtk/gui.c')
-rw-r--r--gtk/gui.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gui.c b/gtk/gui.c
index 18331264f..5d58958e7 100644
--- a/gtk/gui.c
+++ b/gtk/gui.c
@@ -87,6 +87,8 @@ char *res_dir_location;
char *print_options_file_location;
char *languages_file_location;
+GdkPixbuf *favicon_pixbuf; /* favicon default pixbuf */
+
struct glade_file_location_s *glade_file_location;
static GtkWindow *nsgtk_warning_window;
@@ -389,6 +391,17 @@ static void gui_init(int argc, char** argv, char **respath)
search_default_ico_location = filepath_find(respath, "default.ico");
LOG(("Using '%s' as default search ico", search_default_ico_location));
+ /* Default favicon */
+ resource_filename = filepath_find(respath, "favicon.png");
+ if (resource_filename != NULL) {
+ favicon_pixbuf = gdk_pixbuf_new_from_file(resource_filename, NULL);
+ free(resource_filename);
+ if (favicon_pixbuf == NULL) {
+ favicon_pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, false, 8, 16,16);
+
+ }
+ }
+
/* Toolbar inicies file */
toolbar_indices_file_location = filepath_find(respath, "toolbarIndices");
LOG(("Using '%s' as custom toolbar settings file", toolbar_indices_file_location));