diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-09-02 15:52:41 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-09-02 15:52:41 +0000 |
commit | 74fa727509874983884a35b44b646be034b1fd69 (patch) | |
tree | 1daf083961efd039e318c7a1157b6aa2a83b9d54 /riscos/configure | |
parent | b51f807fe326f6d9aec0600cbf526f96db7577d0 (diff) | |
download | netsurf-74fa727509874983884a35b44b646be034b1fd69.tar.gz netsurf-74fa727509874983884a35b44b646be034b1fd69.tar.bz2 |
Experimental new frames code.
svn path=/trunk/netsurf/; revision=2906
Diffstat (limited to 'riscos/configure')
-rw-r--r-- | riscos/configure/con_content.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/riscos/configure/con_content.c b/riscos/configure/con_content.c index f0636ac08..7ad1dd0f5 100644 --- a/riscos/configure/con_content.c +++ b/riscos/configure/con_content.c @@ -20,9 +20,10 @@ #define CONTENT_BLOCK_ADVERTISEMENTS 2 #define CONTENT_BLOCK_POPUPS 3 #define CONTENT_NO_PLUGINS 4 -#define CONTENT_DEFAULT_BUTTON 5 -#define CONTENT_CANCEL_BUTTON 6 -#define CONTENT_OK_BUTTON 7 +#define CONTENT_TARGET_BLANK 7 +#define CONTENT_DEFAULT_BUTTON 8 +#define CONTENT_CANCEL_BUTTON 9 +#define CONTENT_OK_BUTTON 10 static void ro_gui_options_content_default(wimp_pointer *pointer); static bool ro_gui_options_content_ok(wimp_w w); @@ -35,11 +36,14 @@ bool ro_gui_options_content_initialise(wimp_w w) { option_block_popups); ro_gui_set_icon_selected_state(w, CONTENT_NO_PLUGINS, option_no_plugins); + ro_gui_set_icon_selected_state(w, CONTENT_TARGET_BLANK, + option_target_blank); /* initialise all functions for a newly created window */ ro_gui_wimp_event_register_checkbox(w, CONTENT_BLOCK_ADVERTISEMENTS); ro_gui_wimp_event_register_checkbox(w, CONTENT_BLOCK_POPUPS); ro_gui_wimp_event_register_checkbox(w, CONTENT_NO_PLUGINS); + ro_gui_wimp_event_register_checkbox(w, CONTENT_TARGET_BLANK); ro_gui_wimp_event_register_button(w, CONTENT_DEFAULT_BUTTON, ro_gui_options_content_default); ro_gui_wimp_event_register_cancel(w, CONTENT_CANCEL_BUTTON); @@ -59,6 +63,8 @@ void ro_gui_options_content_default(wimp_pointer *pointer) { false); ro_gui_set_icon_selected_state(pointer->w, CONTENT_NO_PLUGINS, false); + ro_gui_set_icon_selected_state(pointer->w, CONTENT_TARGET_BLANK, + true); } bool ro_gui_options_content_ok(wimp_w w) { @@ -68,6 +74,8 @@ bool ro_gui_options_content_ok(wimp_w w) { CONTENT_BLOCK_POPUPS); option_no_plugins = ro_gui_get_icon_selected_state(w, CONTENT_NO_PLUGINS); + option_target_blank = ro_gui_get_icon_selected_state(w, + CONTENT_TARGET_BLANK); ro_gui_save_options(); return true; |