Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ev-stock-icons.h File Reference
#include <gdk/gdk.h>
+ Include dependency graph for ev-stock-icons.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EV_STOCK_ZOOM   "zoom"
 
#define EV_STOCK_ZOOM_PAGE   "zoom-fit-height"
 
#define EV_STOCK_ZOOM_WIDTH   "zoom-fit-width"
 
#define EV_STOCK_VIEW_DUAL   "view-page-facing"
 
#define EV_STOCK_VIEW_CONTINUOUS   "view-page-continuous"
 
#define EV_STOCK_ROTATE_LEFT   "object-rotate-left"
 
#define EV_STOCK_ROTATE_RIGHT   "object-rotate-right"
 
#define EV_STOCK_RUN_PRESENTATION   "x-office-presentation"
 
#define EV_STOCK_VISIBLE   "eye"
 
#define EV_STOCK_RESIZE_SE   "resize-se"
 
#define EV_STOCK_RESIZE_SW   "resize-sw"
 
#define EV_STOCK_CLOSE   "close"
 
#define EV_STOCK_INVERTED_COLORS   "inverted"
 
#define EV_STOCK_ATTACHMENT   "mail-attachment"
 
#define EV_STOCK_SEND_TO   "document-send"
 

Functions

void ev_stock_icons_init (void)
 
void ev_stock_icons_shutdown (void)
 
void ev_stock_icons_set_screen (GdkScreen *screen)
 

Macro Definition Documentation

#define EV_STOCK_ATTACHMENT   "mail-attachment"

Definition at line 49 of file ev-stock-icons.h.

#define EV_STOCK_CLOSE   "close"

Definition at line 47 of file ev-stock-icons.h.

#define EV_STOCK_INVERTED_COLORS   "inverted"

Definition at line 48 of file ev-stock-icons.h.

#define EV_STOCK_RESIZE_SE   "resize-se"

Definition at line 45 of file ev-stock-icons.h.

#define EV_STOCK_RESIZE_SW   "resize-sw"

Definition at line 46 of file ev-stock-icons.h.

#define EV_STOCK_ROTATE_LEFT   "object-rotate-left"

Definition at line 41 of file ev-stock-icons.h.

#define EV_STOCK_ROTATE_RIGHT   "object-rotate-right"

Definition at line 42 of file ev-stock-icons.h.

#define EV_STOCK_RUN_PRESENTATION   "x-office-presentation"

Definition at line 43 of file ev-stock-icons.h.

#define EV_STOCK_SEND_TO   "document-send"

Definition at line 50 of file ev-stock-icons.h.

#define EV_STOCK_VIEW_CONTINUOUS   "view-page-continuous"

Definition at line 40 of file ev-stock-icons.h.

#define EV_STOCK_VIEW_DUAL   "view-page-facing"

Definition at line 39 of file ev-stock-icons.h.

#define EV_STOCK_VISIBLE   "eye"

Definition at line 44 of file ev-stock-icons.h.

#define EV_STOCK_ZOOM   "zoom"

Definition at line 36 of file ev-stock-icons.h.

#define EV_STOCK_ZOOM_PAGE   "zoom-fit-height"

Definition at line 37 of file ev-stock-icons.h.

#define EV_STOCK_ZOOM_WIDTH   "zoom-fit-width"

Definition at line 38 of file ev-stock-icons.h.

Function Documentation

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.

93 {
94  GtkIconFactory *factory;
95  GtkIconSource *source;
96  gint i;
97 #ifdef G_OS_WIN32
98  gchar *dir;
99 
100  dir = g_win32_get_package_installation_directory_of_module (NULL);
101  ev_icons_path = g_build_filename (dir, "share", "evince", "icons", NULL);
102  g_free (dir);
103 #else
104  ev_icons_path = g_build_filename (EVINCEDATADIR, "icons", NULL);
105 #endif
106 
107  factory = gtk_icon_factory_new ();
108  gtk_icon_factory_add_default (factory);
109 
110  source = gtk_icon_source_new ();
111 
112  for (i = 0; i < G_N_ELEMENTS (stock_icons); i++) {
113  GtkIconSet *set;
114 
115  gtk_icon_source_set_icon_name (source, stock_icons [i].icon);
116 
117  set = gtk_icon_set_new ();
118  gtk_icon_set_add_source (set, source);
119 
120  gtk_icon_factory_add (factory, stock_icons [i].stock_id, set);
121  gtk_icon_set_unref (set);
122  }
123 
124  gtk_icon_source_free (source);
125 
126  g_object_unref (G_OBJECT (factory));
127 
128  ev_stock_icons_add_icons_path_for_screen (gdk_screen_get_default ());
129 }

+ Here is the caller graph for this function:

void ev_stock_icons_set_screen ( GdkScreen *  screen)

Definition at line 132 of file ev-stock-icons.c.

133 {
134  g_return_if_fail (GDK_IS_SCREEN (screen));
135 
137 }

+ Here is the caller graph for this function:

void ev_stock_icons_shutdown ( void  )

Definition at line 140 of file ev-stock-icons.c.

141 {
142  g_free (ev_icons_path);
143 }

+ Here is the caller graph for this function: