summaryrefslogtreecommitdiff
path: root/windows
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 /windows
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 'windows')
-rw-r--r--windows/gui.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/windows/gui.c b/windows/gui.c
index a01b6c4df..6f0dfd874 100644
--- a/windows/gui.c
+++ b/windows/gui.c
@@ -1422,7 +1422,7 @@ static void gui_window_destroy(struct gui_window *w)
* set window title
* \param title the [url]
*/
-void gui_window_set_title(struct gui_window *w, const char *title)
+static void gui_window_set_title(struct gui_window *w, const char *title)
{
if (w == NULL)
return;
@@ -1654,7 +1654,7 @@ void gui_window_hide_pointer(struct gui_window *w)
{
}
-void gui_window_set_url(struct gui_window *w, const char *url)
+static void gui_window_set_url(struct gui_window *w, const char *url)
{
if (w == NULL)
return;
@@ -1662,7 +1662,7 @@ void gui_window_set_url(struct gui_window *w, const char *url)
}
-void gui_window_start_throbber(struct gui_window *w)
+static void gui_window_start_throbber(struct gui_window *w)
{
if (w == NULL)
return;
@@ -1687,7 +1687,7 @@ void gui_window_start_throbber(struct gui_window *w)
Animate_Play(w->throbber, 0, -1, -1);
}
-void gui_window_stop_throbber(struct gui_window *w)
+static void gui_window_stop_throbber(struct gui_window *w)
{
if (w == NULL)
return;
@@ -1886,8 +1886,14 @@ nsws_create_main_class(HINSTANCE hinstance) {
static struct gui_table gui_table = {
.poll = gui_poll,
+
.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,
};
struct gui_table *win32_gui_table = &gui_table;