diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-07-03 01:03:07 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-07-03 01:03:07 +0000 |
commit | 5eb703af733f49f743eabbea6783bc74de95ebc5 (patch) | |
tree | a69fbea5d9b2fb49c620ce9f082e785d3032579b /riscos | |
parent | 148399a7b98facbc6ad4f73a75e0b8cfc84f511a (diff) | |
download | netsurf-5eb703af733f49f743eabbea6783bc74de95ebc5.tar.gz netsurf-5eb703af733f49f743eabbea6783bc74de95ebc5.tar.bz2 |
Allow thumbnail icons to be turned off.
svn path=/trunk/netsurf/; revision=2699
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/configure/con_inter.c | 13 | ||||
-rw-r--r-- | riscos/gui.c | 4 | ||||
-rw-r--r-- | riscos/options.h | 7 |
3 files changed, 19 insertions, 5 deletions
diff --git a/riscos/configure/con_inter.c b/riscos/configure/con_inter.c index 25619cd2c..84d48bb85 100644 --- a/riscos/configure/con_inter.c +++ b/riscos/configure/con_inter.c @@ -18,9 +18,10 @@ #define INTERFACE_CONFIRM_OVWR_OPTION 3 #define INTERFACE_URL_COMPLETE_OPTION 6 #define INTERFACE_HISTORY_TOOLTIP_OPTION 7 -#define INTERFACE_DEFAULT_BUTTON 8 -#define INTERFACE_CANCEL_BUTTON 9 -#define INTERFACE_OK_BUTTON 10 +#define INTERFACE_THUMBNAIL_ICONISE_OPTION 10 +#define INTERFACE_DEFAULT_BUTTON 11 +#define INTERFACE_CANCEL_BUTTON 12 +#define INTERFACE_OK_BUTTON 13 static void ro_gui_options_interface_default(wimp_pointer *pointer); @@ -37,6 +38,8 @@ bool ro_gui_options_interface_initialise(wimp_w w) { option_url_suggestion); ro_gui_set_icon_selected_state(w, INTERFACE_HISTORY_TOOLTIP_OPTION, option_history_tooltip); + ro_gui_set_icon_selected_state(w, INTERFACE_THUMBNAIL_ICONISE_OPTION, + option_thumbnail_iconise); /* initialise all functions for a newly created window */ ro_gui_wimp_event_register_button(w, INTERFACE_DEFAULT_BUTTON, @@ -60,6 +63,8 @@ void ro_gui_options_interface_default(wimp_pointer *pointer) { INTERFACE_URL_COMPLETE_OPTION, true); ro_gui_set_icon_selected_state(pointer->w, INTERFACE_HISTORY_TOOLTIP_OPTION, true); + ro_gui_set_icon_selected_state(pointer->w, + INTERFACE_THUMBNAIL_ICONISE_OPTION, true); } bool ro_gui_options_interface_ok(wimp_w w) { @@ -72,6 +77,8 @@ bool ro_gui_options_interface_ok(wimp_w w) { INTERFACE_URL_COMPLETE_OPTION); option_history_tooltip = ro_gui_get_icon_selected_state(w, INTERFACE_HISTORY_TOOLTIP_OPTION); + option_thumbnail_iconise = ro_gui_get_icon_selected_state(w, + INTERFACE_THUMBNAIL_ICONISE_OPTION); ro_gui_save_options(); return true; diff --git a/riscos/gui.c b/riscos/gui.c index 925659265..9ffa05c0b 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -1988,6 +1988,10 @@ void ro_msg_window_info(wimp_message *message) wimp_full_message_window_info *wi; struct gui_window *g; + /* allow the user to turn off thumbnail icons */ + if (!option_thumbnail_iconise) + return; + wi = (wimp_full_message_window_info*)message; g = ro_gui_window_lookup(wi->w); diff --git a/riscos/options.h b/riscos/options.h index a968fcd89..176924b8f 100644 --- a/riscos/options.h +++ b/riscos/options.h @@ -59,6 +59,7 @@ extern char *option_recent_path; extern char *option_recent_save; extern char *option_theme_path; extern char *option_theme_save; +extern bool option_thumbnail_iconise; #define EXTRA_OPTION_DEFINE \ bool option_use_mouse_gestures = false;\ @@ -103,7 +104,8 @@ char *option_hotlist_save = 0; \ char *option_recent_path = 0; \ char *option_recent_save = 0; \ char *option_theme_path = 0; \ -char *option_theme_save = 0; +char *option_theme_save = 0; \ +bool option_thumbnail_iconise = true; #define EXTRA_OPTION_TABLE \ { "use_mouse_gestures", OPTION_BOOL, &option_use_mouse_gestures },\ @@ -148,6 +150,7 @@ char *option_theme_save = 0; { "recent_path", OPTION_STRING, &option_recent_path }, \ { "recent_save", OPTION_STRING, &option_recent_save }, \ { "theme_path", OPTION_STRING, &option_theme_path }, \ -{ "theme_save", OPTION_STRING, &option_theme_save } +{ "theme_save", OPTION_STRING, &option_theme_save }, \ +{ "thumbnail_iconise", OPTION_BOOL, &option_thumbnail_iconise } #endif |