summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Kendrick <rjek@rjek.com>2014-01-05 16:01:03 +0000
committerRob Kendrick <rjek@rjek.com>2014-01-05 16:01:03 +0000
commitd8ad3b8e7893630d3866bc56c90f6f7556ab1740 (patch)
tree1587355c986598f768ec5211c4b87320e88b9d87
parent1bd4a34a271e4f839298f56d8e45f02dfa9d378b (diff)
downloadnetsurf-d8ad3b8e7893630d3866bc56c90f6f7556ab1740.tar.gz
netsurf-d8ad3b8e7893630d3866bc56c90f6f7556ab1740.tar.bz2
Add new gui entry point for file open dialogue requests
-rw-r--r--amiga/gui.c12
-rw-r--r--atari/gui.c7
-rw-r--r--beos/gui.cpp8
-rw-r--r--cocoa/gui.m7
-rw-r--r--desktop/gui.h3
-rw-r--r--gtk/gui.c9
-rw-r--r--monkey/browser.c7
-rw-r--r--riscos/gui.c8
8 files changed, 55 insertions, 6 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 103d3a1e8..76185e949 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -4232,8 +4232,8 @@ static void ami_gui_window_update_box_deferred(struct gui_window *g, bool draw)
static bool ami_gui_window_update_box_deferred_check(struct MinList *deferred_rects,
const struct rect *new_rect)
{
- struct nsObject *node;
- struct nsObject *nnode;
+struct nsObject *node;
+struct nsObject *nnode;
struct rect *rect;
if(IsMinListEmpty(deferred_rects)) return true;
@@ -5137,3 +5137,11 @@ void ami_gui_splash_close(Object *win_obj)
{
if(win_obj) DisposeObject(win_obj);
}
+
+void gui_file_gadget_open(struct browser_window *bw, hlcache_handle *hl,
+ struct form_control *gadget)
+{
+ LOG(("File open dialog rquest for %p/%p", bw, gadget));
+ /* browser_window_set_gadget_filename(bw, gadget, "filename"); */
+}
+
diff --git a/atari/gui.c b/atari/gui.c
index e52a6589c..badb4206c 100644
--- a/atari/gui.c
+++ b/atari/gui.c
@@ -1098,6 +1098,13 @@ static void gui_init2(int argc, char** argv)
toolbar_init();
}
+void gui_file_gadget_open(struct browser_window *bw, hlcache_handle *hl,
+ struct form_control *gadget)
+{
+ LOG(("File open dialog rquest for %p/%p", bw, gadget));
+ /* browser_window_set_gadget_filename(bw, gadget, "filename"); */
+}
+
/* #define WITH_DBG_LOGFILE 1 */
/** Entry point from OS.
*
diff --git a/beos/gui.cpp b/beos/gui.cpp
index 204c11caf..6c9d1ed12 100644
--- a/beos/gui.cpp
+++ b/beos/gui.cpp
@@ -1164,3 +1164,11 @@ bool path_add_part(char *path, int length, const char *newpart)
return true;
}
+
+void gui_file_gadget_open(struct browser_window *bw, hlcache_handle *hl,
+ struct form_control *gadget)
+{
+ LOG(("File open dialog rquest for %p/%p", bw, gadget));
+ /* browser_window_set_gadget_filename(bw, gadget, "filename"); */
+}
+
diff --git a/cocoa/gui.m b/cocoa/gui.m
index b2ff01dc0..3804ad249 100644
--- a/cocoa/gui.m
+++ b/cocoa/gui.m
@@ -324,3 +324,10 @@ void gui_401login_open(nsurl *url, const char *realm,
cb( false, cbpw );
}
+void gui_file_gadget_open(struct browser_window *bw, hlcache_handle *hl,
+ struct form_control *gadget)
+{
+ LOG(("File open dialog rquest for %p/%p", bw, gadget));
+ /* browser_window_set_gadget_filename(bw, gadget, "filename"); */
+}
+
diff --git a/desktop/gui.h b/desktop/gui.h
index 9d35e1727..4bbf08718 100644
--- a/desktop/gui.h
+++ b/desktop/gui.h
@@ -116,7 +116,8 @@ void gui_drag_save_selection(struct gui_window *g, const char *selection);
void gui_start_selection(struct gui_window *g);
void gui_clear_selection(struct gui_window *g);
-
+void gui_file_gadget_open(struct browser_window *bw, hlcache_handle *hl,
+ struct form_control *gadget);
/**
* Core asks front end for clipboard contents.
diff --git a/gtk/gui.c b/gtk/gui.c
index 649c4a239..0f815a7a2 100644
--- a/gtk/gui.c
+++ b/gtk/gui.c
@@ -681,9 +681,12 @@ void gui_quit(void)
gtk_fetch_filetype_fin();
}
-
-
-
+void gui_file_gadget_open(struct browser_window *bw, hlcache_handle *hl,
+ struct form_control *gadget)
+{
+ LOG(("File open dialog rquest for %p/%p", bw, gadget));
+ /* browser_window_set_gadget_filename(bw, gadget, "plinth"); */
+}
static void nsgtk_select_menu_clicked(GtkCheckMenuItem *checkmenuitem,
gpointer user_data)
diff --git a/monkey/browser.c b/monkey/browser.c
index 09ecf4b11..47fb07bc1 100644
--- a/monkey/browser.c
+++ b/monkey/browser.c
@@ -390,6 +390,13 @@ gui_window_save_link(struct gui_window *g, const char *url,
g->win_num, url, title);
}
+void gui_file_gadget_open(struct browser_window *bw, hlcache_handle *hl,
+ struct form_control *gadget)
+{
+ LOG(("File open dialog rquest for %p/%p", bw, gadget));
+ /* browser_window_set_gadget_filename(bw, gadget, "filename"); */
+}
+
/**** Handlers ****/
diff --git a/riscos/gui.c b/riscos/gui.c
index bb1a318de..0c8ebecc7 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -2423,3 +2423,11 @@ bool path_add_part(char *path, int length, const char *newpart)
return true;
}
+
+void gui_file_gadget_open(struct browser_window *bw, hlcache_handle *hl,
+ struct form_control *gadget)
+{
+ LOG(("File open dialog rquest for %p/%p", bw, gadget));
+ /* browser_window_set_gadget_filename(bw, gadget, "filename"); */
+}
+