summaryrefslogtreecommitdiff
path: root/cocoa/gui.m
diff options
context:
space:
mode:
authorSven Weidauer <sven.weidauer@gmail.com>2011-01-25 15:09:06 +0000
committerSven Weidauer <sven.weidauer@gmail.com>2011-01-25 15:09:06 +0000
commitcca607fbe85ae6b6ad517a08eee80ac6a6e83c50 (patch)
tree1edbd4951c3c62630a351178adf7c19b57345285 /cocoa/gui.m
parent5615eb65af3cb4c775b36254e2579b98aa1439fe (diff)
downloadnetsurf-cca607fbe85ae6b6ad517a08eee80ac6a6e83c50.tar.gz
netsurf-cca607fbe85ae6b6ad517a08eee80ac6a6e83c50.tar.bz2
Creating select menus for forms
svn path=/trunk/netsurf/; revision=11484
Diffstat (limited to 'cocoa/gui.m')
-rw-r--r--cocoa/gui.m7
1 files changed, 5 insertions, 2 deletions
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]]];