diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-06-14 20:22:09 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-06-17 21:35:40 +0100 |
commit | 61fdc8fd6ffd24abf007598e33cde58fee2b9a83 (patch) | |
tree | 8953d92d97fabb6039dfcf082a6713a8757dbd19 /gtk/gui.c | |
parent | 8ef292b9caf5cae2197493a87480723138f10344 (diff) | |
download | netsurf-61fdc8fd6ffd24abf007598e33cde58fee2b9a83.tar.gz netsurf-61fdc8fd6ffd24abf007598e33cde58fee2b9a83.tar.bz2 |
update default gtk window icon source to use resources
Diffstat (limited to 'gtk/gui.c')
-rw-r--r-- | gtk/gui.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -79,7 +79,8 @@ char *themelist_file_location; char *nsgtk_config_home; /* exported global defined in gtk/gui.h */ -GdkPixbuf *favicon_pixbuf; /* favicon default pixbuf */ +GdkPixbuf *favicon_pixbuf; /** favicon default pixbuf */ +GdkPixbuf *win_default_icon_pixbuf; /** default window icon pixbuf */ GtkBuilder *warning_builder; @@ -281,10 +282,11 @@ static nserror nsgtk_init(int argc, char** argv, char **respath) gtk_builder_connect_signals(warning_builder, NULL); /* set default icon if its available */ - resource_filename = filepath_find(respath, "netsurf.xpm"); - if (resource_filename != NULL) { - gtk_window_set_default_icon_from_file(resource_filename, NULL); - free(resource_filename); + error = nsgdk_pixbuf_new_from_resname("netsurf.xpm", + &win_default_icon_pixbuf); + if (error == NSERROR_OK) { + LOG("Seting default window icon"); + gtk_window_set_default_icon(win_default_icon_pixbuf); } /* Search engine sources */ |