Purge WITH_SEARCH
svn path=/trunk/netsurf/; revision=6604
This commit is contained in:
parent
5943c3a3ba
commit
903edd1bf5
|
@ -894,7 +894,7 @@ INCLUDE_FILE_PATTERNS =
|
|||
# or name=definition (no spaces). If the definition and the = are
|
||||
# omitted =1 is assumed.
|
||||
|
||||
PREDEFINED = riscos CSS_INTERNALS WITH_ARTWORKS WITH_BMP WITH_DRAW WITH_DRAW_EXPORT WITH_GIF WITH_JPEG WITH_MMAP WITH_MNG WITH_NSSPRITE WITH_NS_SVG WITH_PLUGIN WITH_RSVG WITH_SAVE_COMPLETE WITH_SEARCH WITH_SPRITE WITH_THEME_INSTALL WITH_PDF_EXPORT
|
||||
PREDEFINED = riscos CSS_INTERNALS WITH_ARTWORKS WITH_BMP WITH_DRAW WITH_DRAW_EXPORT WITH_GIF WITH_JPEG WITH_MMAP WITH_MNG WITH_NSSPRITE WITH_NS_SVG WITH_PLUGIN WITH_RSVG WITH_SAVE_COMPLETE WITH_SPRITE WITH_THEME_INSTALL WITH_PDF_EXPORT
|
||||
|
||||
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
|
||||
# this tag can be used to specify a list of macro names that should be expanded.
|
||||
|
|
|
@ -131,9 +131,7 @@ void ro_gui_dialog_init(void)
|
|||
ro_gui_wimp_event_set_help_prefix(dialog_debug, "HelpDebug");
|
||||
|
||||
/* search */
|
||||
#ifdef WITH_SEARCH
|
||||
ro_gui_search_init();
|
||||
#endif
|
||||
|
||||
/* print */
|
||||
ro_gui_print_init();
|
||||
|
|
|
@ -198,11 +198,9 @@ extern os_t sched_time;
|
|||
void ro_gui_debugwin_open(void);
|
||||
|
||||
/* in search.c */
|
||||
#ifdef WITH_SEARCH
|
||||
void ro_gui_search_init(void);
|
||||
void ro_gui_search_prepare(struct gui_window *g);
|
||||
bool ro_gui_search_prepare_menu(void);
|
||||
#endif
|
||||
|
||||
/* in print.c */
|
||||
void ro_gui_print_init(void);
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
*/
|
||||
|
||||
#include "utils/config.h"
|
||||
#ifdef WITH_SEARCH
|
||||
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
@ -877,4 +876,3 @@ void show_status(bool found)
|
|||
found ? "" : messages_get("NotFound"), true);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -2177,12 +2177,10 @@ bool ro_gui_toolbar_click(wimp_pointer *pointer)
|
|||
ro_gui_menu_handle_action(g->window,
|
||||
BROWSER_NAVIGATE_HOME, true);
|
||||
break;
|
||||
#ifdef WITH_SEARCH
|
||||
case ICON_TOOLBAR_SEARCH:
|
||||
ro_gui_menu_handle_action(g->window,
|
||||
BROWSER_FIND_TEXT, true);
|
||||
break;
|
||||
#endif
|
||||
case ICON_TOOLBAR_SCALE:
|
||||
ro_gui_menu_handle_action(g->window,
|
||||
BROWSER_SCALE_VIEW, true);
|
||||
|
@ -2426,12 +2424,10 @@ bool ro_gui_window_keypress(wimp_key *key)
|
|||
return ro_gui_menu_handle_action(g->window,
|
||||
BROWSER_EXPORT_DRAW, false);
|
||||
|
||||
#ifdef WITH_SEARCH
|
||||
case 6: /* Ctrl + F */
|
||||
case IS_WIMP_KEY + wimp_KEY_F4: /* Search */
|
||||
return ro_gui_menu_handle_action(g->window,
|
||||
BROWSER_FIND_TEXT, false);
|
||||
#endif
|
||||
|
||||
case IS_WIMP_KEY + wimp_KEY_F5: /* Reload */
|
||||
return ro_gui_menu_handle_action(g->window,
|
||||
|
|
|
@ -41,8 +41,6 @@ char *strndup(const char *s, size_t n);
|
|||
|
||||
/* Platform specific features */
|
||||
#if defined(riscos)
|
||||
/* Free text search */
|
||||
#define WITH_SEARCH
|
||||
/* Theme auto-install */
|
||||
#define WITH_THEME_INSTALL
|
||||
#elif defined(__HAIKU__) || defined(__BEOS__)
|
||||
|
|
Loading…
Reference in New Issue