Only scroll if we have focus. (#316310, Paolo Borelli)

2005-12-07  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
	Only scroll if we have focus.  (#316310, Paolo Borelli)
This commit is contained in:
Matthias Clasen 2005-12-07 15:26:53 +00:00 committed by Matthias Clasen
parent 3f4cc9b6c8
commit de0fdacec6
3 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2005-12-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
Only scroll if we have focus. (#316310, Paolo Borelli)
* gtk/gtkfilesystemunix.c (cb_fill_in_mime_type): Fix a C99ism,
spotted by Crispin Flowerday.

View File

@ -1,5 +1,8 @@
2005-12-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
Only scroll if we have focus. (#316310, Paolo Borelli)
* gtk/gtkfilesystemunix.c (cb_fill_in_mime_type): Fix a C99ism,
spotted by Crispin Flowerday.

View File

@ -6745,9 +6745,10 @@ gtk_text_view_preedit_changed_handler (GtkIMContext *context,
pango_attr_list_unref (attrs);
g_free (str);
gtk_text_view_scroll_mark_onscreen (text_view,
gtk_text_buffer_get_mark (get_buffer (text_view),
"insert"));
if (GTK_WIDGET_HAS_FOCUS (text_view))
gtk_text_view_scroll_mark_onscreen (text_view,
gtk_text_buffer_get_mark (get_buffer (text_view),
"insert"));
}
static gboolean