summaryrefslogtreecommitdiff
path: root/riscos/gui.c
diff options
context:
space:
mode:
authorAdrian Lees <adrian@aemulor.com>2005-04-21 21:36:23 +0000
committerAdrian Lees <adrian@aemulor.com>2005-04-21 21:36:23 +0000
commit8da644f44279d4e566a77f4227173915ff49a7c6 (patch)
tree6f4a77d155566851b5fc6bf730e92cfaa45cff92 /riscos/gui.c
parentd736b3d3e58107293d95f94492ce3c8e281291a6 (diff)
downloadnetsurf-8da644f44279d4e566a77f4227173915ff49a7c6.tar.gz
netsurf-8da644f44279d4e566a77f4227173915ff49a7c6.tar.bz2
[project @ 2005-04-21 21:36:23 by adrianl]
Dragging URLs into toolbar URL icon; keyboard actions in textareas conform to Wimp's icon editing; display of scale % fixed for 120% svn path=/import/netsurf/; revision=1676
Diffstat (limited to 'riscos/gui.c')
-rw-r--r--riscos/gui.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 2e9a92db7..0d35ed78d 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -105,6 +105,8 @@
#endif
+int os_version = 0;
+
const char *__dynamic_da_name = "NetSurf"; /**< For UnixLib. */
int __dynamic_da_max_size = 128 * 1024 * 1024; /**< For UnixLib. */
int __feature_imagefs_is_file = 1; /**< For UnixLib. */
@@ -230,6 +232,10 @@ void gui_init(int argc, char** argv)
xhourglass_start(1);
+ /* read OS version for code that adapts to conform to the OS (remember
+ that it's preferable to check for specific features being present) */
+ xos_byte(osbyte_IN_KEY, 0, 0xff, &os_version, NULL);
+
atexit(ro_gui_cleanup);
signal(SIGABRT, ro_gui_signal);
signal(SIGFPE, ro_gui_signal);
@@ -1322,8 +1328,15 @@ void ro_msg_dataload(wimp_message *message)
bool tree_edit = false;
g = ro_gui_window_lookup(message->data.data_xfer.w);
- if (g && ro_gui_window_dataload(g, message))
- return;
+ if (g) {
+ if (ro_gui_window_dataload(g, message))
+ return;
+ }
+ else {
+ g = ro_gui_toolbar_lookup(message->data.data_xfer.w);
+ if (g && ro_gui_toolbar_dataload(g, message))
+ return;
+ }
switch (file_type) {
case FILETYPE_ACORN_URI: