summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-01-17 20:05:08 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-01-17 20:05:08 +0000
commit2a1e8b06b48864348d8539cb6bc9e20867a437fa (patch)
treeddce28b5e29b5597920696b32760fcb4da17aecf /gtk/gtkentry.h
parent2c41cf90587bb624a58e0ba523adfb6a17f3acec (diff)
downloadgtk+-2a1e8b06b48864348d8539cb6bc9e20867a437fa.tar.gz
Remove unused variable.
Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkdnd-x11.c: Remove unused variable. * gtk/gtkdnd.c: Encapsulate storing and retrieving info structures in functions. Fixes bug where gtk_dataset_* was accidentally still being used in one place, causing every dest side event to be treated independently. * gtk/gtkdnd.c: Remove last vestages of handling ::draw (fixes warning) * gtk/gtkentry.[ch]: Add drag and drop support. * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add new function gtk_check_drag_threshhold() for checking to check if (dx,dy) has exceeded the threshhold for starting a drag and use it everywhere.
Diffstat (limited to 'gtk/gtkentry.h')
-rw-r--r--gtk/gtkentry.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkentry.h b/gtk/gtkentry.h
index 6099ac13bc..553837603d 100644
--- a/gtk/gtkentry.h
+++ b/gtk/gtkentry.h
@@ -58,6 +58,7 @@ struct _GtkEntry
guint editable : 1;
guint visible : 1;
guint overwrite_mode : 1;
+ guint in_drag : 1; /* Dragging within the selection */
guint16 text_length; /* length in use, in chars */
guint16 text_max_length;
@@ -87,6 +88,11 @@ struct _GtkEntry
guint16 preedit_length; /* length of preedit string, in bytes */
guint16 preedit_cursor; /* offset of cursor within preedit string, in chars */
+
+ gint dnd_position; /* In chars, -1 == no DND cursor */
+
+ gint drag_start_x;
+ gint drag_start_y;
gunichar invisible_char;
};