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-properties-fonts.h File Reference
#include "ev-document.h"
#include <gtk/gtk.h>
+ Include dependency graph for ev-properties-fonts.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EV_TYPE_PROPERTIES_FONTS   (ev_properties_fonts_get_type())
 
#define EV_PROPERTIES_FONTS(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_PROPERTIES_FONTS, EvPropertiesFonts))
 
#define EV_PROPERTIES_FONTS_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_PROPERTIES_FONTS, EvPropertiesFontsClass))
 
#define EV_IS_PROPERTIES(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_PROPERTIES_FONTS))
 
#define EV_IS_PROPERTIES_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_PROPERTIES_FONTS))
 
#define EV_PROPERTIES_FONTS_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_PROPERTIES_FONTS, EvPropertiesFontsClass))
 

Typedefs

typedef typedefG_BEGIN_DECLS
struct _EvPropertiesFonts 
EvPropertiesFonts
 
typedef struct
_EvPropertiesFontsClass 
EvPropertiesFontsClass
 
typedef struct
_EvPropertiesFontsPrivate 
EvPropertiesFontsPrivate
 

Functions

GType ev_properties_fonts_get_type (void)
 
GtkWidget * ev_properties_fonts_new (void)
 
void ev_properties_fonts_set_document (EvPropertiesFonts *properties, EvDocument *document)
 

Macro Definition Documentation

#define EV_IS_PROPERTIES (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_PROPERTIES_FONTS))

Definition at line 37 of file ev-properties-fonts.h.

#define EV_IS_PROPERTIES_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_PROPERTIES_FONTS))

Definition at line 38 of file ev-properties-fonts.h.

#define EV_PROPERTIES_FONTS (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_PROPERTIES_FONTS, EvPropertiesFonts))

Definition at line 35 of file ev-properties-fonts.h.

#define EV_PROPERTIES_FONTS_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_PROPERTIES_FONTS, EvPropertiesFontsClass))

Definition at line 36 of file ev-properties-fonts.h.

#define EV_PROPERTIES_FONTS_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_PROPERTIES_FONTS, EvPropertiesFontsClass))

Definition at line 39 of file ev-properties-fonts.h.

#define EV_TYPE_PROPERTIES_FONTS   (ev_properties_fonts_get_type())

Definition at line 34 of file ev-properties-fonts.h.

Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _EvPropertiesFonts EvPropertiesFonts

Definition at line 30 of file ev-properties-fonts.h.

Definition at line 31 of file ev-properties-fonts.h.

typedef struct _EvPropertiesFontsPrivate EvPropertiesFontsPrivate

Definition at line 32 of file ev-properties-fonts.h.

Function Documentation

GType ev_properties_fonts_get_type ( void  )
GtkWidget* ev_properties_fonts_new ( void  )

Definition at line 236 of file ev-properties-fonts.c.

237 {
239 
240  properties = g_object_new (EV_TYPE_PROPERTIES_FONTS,
241  "orientation", GTK_ORIENTATION_VERTICAL,
242  NULL);
243 
244  return GTK_WIDGET (properties);
245 }

+ Here is the caller graph for this function:

void ev_properties_fonts_set_document ( EvPropertiesFonts properties,
EvDocument document 
)

Definition at line 213 of file ev-properties-fonts.c.

215 {
216  GtkTreeView *tree_view = GTK_TREE_VIEW (properties->fonts_treeview);
217  GtkListStore *list_store;
218 
219  properties->document = document;
220 
221  list_store = gtk_list_store_new (EV_DOCUMENT_FONTS_COLUMN_NUM_COLUMNS,
222  G_TYPE_STRING, G_TYPE_STRING);
223  gtk_tree_view_set_model (tree_view, GTK_TREE_MODEL (list_store));
224 
225  properties->fonts_job = ev_job_fonts_new (properties->document);
226  g_signal_connect (properties->fonts_job, "updated",
227  G_CALLBACK (job_fonts_updated_cb),
228  properties);
229  g_signal_connect (properties->fonts_job, "finished",
230  G_CALLBACK (job_fonts_finished_cb),
231  properties);
233 }

+ Here is the caller graph for this function: