summaryrefslogtreecommitdiff
path: root/desktop/gui_factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/gui_factory.c')
-rw-r--r--desktop/gui_factory.c30
1 files changed, 29 insertions, 1 deletions
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;