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-sidebar-page.c File Reference
#include <gtk/gtk.h>
#include "ev-sidebar-page.h"
+ Include dependency graph for ev-sidebar-page.c:

Go to the source code of this file.

Functions

gboolean ev_sidebar_page_support_document (EvSidebarPage *sidebar_page, EvDocument *document)
 
void ev_sidebar_page_set_model (EvSidebarPage *sidebar_page, EvDocumentModel *model)
 
const gchar * ev_sidebar_page_get_label (EvSidebarPage *sidebar_page)
 
static void ev_sidebar_page_default_init (EvSidebarPageInterface *iface)
 

Function Documentation

static void ev_sidebar_page_default_init ( EvSidebarPageInterface iface)
static

Definition at line 79 of file ev-sidebar-page.c.

80 {
81  static gboolean initialized = FALSE;
82 
83  if (!initialized) {
84  g_object_interface_install_property (iface,
85  g_param_spec_object ("main-widget",
86  "Main Widget",
87  "Main page widget, used to handle focus",
88  GTK_TYPE_WIDGET,
89  G_PARAM_READABLE |
90  G_PARAM_STATIC_STRINGS));
91  initialized = TRUE;
92  }
93 }
const gchar* ev_sidebar_page_get_label ( EvSidebarPage sidebar_page)

Definition at line 64 of file ev-sidebar-page.c.

65 {
67 
68  g_return_val_if_fail (EV_IS_SIDEBAR_PAGE (sidebar_page), NULL);
69 
70  iface = EV_SIDEBAR_PAGE_GET_IFACE (sidebar_page);
71 
72  g_assert (iface->get_label);
73 
74  return iface->get_label (sidebar_page);
75 }

+ Here is the caller graph for this function:

void ev_sidebar_page_set_model ( EvSidebarPage sidebar_page,
EvDocumentModel model 
)

Definition at line 48 of file ev-sidebar-page.c.

50 {
52 
53  g_return_if_fail (EV_IS_SIDEBAR_PAGE (sidebar_page));
54  g_return_if_fail (EV_IS_DOCUMENT_MODEL (model));
55 
56  iface = EV_SIDEBAR_PAGE_GET_IFACE (sidebar_page);
57 
58  g_assert (iface->set_model);
59 
60  iface->set_model (sidebar_page, model);
61 }

+ Here is the caller graph for this function:

gboolean ev_sidebar_page_support_document ( EvSidebarPage sidebar_page,
EvDocument document 
)

Definition at line 32 of file ev-sidebar-page.c.

34 {
36 
37  g_return_val_if_fail (EV_IS_SIDEBAR_PAGE (sidebar_page), FALSE);
38  g_return_val_if_fail (EV_IS_DOCUMENT (document), FALSE);
39 
40  iface = EV_SIDEBAR_PAGE_GET_IFACE (sidebar_page);
41 
42  g_return_val_if_fail (iface->support_document, FALSE);
43 
44  return iface->support_document (sidebar_page, document);
45 }

+ Here is the caller graph for this function: