diff options
author | Xan Lopez <xan@igalia.com> | 2012-01-27 07:42:12 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-01-27 07:42:12 +0800 |
commit | 518eb4b4c4c088d709d80b7d2d98cbd68c960e2c (patch) | |
tree | 341dd8b9191e299bf69b682cca622c9fbe155610 /lib | |
parent | fbf16f5664a88f9dae9bb0f0983cdc24f93be226 (diff) | |
download | gsoc2013-epiphany-518eb4b4c4c088d709d80b7d2d98cbd68c960e2c.tar gsoc2013-epiphany-518eb4b4c4c088d709d80b7d2d98cbd68c960e2c.tar.gz gsoc2013-epiphany-518eb4b4c4c088d709d80b7d2d98cbd68c960e2c.tar.bz2 gsoc2013-epiphany-518eb4b4c4c088d709d80b7d2d98cbd68c960e2c.tar.lz gsoc2013-epiphany-518eb4b4c4c088d709d80b7d2d98cbd68c960e2c.tar.xz gsoc2013-epiphany-518eb4b4c4c088d709d80b7d2d98cbd68c960e2c.tar.zst gsoc2013-epiphany-518eb4b4c4c088d709d80b7d2d98cbd68c960e2c.zip |
Remove more unused stock icons
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-stock-icons.c | 21 | ||||
-rw-r--r-- | lib/ephy-stock-icons.h | 8 |
2 files changed, 1 insertions, 28 deletions
diff --git a/lib/ephy-stock-icons.c b/lib/ephy-stock-icons.c index 79fe912d8..701ac54da 100644 --- a/lib/ephy-stock-icons.c +++ b/lib/ephy-stock-icons.c @@ -32,16 +32,8 @@ ephy_stock_icons_init (void) GtkIconSource *icon_source; int i; - const char *icon_theme_items[] = - { - STOCK_NEW_TAB, - STOCK_SEND_MAIL, - STOCK_ADD_BOOKMARK, - }; - static const GtkStockItem items[] = { - { EPHY_STOCK_POPUPS, N_("Popup Windows"), 0, 0, NULL }, { EPHY_STOCK_HISTORY, N_("History"), 0, 0, NULL }, { EPHY_STOCK_BOOKMARK, N_("Bookmark"), 0, 0, NULL }, { EPHY_STOCK_BOOKMARKS, N_("Bookmarks"), 0, 0, NULL } @@ -64,19 +56,6 @@ ephy_stock_icons_init (void) gtk_stock_add_static (items, G_N_ELEMENTS (items)); - for (i = 0; i < (int) G_N_ELEMENTS (icon_theme_items); i++) - { - icon_source = gtk_icon_source_new (); - gtk_icon_source_set_icon_name (icon_source, icon_theme_items[i]); - - icon_set = gtk_icon_set_new (); - gtk_icon_set_add_source (icon_set, icon_source); - gtk_icon_source_free (icon_source); - - gtk_icon_factory_add (factory, icon_theme_items[i], icon_set); - gtk_icon_set_unref (icon_set); - } - gtk_icon_factory_add_default (factory); g_object_unref (factory); diff --git a/lib/ephy-stock-icons.h b/lib/ephy-stock-icons.h index 3223906d5..585dc47f6 100644 --- a/lib/ephy-stock-icons.h +++ b/lib/ephy-stock-icons.h @@ -29,16 +29,10 @@ G_BEGIN_DECLS #define EPHY_STOCK_EPHY "web-browser" /* Custom Epiphany named icons */ -#define EPHY_STOCK_POPUPS "popup-hidden" #define EPHY_STOCK_HISTORY "history-view" #define EPHY_STOCK_BOOKMARK "bookmark-web" #define EPHY_STOCK_BOOKMARKS "bookmark-view" - -/* Named icons defined in fd.o Icon Naming Spec */ -#define STOCK_NEW_TAB "tab-new" -#define STOCK_SEND_MAIL "mail-forward" -#define STOCK_ADD_BOOKMARK "bookmark-new" - + void ephy_stock_icons_init (void); G_END_DECLS |