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

Go to the source code of this file.

Data Structures

struct  _EvPageAction
 
struct  _EvPageActionClass
 

Macros

#define EV_TYPE_PAGE_ACTION   (ev_page_action_get_type ())
 
#define EV_PAGE_ACTION(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PAGE_ACTION, EvPageAction))
 
#define EV_PAGE_ACTION_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_PAGE_ACTION, EvPageActionClass))
 
#define EV_IS_PAGE_ACTION(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_PAGE_ACTION))
 
#define EV_IS_PAGE_ACTION_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((obj), EV_TYPE_PAGE_ACTION))
 
#define EV_PAGE_ACTION_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj), EV_TYPE_PAGE_ACTION, EvPageActionClass))
 

Typedefs

typedef struct _EvPageAction EvPageAction
 
typedef struct _EvPageActionPrivate EvPageActionPrivate
 
typedef struct _EvPageActionClass EvPageActionClass
 

Functions

GType ev_page_action_get_type (void) G_GNUC_CONST
 
void ev_page_action_set_model (EvPageAction *page_action, EvDocumentModel *model)
 
void ev_page_action_set_links_model (EvPageAction *page_action, GtkTreeModel *links_model)
 
void ev_page_action_grab_focus (EvPageAction *page_action)
 

Macro Definition Documentation

#define EV_IS_PAGE_ACTION (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_PAGE_ACTION))

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

#define EV_IS_PAGE_ACTION_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((obj), EV_TYPE_PAGE_ACTION))

Definition at line 35 of file ev-page-action.h.

#define EV_PAGE_ACTION (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PAGE_ACTION, EvPageAction))

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

#define EV_PAGE_ACTION_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_PAGE_ACTION, EvPageActionClass))

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

#define EV_PAGE_ACTION_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), EV_TYPE_PAGE_ACTION, EvPageActionClass))

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

#define EV_TYPE_PAGE_ACTION   (ev_page_action_get_type ())

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

Typedef Documentation

typedef struct _EvPageAction EvPageAction

Definition at line 38 of file ev-page-action.h.

Definition at line 40 of file ev-page-action.h.

Definition at line 39 of file ev-page-action.h.

Function Documentation

GType ev_page_action_get_type ( void  )
void ev_page_action_grab_focus ( EvPageAction page_action)

Definition at line 186 of file ev-page-action.c.

187 {
188  GSList *proxies;
189 
190  proxies = gtk_action_get_proxies (GTK_ACTION (page_action));
191  for (; proxies != NULL; proxies = proxies->next) {
192  EvPageActionWidget *proxy;
193 
194  proxy = EV_PAGE_ACTION_WIDGET (proxies->data);
195 
196  if (gtk_widget_get_mapped (GTK_WIDGET (proxy)))
198  }
199 }

+ Here is the caller graph for this function:

void ev_page_action_set_links_model ( EvPageAction page_action,
GtkTreeModel *  links_model 
)

Definition at line 169 of file ev-page-action.c.

171 {
172  g_return_if_fail (EV_IS_PAGE_ACTION (page));
173  g_return_if_fail (GTK_IS_TREE_MODEL (links_model));
174 
175  if (page->priv->model == links_model)
176  return;
177 
178  if (page->priv->model)
179  g_object_unref (page->priv->model);
180  page->priv->model = g_object_ref (links_model);
181 
182  g_object_notify (G_OBJECT (page), "model");
183 }

+ Here is the caller graph for this function:

void ev_page_action_set_model ( EvPageAction page_action,
EvDocumentModel model 
)

Definition at line 156 of file ev-page-action.c.

158 {
159  g_return_if_fail (EV_IS_PAGE_ACTION (page));
160  g_return_if_fail (EV_IS_DOCUMENT_MODEL (model));
161 
162  if (page->priv->doc_model == model)
163  return;
164 
165  page->priv->doc_model = model;
166 }

+ Here is the caller graph for this function: