forked from AuroraMiddleware/gtk
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:
parent
3f4cc9b6c8
commit
de0fdacec6
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user