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=542607d1cb0f25b899d589e1099bbd6dd681bda8;hpb=4912987303aefef0d02a45726b75e5fdae043982;p=evince.git diff --git a/libview/ev-view-private.h b/libview/ev-view-private.h index 542607d1..4bec7bd2 100644 --- a/libview/ev-view-private.h +++ b/libview/ev-view-private.h @@ -72,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, @@ -178,6 +199,10 @@ struct _EvView { GtkWidget *goto_entry; EvTransitionAnimation *animation; + + /* Annotations */ + GList *window_children; + EvViewWindowChild *window_child_focus; }; struct _EvViewClass {