aboutsummaryrefslogtreecommitdiff
path: root/src/presentation.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-10-13 19:18:59 +0200
committerThomas White <taw@physics.org>2011-10-13 19:18:59 +0200
commitdc84a627fae1330267316f8bfa619203a124d06c (patch)
treee90bde3563475cf935bdb8cf8c997906268d7eb3 /src/presentation.h
parent4da0c6ebc1db54c1c52cbdda98098b7d3efb1de7 (diff)
Unify "rubber band box" and "import DnD" pathways
Diffstat (limited to 'src/presentation.h')
-rw-r--r--src/presentation.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/presentation.h b/src/presentation.h
index 95bfcda..a6acca6 100644
--- a/src/presentation.h
+++ b/src/presentation.h
@@ -50,6 +50,7 @@ enum drag_reason
{
DRAG_REASON_NONE,
DRAG_REASON_CREATE,
+ DRAG_REASON_IMPORT,
DRAG_REASON_TOOL,
};
@@ -103,14 +104,6 @@ struct presentation
GtkActionGroup *action_group;
GtkIMContext *im_context;
GtkWidget *tbox;
- int drag_preview_pending;
- int have_drag_data;
- int drag_highlight;
- int drag_width;
- int drag_height;
- int draw_drag_box;
- int drag_x;
- int drag_y;
/* Stylesheet */
StyleSheet *ss;
@@ -147,6 +140,14 @@ struct presentation
enum drag_reason drag_reason;
enum drag_status drag_status;
+ /* Stuff to do with drag and drop import of "content" */
+ int drag_preview_pending;
+ int have_drag_data;
+ int drag_highlight;
+ double import_width;
+ double import_height;
+ int import_acceptable;
+
unsigned int num_slides;
struct slide **slides;
};