59 GtkIconTheme *icon_theme;
63 icon_theme = screen ? gtk_icon_theme_get_for_screen (screen) : gtk_icon_theme_get_default ();
72 gtk_icon_theme_get_search_path (icon_theme, &path, &n_paths);
73 for (i = n_paths - 1; i >= 0; i--) {
79 gtk_icon_theme_append_search_path (icon_theme,
94 GtkIconFactory *factory;
95 GtkIconSource *source;
100 dir = g_win32_get_package_installation_directory_of_module (NULL);
101 ev_icons_path = g_build_filename (dir,
"share",
"evince",
"icons", NULL);
104 ev_icons_path = g_build_filename (EVINCEDATADIR,
"icons", NULL);
107 factory = gtk_icon_factory_new ();
108 gtk_icon_factory_add_default (factory);
110 source = gtk_icon_source_new ();
112 for (i = 0; i < G_N_ELEMENTS (stock_icons); i++) {
115 gtk_icon_source_set_icon_name (source, stock_icons [i].icon);
117 set = gtk_icon_set_new ();
118 gtk_icon_set_add_source (set, source);
120 gtk_icon_factory_add (factory, stock_icons [i].stock_id, set);
121 gtk_icon_set_unref (set);
124 gtk_icon_source_free (source);
126 g_object_unref (G_OBJECT (factory));
134 g_return_if_fail (GDK_IS_SCREEN (screen));