From 16250228829683961d86ebef828c9027eed6c696 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 24 Aug 2011 12:32:13 +0000 Subject: Cocoa changes for core search update (r12646). Note: untested. svn path=/trunk/netsurf/; revision=12648 --- cocoa/SearchWindowController.m | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'cocoa') diff --git a/cocoa/SearchWindowController.m b/cocoa/SearchWindowController.m index 2557dedc8..0f5ce85bf 100644 --- a/cocoa/SearchWindowController.m +++ b/cocoa/SearchWindowController.m @@ -76,18 +76,15 @@ static struct search_callbacks cocoa_search_callbacks = { if (selectAll) flags |= SEARCH_FLAG_SHOWALL; struct browser_window *bw = [browser browser]; - if (bw != NULL && search_verify_new( bw, &cocoa_search_callbacks, self )) { - search_step( bw->search_context, flags, [searchString UTF8String] ); + if (bw != NULL && browser_window_search_verify_new( bw, &cocoa_search_callbacks, self )) { + browser_window_search_step( bw, flags, [searchString UTF8String] ); } } - (IBAction) searchStringDidChange: (id) sender; { struct browser_window *bw = [browser browser]; - if (bw != NULL && bw->search_context != NULL) { - search_destroy_context( bw->search_context ); - bw->search_context = NULL; - } + browser_window_search_destroy_context( bw ); [self setCanGoBack: YES]; [self setCanGoForward: YES]; -- cgit v1.2.3