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

Go to the source code of this file.

Data Structures

struct  _EvSidebarBookmarks
 
struct  _EvSidebarBookmarksClass
 

Macros

#define EV_TYPE_SIDEBAR_BOOKMARKS   (ev_sidebar_bookmarks_get_type())
 
#define EV_SIDEBAR_BOOKMARKS(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_SIDEBAR_BOOKMARKS, EvSidebarBookmarks))
 
#define EV_SIDEBAR_BOOKMARKS_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_SIDEBAR_BOOKMARKS, EvSidebarBookmarksClass))
 
#define EV_IS_SIDEBAR_BOOKMARKS(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_SIDEBAR_BOOKMARKS))
 
#define EV_IS_SIDEBAR_BOOKMARKS_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_SIDEBAR_BOOKMARKS))
 
#define EV_SIDEBAR_BOOKMARKS_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_SIDEBAR_BOOKMARKS, EvSidebarBookmarksClass))
 

Typedefs

typedef typedefG_BEGIN_DECLS
struct _EvSidebarBookmarks 
EvSidebarBookmarks
 
typedef struct
_EvSidebarBookmarksClass 
EvSidebarBookmarksClass
 
typedef struct
_EvSidebarBookmarksPrivate 
EvSidebarBookmarksPrivate
 

Functions

GType ev_sidebar_bookmarks_get_type (void) G_GNUC_CONST
 
GtkWidget * ev_sidebar_bookmarks_new (void)
 
void ev_sidebar_bookmarks_set_bookmarks (EvSidebarBookmarks *sidebar_bookmarks, EvBookmarks *bookmarks)
 

Macro Definition Documentation

#define EV_IS_SIDEBAR_BOOKMARKS (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_SIDEBAR_BOOKMARKS))

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

#define EV_IS_SIDEBAR_BOOKMARKS_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_SIDEBAR_BOOKMARKS))

Definition at line 39 of file ev-sidebar-bookmarks.h.

#define EV_SIDEBAR_BOOKMARKS (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_SIDEBAR_BOOKMARKS, EvSidebarBookmarks))

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

#define EV_SIDEBAR_BOOKMARKS_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_SIDEBAR_BOOKMARKS, EvSidebarBookmarksClass))

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

#define EV_SIDEBAR_BOOKMARKS_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_SIDEBAR_BOOKMARKS, EvSidebarBookmarksClass))

Definition at line 40 of file ev-sidebar-bookmarks.h.

#define EV_TYPE_SIDEBAR_BOOKMARKS   (ev_sidebar_bookmarks_get_type())

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

Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _EvSidebarBookmarks EvSidebarBookmarks

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

Definition at line 32 of file ev-sidebar-bookmarks.h.

Function Documentation

GType ev_sidebar_bookmarks_get_type ( void  )
GtkWidget* ev_sidebar_bookmarks_new ( void  )

Definition at line 524 of file ev-sidebar-bookmarks.c.

525 {
526  return GTK_WIDGET (g_object_new (EV_TYPE_SIDEBAR_BOOKMARKS,
527  "orientation", GTK_ORIENTATION_VERTICAL,
528  NULL));
529 }

+ Here is the caller graph for this function:

void ev_sidebar_bookmarks_set_bookmarks ( EvSidebarBookmarks sidebar_bookmarks,
EvBookmarks bookmarks 
)

Definition at line 532 of file ev-sidebar-bookmarks.c.

534 {
535  EvSidebarBookmarksPrivate *priv = sidebar_bookmarks->priv;
536 
537  g_return_if_fail (EV_IS_BOOKMARKS (bookmarks));
538 
539  if (priv->bookmarks == bookmarks)
540  return;
541 
542  if (priv->bookmarks)
543  g_object_unref (priv->bookmarks);
544  priv->bookmarks = g_object_ref (bookmarks);
545  g_signal_connect (priv->bookmarks, "changed",
546  G_CALLBACK (ev_sidebar_bookmarks_changed),
547  sidebar_bookmarks);
548 
549  gtk_widget_set_sensitive (priv->add_button, TRUE);
550  ev_sidebar_bookmarks_update (sidebar_bookmarks);
551 }

+ Here is the caller graph for this function: