2004-05-12 03:40:07 +04:00
|
|
|
/*
|
2005-03-19 02:52:38 +03:00
|
|
|
* Copyright 2004, 2005 Richard Wilson <info@tinct.net>
|
2007-08-08 20:16:03 +04:00
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2004-05-12 03:40:07 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* Interactive help (implementation).
|
|
|
|
*/
|
|
|
|
|
2005-07-16 18:35:25 +04:00
|
|
|
#include <assert.h>
|
2005-04-08 00:46:22 +04:00
|
|
|
#include <stdbool.h>
|
2004-05-12 03:40:07 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "oslib/help.h"
|
2004-05-23 15:22:10 +04:00
|
|
|
#include "oslib/os.h"
|
2004-05-14 23:59:09 +04:00
|
|
|
#include "oslib/taskmanager.h"
|
2004-05-12 03:40:07 +04:00
|
|
|
#include "oslib/wimp.h"
|
2007-05-31 02:39:54 +04:00
|
|
|
#include "desktop/tree.h"
|
2010-10-05 23:14:46 +04:00
|
|
|
#include "riscos/cookies.h"
|
|
|
|
#include "riscos/global_history.h"
|
2007-05-31 02:39:54 +04:00
|
|
|
#include "riscos/gui.h"
|
2010-10-05 23:14:46 +04:00
|
|
|
#include "riscos/hotlist.h"
|
2007-05-31 02:39:54 +04:00
|
|
|
#include "riscos/help.h"
|
2011-02-21 02:16:33 +03:00
|
|
|
#include "riscos/iconbar.h"
|
2007-05-31 02:39:54 +04:00
|
|
|
#include "riscos/menus.h"
|
2013-05-26 01:46:27 +04:00
|
|
|
#include "utils/nsoption.h"
|
2007-05-31 02:39:54 +04:00
|
|
|
#include "riscos/treeview.h"
|
|
|
|
#include "riscos/wimp.h"
|
|
|
|
#include "riscos/wimp_event.h"
|
2011-02-21 02:16:33 +03:00
|
|
|
#include "riscos/window.h"
|
2007-05-31 02:39:54 +04:00
|
|
|
#include "utils/messages.h"
|
|
|
|
#include "utils/log.h"
|
|
|
|
#include "utils/utf8.h"
|
|
|
|
#include "utils/utils.h"
|
2014-02-02 02:17:36 +04:00
|
|
|
#include "riscos/ucstables.h"
|
2004-05-12 03:40:07 +04:00
|
|
|
|
|
|
|
|
2004-05-14 21:36:30 +04:00
|
|
|
/* Recognised help keys
|
|
|
|
====================
|
2005-12-31 07:40:49 +03:00
|
|
|
Help keys should be registered using the wimp_event system to be
|
|
|
|
recognised. The only special case help values are:
|
2004-05-14 21:36:30 +04:00
|
|
|
|
2006-07-13 16:46:02 +04:00
|
|
|
HelpIconbar Iconbar (no icon suffix is used)
|
|
|
|
HelpBrowser Browser window [*]
|
|
|
|
HelpHotlist Hotlist window [*]
|
|
|
|
HelpGHistory Global history window [*]
|
|
|
|
HelpCookies Cookies window [*]
|
2005-03-19 02:52:38 +03:00
|
|
|
|
2006-07-13 16:46:02 +04:00
|
|
|
HelpIconMenu Iconbar menu
|
|
|
|
HelpBrowserMenu Browser window menu
|
|
|
|
HelpHotlistMenu Hotlist window menu
|
|
|
|
HelpGHistoryMenu Global history window menu
|
2006-07-16 04:21:15 +04:00
|
|
|
HelpCookiesMenu Cookie window menu
|
2005-04-08 00:46:22 +04:00
|
|
|
|
|
|
|
The prefixes are followed by either the icon number (eg 'HelpToolbar7'),
|
|
|
|
or a series of numbers representing the menu structure (eg
|
|
|
|
'HelpBrowserMenu3-1-2').
|
|
|
|
If '<key><identifier>' is not available, then simply '<key>' is then
|
|
|
|
used. For example if 'HelpToolbar7' is not available then 'HelpToolbar'
|
|
|
|
is then tried.
|
|
|
|
If an item is greyed out then a suffix of 'g' is added (eg
|
|
|
|
'HelpToolbar7g'). For this to work, windows must have bit 4 of the
|
|
|
|
window flag byte set and the user must be running RISC OS 5.03 or
|
|
|
|
greater.
|
|
|
|
For items marked with an asterisk [*] a call must be made to determine
|
|
|
|
the required help text as the window does not contain any icons. An
|
|
|
|
example of this is the hotlist window where ro_gui_hotlist_help() is
|
|
|
|
called.
|
2004-05-12 03:40:07 +04:00
|
|
|
*/
|
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
|
|
|
|
static void ro_gui_interactive_help_broadcast(wimp_message *message,
|
|
|
|
char *token);
|
2004-05-23 15:22:10 +04:00
|
|
|
static os_t help_time = 0;
|
2004-05-12 03:40:07 +04:00
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
|
2004-05-12 03:40:07 +04:00
|
|
|
/**
|
|
|
|
* Attempts to process an interactive help message request
|
|
|
|
*
|
|
|
|
* \param message the request message
|
|
|
|
*/
|
2008-07-27 02:29:15 +04:00
|
|
|
void ro_gui_interactive_help_request(wimp_message *message)
|
|
|
|
{
|
2011-02-21 02:16:33 +03:00
|
|
|
char message_token[32];
|
|
|
|
char menu_buffer[4];
|
|
|
|
wimp_selection menu_tree;
|
|
|
|
help_full_message_request *message_data;
|
|
|
|
wimp_w window;
|
|
|
|
wimp_i icon;
|
|
|
|
unsigned int index;
|
|
|
|
bool greyed = false;
|
|
|
|
wimp_menu *test_menu;
|
|
|
|
os_error *error;
|
2014-05-26 14:48:07 +04:00
|
|
|
const char *auto_text;
|
2011-02-21 02:16:33 +03:00
|
|
|
int i;
|
2010-10-05 23:14:46 +04:00
|
|
|
|
2007-10-11 01:22:36 +04:00
|
|
|
/* check we aren't turned off */
|
2012-03-22 13:34:34 +04:00
|
|
|
if (!nsoption_bool(interactive_help))
|
2007-10-11 01:22:36 +04:00
|
|
|
return;
|
2004-05-12 03:40:07 +04:00
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* only accept help requests */
|
|
|
|
if ((!message) || (message->action != message_HELP_REQUEST))
|
|
|
|
return;
|
2004-07-06 00:19:52 +04:00
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* remember the time of the request so we can track them */
|
2004-05-23 15:22:10 +04:00
|
|
|
xos_read_monotonic_time(&help_time);
|
2004-05-12 03:40:07 +04:00
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* set up our state */
|
2004-05-12 03:40:07 +04:00
|
|
|
message_token[0] = 0x00;
|
|
|
|
message_data = (help_full_message_request *)message;
|
|
|
|
window = message_data->w;
|
|
|
|
icon = message_data->i;
|
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* do the basic window checks */
|
2005-12-31 07:40:49 +03:00
|
|
|
auto_text = ro_gui_wimp_event_get_help_prefix(window);
|
2011-02-21 02:16:33 +03:00
|
|
|
if (auto_text != NULL) {
|
2014-05-26 14:48:07 +04:00
|
|
|
const char *auto_suffix = ro_gui_wimp_event_get_help_suffix(
|
|
|
|
window, icon, &message_data->pos,
|
|
|
|
message_data->buttons);
|
2011-02-21 02:16:33 +03:00
|
|
|
|
|
|
|
if (auto_suffix == NULL)
|
|
|
|
sprintf(message_token, "%s%i", auto_text, (int)icon);
|
|
|
|
else
|
|
|
|
sprintf(message_token, "%s%s", auto_text, auto_suffix);
|
|
|
|
} else if (window == wimp_ICON_BAR)
|
2004-05-14 21:36:30 +04:00
|
|
|
sprintf(message_token, "HelpIconbar");
|
2010-10-05 23:14:46 +04:00
|
|
|
else if (ro_gui_hotlist_check_window(message->data.data_xfer.w)) {
|
|
|
|
i = ro_treeview_get_help(message_data);
|
2006-07-16 04:21:15 +04:00
|
|
|
sprintf(message_token,
|
|
|
|
(i >= 0) ? "HelpTree%i" :"HelpHotlist%i", i);
|
2010-10-05 23:14:46 +04:00
|
|
|
} else if (ro_gui_global_history_check_window(
|
|
|
|
message->data.data_xfer.w)) {
|
|
|
|
i = ro_treeview_get_help(message_data);
|
2006-07-16 04:21:15 +04:00
|
|
|
sprintf(message_token,
|
|
|
|
(i >= 0) ? "HelpTree%i" :"HelpGHistory%i", i);
|
2010-10-05 23:14:46 +04:00
|
|
|
} else if (ro_gui_cookies_check_window(message->data.data_xfer.w)) {
|
|
|
|
i = ro_treeview_get_help(message_data);
|
2006-07-16 04:21:15 +04:00
|
|
|
sprintf(message_token,
|
|
|
|
(i >= 0) ? "HelpTree%i" :"HelpCookies%i", i);
|
2009-05-30 03:02:13 +04:00
|
|
|
} else if (ro_gui_window_lookup(window) != NULL)
|
2004-07-17 17:00:38 +04:00
|
|
|
sprintf(message_token, "HelpBrowser%i", (int)icon);
|
2005-04-08 00:46:22 +04:00
|
|
|
|
|
|
|
/* if we've managed to find something so far then we broadcast it */
|
|
|
|
if (message_token[0]) {
|
|
|
|
if ((icon >= 0) &&
|
|
|
|
(ro_gui_get_icon_shaded_state(window, icon)))
|
|
|
|
strcat(message_token, "g");
|
|
|
|
ro_gui_interactive_help_broadcast(message,
|
|
|
|
(char *)message_token);
|
|
|
|
return;
|
2004-05-12 03:40:07 +04:00
|
|
|
}
|
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* if we are not on an icon, we can't be in a menu (which stops
|
|
|
|
* separators giving help for their parent) so we abort */
|
|
|
|
if (icon == wimp_ICON_WINDOW)
|
|
|
|
return;
|
2004-08-14 18:30:12 +04:00
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* get the current menu tree */
|
|
|
|
error = xwimp_get_menu_state(wimp_GIVEN_WINDOW_AND_ICON,
|
|
|
|
&menu_tree, window, icon);
|
|
|
|
if (error) {
|
|
|
|
LOG(("xwimp_get_menu_state: 0x%x: %s",
|
|
|
|
error->errnum, error->errmess));
|
|
|
|
warn_user("WimpError", error->errmess);
|
2004-05-12 03:40:07 +04:00
|
|
|
return;
|
|
|
|
}
|
2005-04-08 00:46:22 +04:00
|
|
|
if (menu_tree.items[0] == -1)
|
|
|
|
return;
|
2004-05-12 03:40:07 +04:00
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* get the menu prefix */
|
2011-02-21 02:16:33 +03:00
|
|
|
if (ro_gui_iconbar_check_menu(current_menu))
|
2004-05-14 21:36:30 +04:00
|
|
|
sprintf(message_token, "HelpIconMenu");
|
2011-02-21 02:16:33 +03:00
|
|
|
else if (ro_gui_window_check_menu(current_menu))
|
2004-05-14 21:36:30 +04:00
|
|
|
sprintf(message_token, "HelpBrowserMenu");
|
2010-10-05 23:14:46 +04:00
|
|
|
else if (ro_gui_hotlist_check_menu(current_menu))
|
2004-07-16 20:33:45 +04:00
|
|
|
sprintf(message_token, "HelpHotlistMenu");
|
2010-10-05 23:14:46 +04:00
|
|
|
else if (ro_gui_global_history_check_menu(current_menu))
|
2005-04-08 00:46:22 +04:00
|
|
|
sprintf(message_token, "HelpGHistoryMenu");
|
2010-10-05 23:14:46 +04:00
|
|
|
else if (ro_gui_cookies_check_menu(current_menu))
|
2006-07-13 16:46:02 +04:00
|
|
|
sprintf(message_token, "HelpCookiesMenu");
|
2005-04-08 00:46:22 +04:00
|
|
|
else
|
2004-05-12 03:40:07 +04:00
|
|
|
return;
|
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* decode the menu */
|
2004-05-12 03:40:07 +04:00
|
|
|
index = 0;
|
2004-07-22 00:02:13 +04:00
|
|
|
test_menu = current_menu;
|
2004-05-12 03:40:07 +04:00
|
|
|
while (menu_tree.items[index] != -1) {
|
2005-04-08 00:46:22 +04:00
|
|
|
greyed |= test_menu->entries[menu_tree.items[index]].icon_flags
|
|
|
|
& wimp_ICON_SHADED;
|
2004-07-22 00:02:13 +04:00
|
|
|
test_menu = test_menu->entries[menu_tree.items[index]].sub_menu;
|
2005-04-08 00:46:22 +04:00
|
|
|
if (index == 0)
|
2004-05-12 03:40:07 +04:00
|
|
|
sprintf(menu_buffer, "%i", menu_tree.items[index]);
|
2005-04-08 00:46:22 +04:00
|
|
|
else
|
2004-05-12 03:40:07 +04:00
|
|
|
sprintf(menu_buffer, "-%i", menu_tree.items[index]);
|
|
|
|
strcat(message_token, menu_buffer);
|
|
|
|
index++;
|
|
|
|
}
|
2005-04-08 00:46:22 +04:00
|
|
|
if (greyed)
|
|
|
|
strcat(message_token, "g");
|
|
|
|
ro_gui_interactive_help_broadcast(message, (char *)message_token);
|
2004-05-12 03:40:07 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Broadcasts a help reply
|
|
|
|
*
|
|
|
|
* \param message the original request message
|
|
|
|
* \param token the token to look up
|
|
|
|
*/
|
2005-04-08 00:46:22 +04:00
|
|
|
static void ro_gui_interactive_help_broadcast(wimp_message *message,
|
2008-07-27 02:29:15 +04:00
|
|
|
char *token)
|
|
|
|
{
|
2004-07-22 00:02:13 +04:00
|
|
|
const char *translated_token;
|
2004-05-14 21:36:30 +04:00
|
|
|
help_full_message_reply *reply;
|
2005-07-16 18:35:25 +04:00
|
|
|
char *local_token;
|
2005-04-08 00:46:22 +04:00
|
|
|
os_error *error;
|
2004-05-12 03:40:07 +04:00
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* start off with an empty reply */
|
2004-07-26 00:45:16 +04:00
|
|
|
reply = (help_full_message_reply *)message;
|
|
|
|
reply->reply[0] = '\0';
|
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* check if the message exists */
|
2004-07-22 00:02:13 +04:00
|
|
|
translated_token = messages_get(token);
|
2004-05-14 23:59:09 +04:00
|
|
|
if (translated_token == token) {
|
2005-04-08 00:46:22 +04:00
|
|
|
/* no default help for 'g' suffix */
|
2004-07-26 00:45:16 +04:00
|
|
|
if (token[strlen(token) - 1] != 'g') {
|
2005-04-08 00:46:22 +04:00
|
|
|
/* find the base key from the token */
|
2014-05-26 14:48:07 +04:00
|
|
|
char *base_token = token;
|
2004-07-22 00:02:13 +04:00
|
|
|
while (base_token[0] != 0x00) {
|
|
|
|
if ((base_token[0] == '-') ||
|
2005-04-08 00:46:22 +04:00
|
|
|
((base_token[0] >= '0') &&
|
|
|
|
(base_token[0] <= '9')))
|
2004-07-22 00:02:13 +04:00
|
|
|
base_token[0] = 0x00;
|
2005-04-08 00:46:22 +04:00
|
|
|
else
|
2004-07-22 00:02:13 +04:00
|
|
|
++base_token;
|
2004-05-14 23:59:09 +04:00
|
|
|
}
|
2004-07-22 00:02:13 +04:00
|
|
|
translated_token = messages_get(token);
|
|
|
|
}
|
2004-05-14 23:59:09 +04:00
|
|
|
}
|
2004-08-14 18:30:12 +04:00
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* copy our message string */
|
2004-07-26 00:45:16 +04:00
|
|
|
if (translated_token != token) {
|
2005-07-16 18:35:25 +04:00
|
|
|
/* convert to local encoding */
|
2014-05-26 14:48:07 +04:00
|
|
|
nserror err = utf8_to_local_encoding(translated_token, 0,
|
2005-07-16 18:35:25 +04:00
|
|
|
&local_token);
|
2014-01-29 01:40:13 +04:00
|
|
|
if (err != NSERROR_OK) {
|
2005-07-16 18:35:25 +04:00
|
|
|
/* badenc should never happen */
|
2014-01-29 01:40:13 +04:00
|
|
|
assert(err != NSERROR_BAD_ENCODING);
|
2005-07-16 18:35:25 +04:00
|
|
|
/* simply use UTF-8 string */
|
|
|
|
strncpy(reply->reply, translated_token, 235);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
strncpy(reply->reply, local_token, 235);
|
|
|
|
free(local_token);
|
|
|
|
}
|
|
|
|
reply->reply[235] = '\0';
|
2004-07-26 00:45:16 +04:00
|
|
|
}
|
2004-05-12 03:40:07 +04:00
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* broadcast the help reply */
|
2004-05-12 03:40:07 +04:00
|
|
|
reply->size = 256;
|
|
|
|
reply->action = message_HELP_REPLY;
|
|
|
|
reply->your_ref = reply->my_ref;
|
2005-04-08 00:46:22 +04:00
|
|
|
error = xwimp_send_message(wimp_USER_MESSAGE, (wimp_message *)reply,
|
|
|
|
reply->sender);
|
|
|
|
if (error) {
|
|
|
|
LOG(("xwimp_send_message: 0x%x: %s",
|
|
|
|
error->errnum, error->errmess));
|
|
|
|
warn_user("WimpError", error->errmess);
|
|
|
|
}
|
2004-05-12 03:40:07 +04:00
|
|
|
}
|
2004-05-14 23:59:09 +04:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Checks if interactive help is running
|
|
|
|
*
|
2004-05-23 15:22:10 +04:00
|
|
|
* \return non-zero if interactive help is available, or 0 if not available
|
2004-05-14 23:59:09 +04:00
|
|
|
*/
|
2008-07-27 02:29:15 +04:00
|
|
|
bool ro_gui_interactive_help_available(void)
|
|
|
|
{
|
2004-05-14 23:59:09 +04:00
|
|
|
taskmanager_task task;
|
|
|
|
int context = 0;
|
2004-05-23 15:22:10 +04:00
|
|
|
os_t time;
|
2004-07-06 00:19:52 +04:00
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* generic test: any help request within the last 100cs */
|
2004-05-23 15:22:10 +04:00
|
|
|
xos_read_monotonic_time(&time);
|
2005-04-08 00:46:22 +04:00
|
|
|
if ((help_time + 100) > time)
|
|
|
|
return true;
|
2004-05-15 00:23:52 +04:00
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* special cases: check known application names */
|
2004-05-14 23:59:09 +04:00
|
|
|
do {
|
2014-05-26 14:48:07 +04:00
|
|
|
os_error *error;
|
2005-04-08 00:46:22 +04:00
|
|
|
error = xtaskmanager_enumerate_tasks(context, &task,
|
|
|
|
sizeof(taskmanager_task), &context, 0);
|
|
|
|
if (error) {
|
|
|
|
LOG(("xtaskmanager_enumerate_tasks: 0x%x: %s",
|
|
|
|
error->errnum, error->errmess));
|
|
|
|
warn_user("MiscError", error->errmess);
|
2004-05-14 23:59:09 +04:00
|
|
|
}
|
2005-07-16 18:35:25 +04:00
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/* we can't just use strcmp due to string termination issues */
|
|
|
|
if (!strncmp(task.name, "Help", 4) &&
|
|
|
|
(task.name[4] < 32))
|
|
|
|
return true;
|
|
|
|
else if (!strncmp(task.name, "Bubble Help", 11) &&
|
|
|
|
(task.name[11] < 32))
|
|
|
|
return true;
|
|
|
|
else if (!strncmp(task.name, "Floating Help", 13) &&
|
|
|
|
(task.name[13] < 32))
|
|
|
|
return true;
|
2004-05-15 00:23:52 +04:00
|
|
|
} while (context >= 0);
|
2005-04-08 00:46:22 +04:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2004-05-15 00:23:52 +04:00
|
|
|
|
2005-04-08 00:46:22 +04:00
|
|
|
/**
|
|
|
|
* Launches interactive help.
|
|
|
|
*/
|
2008-07-27 02:29:15 +04:00
|
|
|
void ro_gui_interactive_help_start(void)
|
|
|
|
{
|
2005-04-08 00:46:22 +04:00
|
|
|
char *help_start;
|
|
|
|
wimp_t task = 0;
|
|
|
|
os_error *error;
|
2010-10-05 23:14:46 +04:00
|
|
|
|
2007-10-11 01:22:36 +04:00
|
|
|
/* don't launch a second copy of anything */
|
|
|
|
if (ro_gui_interactive_help_available())
|
|
|
|
return;
|
2005-04-08 00:46:22 +04:00
|
|
|
|
|
|
|
/* launch <Help$Start> */
|
|
|
|
help_start = getenv("Help$Start");
|
|
|
|
if ((help_start) && (help_start[0])) {
|
|
|
|
error = xwimp_start_task("<Help$Start>", &task);
|
|
|
|
if (error) {
|
|
|
|
LOG(("xwimp_start_tast: 0x%x: %s",
|
|
|
|
error->errnum, error->errmess));
|
|
|
|
warn_user("WimpError", error->errmess);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* first attempt failed, launch !Help */
|
|
|
|
if (!task) {
|
|
|
|
error = xwimp_start_task("Resources:$.Apps.!Help", &task);
|
|
|
|
if (error) {
|
|
|
|
LOG(("xwimp_start_tast: 0x%x: %s",
|
|
|
|
error->errnum, error->errmess));
|
|
|
|
warn_user("WimpError", error->errmess);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* pretend we got a help request straight away */
|
|
|
|
if (task) {
|
|
|
|
error = xos_read_monotonic_time(&help_time);
|
|
|
|
if (error) {
|
|
|
|
LOG(("xwimp_read_monotonic_time: 0x%x: %s",
|
|
|
|
error->errnum, error->errmess));
|
|
|
|
warn_user("WimpError", error->errmess);
|
|
|
|
}
|
|
|
|
}
|
2004-05-14 23:59:09 +04:00
|
|
|
}
|