X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=libview%2Fev-view-private.h;h=4bec7bd2eaf798a3cf4657d7036668bd9bf6183f;hb=03a4afa9aeab342a63530db46888e405ea1c8afc;hp=c89444038f7f977bef73a3e7aae3086591f7998d;hpb=68d0fc3c59185065d9694ba3f8cb2665b984eb9f;p=evince.git diff --git a/libview/ev-view-private.h b/libview/ev-view-private.h index c8944403..4bec7bd2 100644 --- a/libview/ev-view-private.h +++ b/libview/ev-view-private.h @@ -18,6 +18,10 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. */ +#if !defined (EVINCE_COMPILATION) +#error "This is a private header." +#endif + #ifndef __EV_VIEW_PRIVATE_H__ #define __EV_VIEW_PRIVATE_H__ @@ -68,6 +72,27 @@ typedef struct { EvImage *image; } ImageDNDInfo; +/* Annotation popup windows */ +typedef struct { + GtkWidget *window; + guint page; + + /* Current position */ + gint x; + gint y; + + /* EvView root position */ + gint parent_x; + gint parent_y; + + /* Document coords */ + gdouble orig_x; + gdouble orig_y; + + gboolean visible; + gboolean moved; +} EvViewWindowChild; + typedef enum { SCROLL_TO_KEEP_POSITION, SCROLL_TO_PAGE_POSITION, @@ -174,6 +199,10 @@ struct _EvView { GtkWidget *goto_entry; EvTransitionAnimation *animation; + + /* Annotations */ + GList *window_children; + EvViewWindowChild *window_child_focus; }; struct _EvViewClass {