mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-11 13:29:21 +03:00
[project @ 2006-02-15 23:28:18 by adrianl]
Make search accessible for textplain content svn path=/import/netsurf/; revision=2084
This commit is contained in:
parent
2e6cb9f80c
commit
7dbc14cf05
@ -30,6 +30,7 @@
|
||||
#include "netsurf/riscos/help.h"
|
||||
#include "netsurf/riscos/menus.h"
|
||||
#include "netsurf/riscos/options.h"
|
||||
#include "netsurf/riscos/save.h"
|
||||
#include "netsurf/riscos/tinct.h"
|
||||
#include "netsurf/riscos/theme.h"
|
||||
#include "netsurf/riscos/treeview.h"
|
||||
@ -139,7 +140,6 @@ wimp_menu *url_suggest_menu = (wimp_menu *)&url_suggest;
|
||||
* all target OS versions */
|
||||
#define IS_MENU(menu) !((int)(menu) & 1)
|
||||
|
||||
|
||||
/**
|
||||
* Create menu structures.
|
||||
*/
|
||||
@ -1539,7 +1539,7 @@ bool ro_gui_menu_handle_action(wimp_w owner, menu_action action,
|
||||
windows_at_pointer);
|
||||
return true;
|
||||
case BROWSER_FIND_TEXT:
|
||||
if (!c || c->type != CONTENT_HTML)
|
||||
if (!c || (c->type != CONTENT_HTML && c->type != CONTENT_TEXTPLAIN))
|
||||
return false;
|
||||
ro_gui_menu_prepare_action(owner, action, true);
|
||||
ro_gui_menu_search_window_menu = false;
|
||||
@ -1965,7 +1965,7 @@ void ro_gui_menu_prepare_action(wimp_w owner, menu_action action,
|
||||
ICON_TOOLBAR_SCALE, !c);
|
||||
break;
|
||||
case BROWSER_FIND_TEXT:
|
||||
result = !c || c->type != CONTENT_HTML;
|
||||
result = !c || (c->type != CONTENT_HTML && c->type != CONTENT_TEXTPLAIN);
|
||||
ro_gui_menu_set_entry_shaded(current_menu,
|
||||
action, result);
|
||||
if ((!result) && (windows)) {
|
||||
|
Loading…
Reference in New Issue
Block a user