#include <config.h>
#include <gtk/gtk.h>
#include "ev-stock-icons.h"
Go to the source code of this file.
static void ev_stock_icons_add_icons_path_for_screen |
( |
GdkScreen * |
screen) | |
|
|
static |
Definition at line 57 of file ev-stock-icons.c.
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,
void ev_stock_icons_init |
( |
void |
) | |
|
ev_stock_icons_init:
Creates a new icon factory, adding the base stock icons to it.
Definition at line 92 of file ev-stock-icons.c.
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 ();
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));
void ev_stock_icons_set_screen |
( |
GdkScreen * |
screen) | |
|
Definition at line 132 of file ev-stock-icons.c.
134 g_return_if_fail (GDK_IS_SCREEN (screen));
void ev_stock_icons_shutdown |
( |
void |
) | |
|