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

Go to the source code of this file.

Macros

#define EV_TYPE_BOOKMARK_ACTION   (ev_bookmark_action_get_type())
 
#define EV_BOOKMARK_ACTION(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_BOOKMARK_ACTION, EvBookmarkAction))
 
#define EV_BOOKMARK_ACTION_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_BOOKMARK_ACTION, EvBookmarkActionClass))
 
#define EV_IS_BOOKMARK_ACTION(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_BOOKMARK_ACTION))
 

Typedefs

typedef struct _EvBookmarkAction EvBookmarkAction
 
typedef struct
_EvBookmarkActionClass 
EvBookmarkActionClass
 

Functions

GType ev_bookmark_action_get_type (void) G_GNUC_CONST
 
GtkAction * ev_bookmark_action_new (EvBookmark *bookmark)
 
guint ev_bookmark_action_get_page (EvBookmarkAction *action)
 

Macro Definition Documentation

#define EV_BOOKMARK_ACTION (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_BOOKMARK_ACTION, EvBookmarkAction))

Definition at line 32 of file ev-bookmark-action.h.

#define EV_BOOKMARK_ACTION_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_BOOKMARK_ACTION, EvBookmarkActionClass))

Definition at line 33 of file ev-bookmark-action.h.

#define EV_IS_BOOKMARK_ACTION (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_BOOKMARK_ACTION))

Definition at line 34 of file ev-bookmark-action.h.

#define EV_TYPE_BOOKMARK_ACTION   (ev_bookmark_action_get_type())

Definition at line 31 of file ev-bookmark-action.h.

Typedef Documentation

Definition at line 36 of file ev-bookmark-action.h.

Definition at line 37 of file ev-bookmark-action.h.

Function Documentation

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 }
GType ev_bookmark_action_get_type ( void  )
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 }