forked from AuroraMiddleware/gtk
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:
parent
128ccea10b
commit
50ba0e239f
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user