summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-01-12 10:27:41 +0000
committerVincent Sanders <vince@kyllikki.org>2014-01-12 10:27:41 +0000
commit56bb9582b16dfd45bbd1665adaf87c6c5986aed3 (patch)
treec92b65226b16977ddd0649a9be38d3ebdf06b6c0 /gtk
parentc8496df3df7d059528f2d5e735be5c55bfa75ef6 (diff)
downloadnetsurf-56bb9582b16dfd45bbd1665adaf87c6c5986aed3.tar.gz
netsurf-56bb9582b16dfd45bbd1665adaf87c6c5986aed3.tar.bz2
move set title, set url, start and stop throbber window operations to gui table
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gui.c6
-rw-r--r--gtk/scaffolding.h7
2 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gui.c b/gtk/gui.c
index c94b9c836..1905f20dc 100644
--- a/gtk/gui.c
+++ b/gtk/gui.c
@@ -1135,8 +1135,14 @@ bool path_add_part(char *path, int length, const char *newpart)
static struct gui_table nsgtk_gui_table = {
.poll = gui_poll,
.quit = gui_quit,
+
.window_create = gui_window_create,
.window_destroy = gui_window_destroy,
+
+ .window_set_title = gui_window_set_title,
+ .window_set_url = gui_window_set_url,
+ .window_start_throbber = gui_window_start_throbber,
+ .window_stop_throbber = gui_window_stop_throbber,
};
/**
diff --git a/gtk/scaffolding.h b/gtk/scaffolding.h
index 79e3fa0df..b1f11bbdf 100644
--- a/gtk/scaffolding.h
+++ b/gtk/scaffolding.h
@@ -177,4 +177,11 @@ gboolean nsgtk_window_url_changed(GtkWidget *, GdkEventKey *, gpointer);
nserror nsgtk_scaffolding_new_tab(struct gui_window *gw);
+/* core acessors */
+void gui_window_set_title(struct gui_window *g, const char *title);
+void gui_window_set_url(struct gui_window *g, const char *url);
+void gui_window_start_throbber(struct gui_window *g);
+void gui_window_stop_throbber(struct gui_window *g);
+
+
#endif /* NETSURF_GTK_SCAFFOLDING_H */