Commit 50ba0e23 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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.
parent 128ccea1
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.
* gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
the popup posted if the button is released over the cellview.
This matches the behaviour of other combo box implementations.
......
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.
* gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
the popup posted if the button is released over the cellview.
This matches the behaviour of other combo box implementations.
......
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.
* gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
the popup posted if the button is released over the cellview.
This matches the behaviour of other combo box implementations.
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment