diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-03-18 22:32:52 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-03-18 22:32:52 +0000 |
commit | 4d4d74c8cd1a77a46cbe0816cf6150f8b4980947 (patch) | |
tree | cdc747443b58963a17b2844da25c7b2fab9deb99 /cocoa/SearchWindowController.m | |
parent | fec9f916b640b8ffc18b7ff9f9d04fd742b32ad1 (diff) | |
download | netsurf-4d4d74c8cd1a77a46cbe0816cf6150f8b4980947.tar.gz netsurf-4d4d74c8cd1a77a46cbe0816cf6150f8b4980947.tar.bz2 |
move page search gui callbacks to their own operations table
Diffstat (limited to 'cocoa/SearchWindowController.m')
-rw-r--r-- | cocoa/SearchWindowController.m | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cocoa/SearchWindowController.m b/cocoa/SearchWindowController.m index 06147fa1a..5d48145f4 100644 --- a/cocoa/SearchWindowController.m +++ b/cocoa/SearchWindowController.m @@ -26,14 +26,13 @@ static void cocoa_search_set_back( bool active, void *p ); static void cocoa_search_set_forward( bool active, void *p ); -static struct gui_search_callbacks cocoa_search_callbacks = { +static struct gui_search_table search_table = { .forward_state = cocoa_search_set_forward, .back_state = cocoa_search_set_back, - .status = NULL, - .hourglass = NULL, - .add_recent = NULL }; +struct gui_search_table *cocoa_search_table = &search_table; + @implementation SearchWindowController @synthesize caseSensitive; @@ -76,7 +75,7 @@ static struct gui_search_callbacks cocoa_search_callbacks = { if (selectAll) flags |= SEARCH_FLAG_SHOWALL; struct browser_window *bw = [browser browser]; - browser_window_search( bw, &cocoa_search_callbacks, self, flags, [searchString UTF8String] ); + browser_window_search( bw, self, flags, [searchString UTF8String] ); } - (IBAction) searchStringDidChange: (id) sender; |