summaryrefslogtreecommitdiff
path: root/frontends/gtk/gui.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-09-15 22:52:36 +0100
committerVincent Sanders <vince@kyllikki.org>2019-09-15 22:52:36 +0100
commitc67c4aa999f44b728bc508ff24060ea605f17e1e (patch)
tree399e8b7891b671e141d93c5e084cadc57e34c2b2 /frontends/gtk/gui.c
parentdc48c0c22fb9612a464429d851b502a0d5718790 (diff)
downloadnetsurf-c67c4aa999f44b728bc508ff24060ea605f17e1e.tar.gz
netsurf-c67c4aa999f44b728bc508ff24060ea605f17e1e.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.c9
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;
}