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-bookmark-action.c File Reference
#include "config.h"
#include "ev-bookmark-action.h"
+ Include dependency graph for ev-bookmark-action.c:

Go to the source code of this file.

Data Structures

struct  _EvBookmarkAction
 
struct  _EvBookmarkActionClass
 

Enumerations

enum  { PROP_0, PROP_PAGE }
 

Functions

static void ev_bookmark_action_init (EvBookmarkAction *action)
 
static void ev_bookmark_action_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
 
static void ev_bookmark_action_class_init (EvBookmarkActionClass *klass)
 
GtkAction * ev_bookmark_action_new (EvBookmark *bookmark)
 
guint ev_bookmark_action_get_page (EvBookmarkAction *action)
 

Enumeration Type Documentation

anonymous enum
Enumerator
PROP_0 
PROP_PAGE 

Definition at line 25 of file ev-bookmark-action.c.

25  {
26  PROP_0,
27  PROP_PAGE
28 };

Function Documentation

static void ev_bookmark_action_class_init ( EvBookmarkActionClass klass)
static

Definition at line 65 of file ev-bookmark-action.c.

66 {
67  GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
68 
69  gobject_class->set_property = ev_bookmark_action_set_property;
70 
71  g_object_class_install_property (gobject_class,
72  PROP_PAGE,
73  g_param_spec_uint ("page",
74  "Page",
75  "The bookmark page",
76  0, G_MAXUINT, 0,
77  G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE |
78  G_PARAM_STATIC_STRINGS));
79 }
guint ev_bookmark_action_get_page ( EvBookmarkAction action)

Definition at line 101 of file ev-bookmark-action.c.

102 {
103  g_return_val_if_fail (EV_IS_BOOKMARK_ACTION (action), 0);
104 
105  return action->page;
106 }
static void ev_bookmark_action_init ( EvBookmarkAction action)
static

Definition at line 43 of file ev-bookmark-action.c.

44 {
45 }
GtkAction* ev_bookmark_action_new ( EvBookmark bookmark)

Definition at line 82 of file ev-bookmark-action.c.

83 {
84  GtkAction *action;
85  gchar *name;
86 
87  g_return_val_if_fail (bookmark->title != NULL, NULL);
88 
89  name = g_strdup_printf ("EvBookmark%u", bookmark->page);
90  action = GTK_ACTION (g_object_new (EV_TYPE_BOOKMARK_ACTION,
91  "name", name,
92  "label", bookmark->title,
93  "page", bookmark->page,
94  NULL));
95  g_free (name);
96 
97  return action;
98 }
static void ev_bookmark_action_set_property ( GObject *  object,
guint  prop_id,
const GValue *  value,
GParamSpec *  pspec 
)
static

Definition at line 48 of file ev-bookmark-action.c.

52 {
53  EvBookmarkAction *action = EV_BOOKMARK_ACTION (object);
54 
55  switch (prop_id) {
56  case PROP_PAGE:
57  action->page = g_value_get_uint (value);
58  break;
59  default:
60  G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
61  }
62 }

+ Here is the caller graph for this function: