X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-stock-icons.c;h=e1049c973d5520ceb56bebbfc7fdae62bb528e50;hb=dec10c13ca0e95a58e9d6eb537320505ca64d1f8;hp=3b304895f5371804d93c6481f3f8339103eabf30;hpb=04a2ebaeef464d826a6e7bdfa37ab66f792f6991;p=evince.git diff --git a/shell/ev-stock-icons.c b/shell/ev-stock-icons.c index 3b304895..e1049c97 100644 --- a/shell/ev-stock-icons.c +++ b/shell/ev-stock-icons.c @@ -23,11 +23,10 @@ #include -#include "ev-stock-icons.h" +#include +#include -#include -#include -#include +#include "ev-stock-icons.h" typedef struct { char *stock_id; @@ -36,16 +35,22 @@ typedef struct { /* Evince stock icons */ static const EvStockIcon stock_icons [] = { + { EV_STOCK_ZOOM, "zoom" }, { EV_STOCK_ZOOM_PAGE, "zoom-fit-page" }, { EV_STOCK_ZOOM_WIDTH, "zoom-fit-width" }, - { EV_STOCK_LEAVE_FULLSCREEN, "view-restore" }, { EV_STOCK_VIEW_DUAL, "view-page-facing" }, { EV_STOCK_VIEW_CONTINUOUS, "view-page-continuous" }, { EV_STOCK_ROTATE_LEFT, "object-rotate-left"}, { EV_STOCK_ROTATE_RIGHT, "object-rotate-right"}, + { EV_STOCK_RUN_PRESENTATION, "x-office-presentation"}, + { EV_STOCK_VISIBLE, "eye"} }; - +/** + * ev_stock_icons_init: + * + * Creates a new icon factory, adding the base stock icons to it. + */ void ev_stock_icons_init (void) { @@ -73,12 +78,4 @@ ev_stock_icons_init (void) gtk_icon_source_free (source); g_object_unref (G_OBJECT (factory)); - - /* GtkIconTheme will then look in Evince custom hicolor dir - * for icons as well as the standard search paths - */ - /* FIXME: multi-head! */ - gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), - DATADIR G_DIR_SEPARATOR_S "icons"); - }