X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=inline;f=shell%2Fev-sidebar-links.h;h=f1a6b870c19a19c3cb22a38dd89efc6a8470f618;hb=a003d7ffe3fd328ae430ae613a8da037f766aabb;hp=59af8bbd5ae2f79985761599a3e15fd53cb73078;hpb=2d5fe16a0b4a8bbb85933e471a62550384446821;p=evince.git diff --git a/shell/ev-sidebar-links.h b/shell/ev-sidebar-links.h index 59af8bbd..f1a6b870 100644 --- a/shell/ev-sidebar-links.h +++ b/shell/ev-sidebar-links.h @@ -26,6 +26,8 @@ #include #include "ev-document.h" +#include "ev-link.h" +#include "ev-utils.h" G_BEGIN_DECLS @@ -35,7 +37,7 @@ typedef struct _EvSidebarLinksPrivate EvSidebarLinksPrivate; #define EV_TYPE_SIDEBAR_LINKS (ev_sidebar_links_get_type()) #define EV_SIDEBAR_LINKS(object) (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_SIDEBAR_LINKS, EvSidebarLinks)) -#define EV_SIDEBAR_LINKS_CLASS(klass) (G_TYPE_CHACK_CLASS_CAST((klass), EV_TYPE_SIDEBAR_LINKS, EvSidebarLinksClass)) +#define EV_SIDEBAR_LINKS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_SIDEBAR_LINKS, EvSidebarLinksClass)) #define EV_IS_SIDEBAR_LINKS(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_SIDEBAR_LINKS)) #define EV_IS_SIDEBAR_LINKS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_SIDEBAR_LINKS)) #define EV_SIDEBAR_LINKS_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_SIDEBAR_LINKS, EvSidebarLinksClass)) @@ -48,13 +50,13 @@ struct _EvSidebarLinks { struct _EvSidebarLinksClass { GtkVBoxClass base_class; + + void (* link_activated) (EvSidebarLinks *sidebar_links, + EvLink *link); }; GType ev_sidebar_links_get_type (void); GtkWidget *ev_sidebar_links_new (void); -void ev_sidebar_links_set_document (EvSidebarLinks *ev_sidebar_links, - EvDocument *document); -void ev_sidebar_links_clear_document (EvSidebarLinks *sidebar_links); G_END_DECLS