From 56bb9582b16dfd45bbd1665adaf87c6c5986aed3 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 12 Jan 2014 10:27:41 +0000 Subject: move set title, set url, start and stop throbber window operations to gui table --- desktop/gui_factory.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'desktop/gui_factory.c') diff --git a/desktop/gui_factory.c b/desktop/gui_factory.c index 9a4fa396a..c760218ec 100644 --- a/desktop/gui_factory.c +++ b/desktop/gui_factory.c @@ -9,6 +9,22 @@ static void gui_default_quit(void) { } +static void gui_default_window_set_title(struct gui_window *g, const char *title) +{ +} + +static void gui_default_window_set_url(struct gui_window *g, const char *url) +{ +} + +static void gui_default_window_start_throbber(struct gui_window *g) +{ +} + +static void gui_default_window_stop_throbber(struct gui_window *g) +{ +} + nserror gui_factory_register(struct gui_table *gt) { /* ensure not already initialised */ @@ -31,7 +47,19 @@ nserror gui_factory_register(struct gui_table *gt) /* fill in the optional entries with defaults */ if (gt->quit == NULL) { - gt->quit = &gui_default_quit; + gt->quit = gui_default_quit; + } + if (gt->window_set_title == NULL) { + gt->window_set_title = gui_default_window_set_title; + } + if (gt->window_set_url == NULL) { + gt->window_set_url = gui_default_window_set_url; + } + if (gt->window_start_throbber == NULL) { + gt->window_start_throbber = gui_default_window_start_throbber; + } + if (gt->window_stop_throbber == NULL) { + gt->window_stop_throbber = gui_default_window_stop_throbber; } guit = gt; -- cgit v1.2.3