From: Philip Chimento Date: Sun, 16 Sep 2012 14:03:31 +0000 (+0200) Subject: Give focus to the text buffer after pager click X-Git-Tag: v0.9~5^2 X-Git-Url: https://git.stderr.nl/gitweb?p=projects%2Fchimara%2Fchimara.git;a=commitdiff_plain;h=460e6b27130b8b24ec4bb4e01551d3edfbfe3a2a Give focus to the text buffer after pager click --- diff --git a/libchimara/pager.c b/libchimara/pager.c index 456bcd1..c36edc7 100644 --- a/libchimara/pager.c +++ b/libchimara/pager.c @@ -79,6 +79,8 @@ pager_on_clicked(GtkButton *pager, winid_t win) double upper = gtk_adjustment_get_upper(adj); gtk_adjustment_set_value(adj, upper); check_paging(adj, win); + /* Give the focus back to the text view */ + gtk_widget_grab_focus(win->widget); } /* When the user scrolls up in a textbuffer, start paging. */