From cca607fbe85ae6b6ad517a08eee80ac6a6e83c50 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Tue, 25 Jan 2011 15:09:06 +0000 Subject: Creating select menus for forms svn path=/trunk/netsurf/; revision=11484 --- cocoa/gui.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cocoa/gui.m') diff --git a/cocoa/gui.m b/cocoa/gui.m index bac2590cd..03a9b1015 100644 --- a/cocoa/gui.m +++ b/cocoa/gui.m @@ -21,6 +21,7 @@ #import "BrowserView.h" #import "BrowserViewController.h" #import "BrowserWindowController.h" +#import "FormSelectMenu.h" #import "desktop/gui.h" #import "desktop/netsurf.h" @@ -199,6 +200,7 @@ void gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape) break; case GUI_POINTER_POINT: + case GUI_POINTER_MENU: [[NSCursor pointingHandCursor] set]; break; @@ -298,10 +300,11 @@ void gui_drag_save_selection(struct selection *s, struct gui_window *g) void gui_create_form_select_menu(struct browser_window *bw, struct form_control *control) { - UNIMPL(); + FormSelectMenu *menu = [[FormSelectMenu alloc] initWithControl: control forWindow: bw]; + [menu runInView: [(BrowserViewController *)bw->window browserView]]; + [menu release]; } - void gui_launch_url(const char *url) { [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: [NSString stringWithUTF8String: url]]]; -- cgit v1.2.3