diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-09-15 22:52:36 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-09-21 10:53:41 +0100 |
commit | 541acda906e6d725468aa31bcc95f43d1cca23d4 (patch) | |
tree | 03dedc4d00d15bd0c76f3349850721feceae69cd /frontends/gtk/gui.c | |
parent | 11aa682154af6e0d4c7920bb2983df5a6ded126f (diff) | |
download | netsurf-541acda906e6d725468aa31bcc95f43d1cca23d4.tar.gz netsurf-541acda906e6d725468aa31bcc95f43d1cca23d4.tar.bz2 |
add cookie icon and use it for show cookies toolbar button
Diffstat (limited to 'frontends/gtk/gui.c')
-rw-r--r-- | frontends/gtk/gui.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/frontends/gtk/gui.c b/frontends/gtk/gui.c index 9b42ef96b..205c5481b 100644 --- a/frontends/gtk/gui.c +++ b/frontends/gtk/gui.c @@ -270,7 +270,14 @@ static nserror nsgtk_add_named_icons_to_theme(void) pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, false, 8, 8, 32); } gtk_icon_theme_add_builtin_icon("local-history", 32, pixbuf); - #endif + + res = nsgdk_pixbuf_new_from_resname("icons/show-cookie.png", &pixbuf); + if (res != NSERROR_OK) { + pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, false, 8, 24, 24); + } + gtk_icon_theme_add_builtin_icon("show-cookie", 24, pixbuf); + +#endif return NSERROR_OK; } |