Give focus to the text buffer after pager click
authorPhilip Chimento <philip.chimento@gmail.com>
Sun, 16 Sep 2012 14:03:31 +0000 (16:03 +0200)
committerPhilip Chimento <philip.chimento@gmail.com>
Sun, 16 Sep 2012 14:03:31 +0000 (16:03 +0200)
libchimara/pager.c

index 456bcd1477908133da7fd7769302500d5b83d85e..c36edc79cdde8a9ad02501a1c029dc036fd06783 100644 (file)
@@ -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. */