Add new gui entry point for file open dialogue requests

This commit is contained in:
Rob Kendrick 2014-01-05 16:01:03 +00:00
parent 1bd4a34a27
commit d8ad3b8e78
8 changed files with 55 additions and 6 deletions

View File

@ -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"); */
}

View File

@ -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.
*

View File

@ -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"); */
}

View File

@ -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"); */
}

View File

@ -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.

View File

@ -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)

View File

@ -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 ****/

View File

@ -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"); */
}