summaryrefslogtreecommitdiff
path: root/desktop/gui_factory.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-01-13 22:54:19 +0000
committerVincent Sanders <vince@kyllikki.org>2014-01-13 22:54:19 +0000
commitd18c8ed4521714c3fff3cca64685b8192ca0e075 (patch)
tree292ebb4a9f4f39ed8a61a33de4c8b169416214e5 /desktop/gui_factory.c
parente82d83f1847ebc369a5f48a18217a8f5fecf3824 (diff)
downloadnetsurf-d18c8ed4521714c3fff3cca64685b8192ca0e075.tar.gz
netsurf-d18c8ed4521714c3fff3cca64685b8192ca0e075.tar.bz2
move teh final optional window operations into the table
Diffstat (limited to 'desktop/gui_factory.c')
-rw-r--r--desktop/gui_factory.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/desktop/gui_factory.c b/desktop/gui_factory.c
index e03e7dae0..8ebf3515a 100644
--- a/desktop/gui_factory.c
+++ b/desktop/gui_factory.c
@@ -85,6 +85,28 @@ static void gui_default_window_remove_caret(struct gui_window *g)
{
}
+static void gui_default_window_file_gadget_open(struct gui_window *g,
+ hlcache_handle *hl,
+ struct form_control *gadget)
+{
+}
+
+static void gui_default_window_drag_save_object(struct gui_window *g,
+ hlcache_handle *c,
+ gui_save_type type)
+{
+}
+
+static void gui_default_window_drag_save_selection(struct gui_window *g,
+ const char *selection)
+{
+}
+
+static void gui_default_window_start_selection(struct gui_window *g)
+{
+}
+
+
/** verify window table is valid */
static nserror verify_window_register(struct gui_window_table *gwt)
{
@@ -163,6 +185,18 @@ static nserror verify_window_register(struct gui_window_table *gwt)
if (gwt->scroll_start == NULL) {
gwt->scroll_start = gui_default_window_scroll_start;
}
+ if (gwt->file_gadget_open == NULL) {
+ gwt->file_gadget_open = gui_default_window_file_gadget_open;
+ }
+ if (gwt->drag_save_object == NULL) {
+ gwt->drag_save_object = gui_default_window_drag_save_object;
+ }
+ if (gwt->drag_save_selection == NULL) {
+ gwt->drag_save_selection = gui_default_window_drag_save_selection;
+ }
+ if (gwt->start_selection == NULL) {
+ gwt->start_selection = gui_default_window_start_selection;
+ }
return NSERROR_OK;
}