diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2010-11-20 18:50:45 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2010-11-20 18:50:45 +0000 |
commit | 71ea71540ab637dbec6d715ed9a157542a9ff03f (patch) | |
tree | dd512a982be158e955357bb1f711bf6aef6a16f4 /framebuffer/fbtk/fbtk.c | |
parent | 908da609e7ece5734ead083cc23cd84a8bd8d3e6 (diff) | |
download | netsurf-71ea71540ab637dbec6d715ed9a157542a9ff03f.tar.gz netsurf-71ea71540ab637dbec6d715ed9a157542a9ff03f.tar.bz2 |
Give the browser window widget input focus by defualt on startup.
svn path=/trunk/netsurf/; revision=10948
Diffstat (limited to 'framebuffer/fbtk/fbtk.c')
-rw-r--r-- | framebuffer/fbtk/fbtk.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/framebuffer/fbtk/fbtk.c b/framebuffer/fbtk/fbtk.c index 92586ebce..5aef6bd45 100644 --- a/framebuffer/fbtk/fbtk.c +++ b/framebuffer/fbtk/fbtk.c @@ -685,6 +685,18 @@ fbtk_post_callback(fbtk_widget_t *widget, fbtk_callback_type cbt, ...) return ret; } +/* exported function docuemnted in fbtk.h */ +void +fbtk_set_focus(fbtk_widget_t *widget) +{ + fbtk_widget_t *root; + + /* ensure we have the root widget */ + root = fbtk_get_root_widget(widget); + + root->u.root.input = widget; +} + /* exported function docuemnted in fbtk.h */ |