From f97c1fc605caf49b73a11f960dc9a6c869e97abe Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 5 Jan 2014 17:33:08 +0000 Subject: Add some more frontend stubs and fix up some others --- cocoa/gui.m | 1 + framebuffer/gui.c | 7 +++++++ monkey/browser.c | 2 +- windows/gui.c | 7 +++++++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/cocoa/gui.m b/cocoa/gui.m index 449b52c82..72f64bf04 100644 --- a/cocoa/gui.m +++ b/cocoa/gui.m @@ -32,6 +32,7 @@ #import "desktop/textinput.h" #import "desktop/401login.h" #import "utils/utils.h" +#import "utils/log.h" #import "image/ico.h" #import "content/fetchers/resource.h" diff --git a/framebuffer/gui.c b/framebuffer/gui.c index b4bb3ef43..08cb31318 100644 --- a/framebuffer/gui.c +++ b/framebuffer/gui.c @@ -1988,6 +1988,13 @@ gui_cert_verify(nsurl *url, cb(false, cbpw); } +void gui_file_gadget_open(struct gui_window *g, hlcache_handle *hl, + struct form_control *gadget) +{ + LOG(("File open dialog rquest for %p/%p", g, gadget)); + /* browser_window_set_gadget_filename(bw, gadget, "filename"); */ +} + /* * Local Variables: * c-basic-offset:8 diff --git a/monkey/browser.c b/monkey/browser.c index 5cd18359a..73549f36a 100644 --- a/monkey/browser.c +++ b/monkey/browser.c @@ -390,7 +390,7 @@ gui_window_save_link(struct gui_window *g, const char *url, g->win_num, url, title); } -void gui_file_gadget_open(struct gui_browser *g, hlcache_handle *hl, +void gui_file_gadget_open(struct gui_window *g, hlcache_handle *hl, struct form_control *gadget) { LOG(("File open dialog rquest for %p/%p", g, gadget)); diff --git a/windows/gui.c b/windows/gui.c index 767f6812e..e20369a65 100644 --- a/windows/gui.c +++ b/windows/gui.c @@ -73,6 +73,13 @@ static const char windowclassname_main[] = "nswsmainwindow"; static struct nsws_pointers nsws_pointer; +void gui_file_gadget_open(struct gui_window *g, hlcache_handle *hl, + struct form_control *gadget) +{ + LOG(("File open dialog rquest for %p/%p", g, gadget)); + /* browser_window_set_gadget_filename(bw, gadget, "filename"); */ +} + void gui_poll(bool active) { MSG Msg; /* message from system */ -- cgit v1.2.3