summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-02-02 22:58:35 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-02-02 22:58:35 +0000
commit442218cb8047912d8e57936cb0a4ce791db9f31d (patch)
treec1c1f062df0b3e98576b379d5166aa675206801c /atari
parent97bc1d01894c54e206e2001c26f333cd0c3f6d28 (diff)
downloadnetsurf-442218cb8047912d8e57936cb0a4ce791db9f31d.tar.gz
netsurf-442218cb8047912d8e57936cb0a4ce791db9f31d.tar.bz2
Pull flags out of textarea_setup.
Diffstat (limited to 'atari')
-rw-r--r--atari/toolbar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/atari/toolbar.c b/atari/toolbar.c
index 480b69904..c472942de 100644
--- a/atari/toolbar.c
+++ b/atari/toolbar.c
@@ -322,8 +322,8 @@ struct s_toolbar *toolbar_create(struct s_gui_win_root *owner)
toolbar_get_grect(t, TOOLBAR_AREA_URL, &url_area);
url_area.g_h -= (TOOLBAR_URL_MARGIN_TOP + TOOLBAR_URL_MARGIN_BOTTOM);
+ textarea_flags ta_flags = TEXTAREA_INTERNAL_CARET;
textarea_setup ta_setup;
- ta_setup.flags = TEXTAREA_INTERNAL_CARET;
ta_setup.width = 300;
ta_setup.height = url_area.g_h;
ta_setup.pad_top = 0;
@@ -337,7 +337,8 @@ struct s_toolbar *toolbar_create(struct s_gui_win_root *owner)
ta_setup.text = font_style_url;
ta_setup.text.foreground = 0x000000;
ta_setup.text.background = 0xffffff;
- t->url.textarea = textarea_create(&ta_setup, tb_txt_callback, t);
+ t->url.textarea = textarea_create(ta_flags, &ta_setup,
+ tb_txt_callback, t);
/* create the throbber widget: */
t->throbber.index = THROBBER_INACTIVE_INDEX;