]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-view-private.h
Add image handling support. Fixes bugs #310008 and #325047. Images
[evince.git] / shell / ev-view-private.h
index f1f5ad57300e4eb0ec02eadff25f9608d2e1b03f..ec1fa020f16bc8a3ea384011ae0a5ecebc4a14ae 100644 (file)
@@ -24,6 +24,7 @@
 #include "ev-view.h"
 #include "ev-pixbuf-cache.h"
 #include "ev-page-cache.h"
+#include "ev-image.h"
 
 /* Information for middle clicking and moving around the doc */
 typedef struct {
@@ -41,6 +42,13 @@ typedef struct {
        GList *selections;
 } SelectionInfo;
 
+/* Information for handling images DND */
+typedef struct {
+       gboolean in_drag;
+       GdkPoint start;
+       EvImage *image;
+} ImageDNDInfo;
+
 typedef enum {
        SCROLL_TO_KEEP_POSITION,
        SCROLL_TO_PAGE_POSITION,
@@ -127,6 +135,9 @@ struct _EvView {
        EvViewSelectionMode selection_mode;
        SelectionInfo selection_info;
 
+       /* Image DND */
+       ImageDNDInfo image_dnd_info;
+
        /* Links */
        GtkWidget *link_tooltip;
        EvLink *hovered_link;