diff options
author | Anders Carlsson <andersca@gnu.org> | 2002-01-27 18:39:22 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@src.gnome.org> | 2002-01-27 18:39:22 +0000 |
commit | 8290dc99dcccd0966e2f66cfa94129e0a8d7db76 (patch) | |
tree | 19f73e82ffd36404b2b22ec72e8b62292d28a692 /gtk/gtkentry.h | |
parent | f03d717b59d2a5f12a935da9db83e4a476f02a8f (diff) | |
download | gtk+-8290dc99dcccd0966e2f66cfa94129e0a8d7db76.tar.gz |
add mouse_cursor_obscured.
2002-01-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtktextview.h (struct _GtkTextView): add mouse_cursor_obscured.
* gtk/gtkentry.h (struct _GtkEntry): Add mouse_cursor_obscured.
* gtk/gtktextview.c (set_invisible_cursor): New function.
(gtk_text_view_obscure_mouse_cursor): Likewise.
(gtk_text_view_key_press_event): Call obscure_cursor if text
has been inserted.
(gtk_text_view_motion_event): Restore the mouse cursor.
* gtk/gtkentry.c (gtk_entry_realize): Add GDK_POINTER_MOTION_MASK.
(set_invisible_cursor): New function.
(gtk_entry_obscure_mouse_cursor): Likewise.
(gtk_entry_key_press): call obscure_cursor if text has been inserted.
(gtk_entry_motion_notify): Restore the mouse cursor.
Diffstat (limited to 'gtk/gtkentry.h')
-rw-r--r-- | gtk/gtkentry.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkentry.h b/gtk/gtkentry.h index 027e838db4..2889d41846 100644 --- a/gtk/gtkentry.h +++ b/gtk/gtkentry.h @@ -88,6 +88,8 @@ struct _GtkEntry guint is_cell_renderer : 1; guint editing_canceled : 1; /* Only used by GtkCellRendererText */ + guint mouse_cursor_obscured : 1; + guint button; guint blink_timeout; guint recompute_idle; |