X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libview%2Fev-stock-icons.c;h=67db47cad62b298391aa0f82a97e9ccab8ea03bc;hb=5a058f12f1606d6d87c9ed592df93b33235d3766;hp=09aa89ea95516e1ea5683fc20d371949b2302ffb;hpb=bc8fd91eed538ddb9a3fdd3b7e05c9ac16a61c97;p=evince.git diff --git a/libview/ev-stock-icons.c b/libview/ev-stock-icons.c index 09aa89ea..67db47ca 100644 --- a/libview/ev-stock-icons.c +++ b/libview/ev-stock-icons.c @@ -42,7 +42,11 @@ static const EvStockIcon stock_icons [] = { { 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_VISIBLE, "eye"}, + { EV_STOCK_RESIZE_SE, "resize-se"}, + { EV_STOCK_RESIZE_SW, "resize-sw"}, + { EV_STOCK_CLOSE, "close"}, + { EV_STOCK_INVERTED_COLORS, "stock_filters-invert"} }; static gchar *ev_icons_path; @@ -88,8 +92,15 @@ ev_stock_icons_init (void) GtkIconFactory *factory; GtkIconSource *source; gint i; +#ifdef G_OS_WIN32 + gchar *dir; + dir = g_win32_get_package_installation_directory_of_module (NULL); + ev_icons_path = g_build_filename (dir, "share", "evince", "icons", NULL); + g_free (dir); +#else ev_icons_path = g_build_filename (DATADIR, "icons", NULL); +#endif factory = gtk_icon_factory_new (); gtk_icon_factory_add_default (factory); @@ -129,8 +140,3 @@ ev_stock_icons_shutdown (void) g_free (ev_icons_path); } -void -ev_stock_icons_add_icons_path (void) -{ - ev_stock_icons_add_icons_path_for_screen (gdk_screen_get_default ()); -}