mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-21 11:42:56 +03:00
add cookie icon and use it for show cookies toolbar button
This commit is contained in:
parent
11aa682154
commit
541acda906
@ -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;
|
||||
}
|
||||
|
||||
|
@ -57,6 +57,7 @@
|
||||
<file>quirks.css</file>
|
||||
<file>netsurf.png</file>
|
||||
<file>default.ico</file>
|
||||
<file>icons/show-cookie.png</file>
|
||||
<file>icons/local-history.png</file>
|
||||
<file>icons/arrow-l.png</file>
|
||||
<file>icons/content.png</file>
|
||||
|
@ -96,6 +96,7 @@ static struct nsgtk_resource_s pixbuf_resource[] = {
|
||||
RES_ENTRY("netsurf.xpm"),
|
||||
RES_ENTRY("menu_cursor.png"),
|
||||
RES_ENTRY("icons/local-history.png"),
|
||||
RES_ENTRY("icons/show-cookie.png"),
|
||||
RES_ENTRY("throbber/throbber0.png"),
|
||||
RES_ENTRY("throbber/throbber1.png"),
|
||||
RES_ENTRY("throbber/throbber2.png"),
|
||||
|
@ -139,7 +139,7 @@ TOOLBAR_ITEM(LOCALHISTORY_BUTTON, localhistory, true, y, p, , NULL)
|
||||
TOOLBAR_ITEM(GLOBALHISTORY_BUTTON, globalhistory, true, y, p, gtkGlobalHistory, NULL)
|
||||
TOOLBAR_ITEM(ADDBOOKMARKS_BUTTON, addbookmarks, true, y, p, gtkAddBookMarks, NULL)
|
||||
TOOLBAR_ITEM(SHOWBOOKMARKS_BUTTON, showbookmarks, true, b, p, gtkShowBookMarks, "user-bookmarks")
|
||||
TOOLBAR_ITEM(SHOWCOOKIES_BUTTON, showcookies, true, y, p, gtkShowCookies, NULL)
|
||||
TOOLBAR_ITEM(SHOWCOOKIES_BUTTON, showcookies, true, b, p, gtkShowCookies, "show-cookie")
|
||||
TOOLBAR_ITEM(OPENLOCATION_BUTTON, openlocation, true, y, p, gtkOpenLocation, NULL)
|
||||
TOOLBAR_ITEM(NEXTTAB_BUTTON, nexttab, false, n, y, gtkNextTab, "media-skip-forward")
|
||||
TOOLBAR_ITEM(PREVTAB_BUTTON, prevtab, false, n, y, gtkPrevTab, "media-skip-backward")
|
||||
|
BIN
resources/icons/show-cookie.png
Normal file
BIN
resources/icons/show-cookie.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 303 B |
Loading…
Reference in New Issue
Block a user