summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-05-17 06:18:14 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-05-17 06:18:14 +0000
commit50ba0e239f35ff16d14a2c048e278039618f759c (patch)
tree0eb37c2a53b536a2f2755be70cc16da4adfc1104 /gtk/gtktextview.c
parent128ccea10b29886a3592543f955f3a09e3fb031d (diff)
downloadgtk+-50ba0e239f35ff16d14a2c048e278039618f759c.tar.gz
Don't blink the cursor if the text view is not editable.
2005-05-17 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextview.c (cursor_blinks): Don't blink the cursor if the text view is not editable.
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r--gtk/gtktextview.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index f4d9140e32..668dd4e12f 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -4444,8 +4444,13 @@ cursor_blinks (GtkTextView *text_view)
if (gtk_debug_flags & GTK_DEBUG_UPDATES)
return FALSE;
- g_object_get (settings, "gtk-cursor-blink", &blink, NULL);
- return blink;
+ if (text_view->editable)
+ {
+ g_object_get (settings, "gtk-cursor-blink", &blink, NULL);
+ return blink;
+ }
+ else
+ return FALSE;
}
static gint