diff options
author | Owen Taylor <owt1@cornell.edu> | 1998-03-26 20:57:29 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-03-26 20:57:29 +0000 |
commit | a74e338517b9b7cab0b422b4a0361cb0ef50593d (patch) | |
tree | 2df15a25c194d797ff32530b4a6f67709432df8b /gtk/gtkentry.c | |
parent | d38e339ebbd65f1667a66992efc39fd7435d6b39 (diff) | |
download | gtk+-a74e338517b9b7cab0b422b4a0361cb0ef50593d.tar.gz |
When gtk_widget_draw() is called on a REDRAW_PENDING widget, draw it and
Thu Mar 26 15:33:50 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkwidget.c: When gtk_widget_draw() is called on a
REDRAW_PENDING widget, draw it and remove it from the
queue instead of doing nothing.
* gtk/Makefile.am gdk/Makefile.am: Switch order of includes
directories, to make doubly sure that wrong glibconfig.h
isn't used. (See also glib/ChangeLog)
* gtk/gtkentry.c (gtk_entry_draw_focus): Don't draw the
cursor unless the entry is editable.
(From: Stefan Jeske <jeske@braunschweig.netsurf.de>)
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r-- | gtk/gtkentry.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index b44bda168a..5175aa5762 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -609,7 +609,8 @@ gtk_entry_draw_focus (GtkWidget *widget) FALSE, 0, 0, width - 1, height - 1); } - gtk_entry_draw_cursor (GTK_ENTRY (widget)); + if (GTK_EDITABLE (widget)->editable) + gtk_entry_draw_cursor (GTK_ENTRY (widget)); } } |