diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-03-05 21:37:04 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-03-05 21:37:04 +0100 |
commit | c0d175a8e1eadbbc32c66dd36915dfe8ba43f23d (patch) | |
tree | cb8c914b5b3207262c519e9aa4c24ee44d5c1f24 /libstorycode/gtk/gtknarrativeview.h | |
parent | 54fbb74ac2c45b5daeee1e2173c7a2767a13c758 (diff) |
Cursor positioning
Diffstat (limited to 'libstorycode/gtk/gtknarrativeview.h')
-rw-r--r-- | libstorycode/gtk/gtknarrativeview.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/libstorycode/gtk/gtknarrativeview.h b/libstorycode/gtk/gtknarrativeview.h index 7fa4d38..0a09175 100644 --- a/libstorycode/gtk/gtknarrativeview.h +++ b/libstorycode/gtk/gtknarrativeview.h @@ -52,14 +52,6 @@ #define GTK_NARRATIVE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GTK_TYPE_NARRATIVE_VIEW, GtkNarrativeViewClass)) -enum drag_reason -{ - DRAG_REASON_NONE, - DRAG_REASON_IMPORT, - DRAG_REASON_TEXTSEL -}; - - enum corner { CORNER_NONE, @@ -80,8 +72,8 @@ enum drag_status struct edit_pos { - int para; /* Paragraph number */ - size_t pos; /* Byte position within paragraph + int para; /* Paragraph number (corresponding to narrative items) */ + int pos; /* Byte position within paragraph * Yes, really. See pango_layout_xy_to_index */ int trail; }; @@ -113,7 +105,6 @@ struct _gtknarrativeview struct edit_pos cpos; /* Rubber band boxes and related stuff */ - enum drag_reason drag_reason; enum drag_status drag_status; int sel_active; struct edit_pos sel_start; /* Where the user dragged from */ |