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

Go to the source code of this file.

Data Structures

struct  _EvSidebarLayers
 
struct  _EvSidebarLayersClass
 

Macros

#define EV_TYPE_SIDEBAR_LAYERS   (ev_sidebar_layers_get_type())
 
#define EV_SIDEBAR_LAYERS(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_SIDEBAR_LAYERS, EvSidebarLayers))
 
#define EV_SIDEBAR_LAYERS_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_SIDEBAR_LAYERS, EvSidebarLayersClass))
 
#define EV_IS_SIDEBAR_LAYERS(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_SIDEBAR_LAYERS))
 
#define EV_IS_SIDEBAR_LAYERS_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_SIDEBAR_LAYERS))
 
#define EV_SIDEBAR_LAYERS_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_SIDEBAR_LAYERS, EvSidebarLayersClass))
 

Typedefs

typedef typedefG_BEGIN_DECLS
struct _EvSidebarLayers 
EvSidebarLayers
 
typedef struct
_EvSidebarLayersClass 
EvSidebarLayersClass
 
typedef struct
_EvSidebarLayersPrivate 
EvSidebarLayersPrivate
 

Functions

GType ev_sidebar_layers_get_type (void) G_GNUC_CONST
 
GtkWidget * ev_sidebar_layers_new (void)
 
void ev_sidebar_layers_update_layers_state (EvSidebarLayers *sidebar_layers)
 

Macro Definition Documentation

#define EV_IS_SIDEBAR_LAYERS (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_SIDEBAR_LAYERS))

Definition at line 36 of file ev-sidebar-layers.h.

#define EV_IS_SIDEBAR_LAYERS_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_SIDEBAR_LAYERS))

Definition at line 37 of file ev-sidebar-layers.h.

#define EV_SIDEBAR_LAYERS (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_SIDEBAR_LAYERS, EvSidebarLayers))

Definition at line 34 of file ev-sidebar-layers.h.

#define EV_SIDEBAR_LAYERS_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_SIDEBAR_LAYERS, EvSidebarLayersClass))

Definition at line 35 of file ev-sidebar-layers.h.

#define EV_SIDEBAR_LAYERS_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_SIDEBAR_LAYERS, EvSidebarLayersClass))

Definition at line 38 of file ev-sidebar-layers.h.

#define EV_TYPE_SIDEBAR_LAYERS   (ev_sidebar_layers_get_type())

Definition at line 33 of file ev-sidebar-layers.h.

Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _EvSidebarLayers EvSidebarLayers

Definition at line 29 of file ev-sidebar-layers.h.

Definition at line 30 of file ev-sidebar-layers.h.

Definition at line 31 of file ev-sidebar-layers.h.

Function Documentation

GType ev_sidebar_layers_get_type ( void  )
GtkWidget* ev_sidebar_layers_new ( void  )

Definition at line 327 of file ev-sidebar-layers.c.

328 {
329  return GTK_WIDGET (g_object_new (EV_TYPE_SIDEBAR_LAYERS,
330  "orientation", GTK_ORIENTATION_VERTICAL,
331  NULL));
332 }

+ Here is the caller graph for this function:

void ev_sidebar_layers_update_layers_state ( EvSidebarLayers sidebar_layers)

Definition at line 365 of file ev-sidebar-layers.c.

366 {
367  GtkTreeModel *model;
368  GtkTreeIter iter;
369  EvDocumentLayers *document_layers;
370 
371  document_layers = EV_DOCUMENT_LAYERS (sidebar_layers->priv->document);
372  model = gtk_tree_view_get_model (GTK_TREE_VIEW (sidebar_layers->priv->tree_view));
373  if (gtk_tree_model_get_iter_first (model, &iter))
374  update_layers_state (model, &iter, document_layers);
375 }

+ Here is the caller graph for this function: