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.
This commit is contained in:
Matthias Clasen 2005-05-17 06:18:14 +00:00 committed by Matthias Clasen
parent 128ccea10b
commit 50ba0e239f
4 changed files with 16 additions and 2 deletions

View File

@ -1,5 +1,8 @@
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.

View File

@ -1,5 +1,8 @@
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.

View File

@ -1,5 +1,8 @@
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.

View File

@ -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