summaryrefslogtreecommitdiff
path: root/riscos/gui/button_bar.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-26 15:16:33 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-26 15:16:33 +0100
commit8fd04922cc25bfd2205881fc5d4220c84b2c6fe0 (patch)
tree807795da126c6d1a7617007016c8cd05ba90e4a3 /riscos/gui/button_bar.c
parent6a36d4ec2b6fd8ac52da2c3883b4776aec14ba2d (diff)
downloadnetsurf-8fd04922cc25bfd2205881fc5d4220c84b2c6fe0.tar.gz
netsurf-8fd04922cc25bfd2205881fc5d4220c84b2c6fe0.tar.bz2
update RISC OS frontend to not use the depricated warn_user API
Diffstat (limited to 'riscos/gui/button_bar.c')
-rw-r--r--riscos/gui/button_bar.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/riscos/gui/button_bar.c b/riscos/gui/button_bar.c
index e04bfc270..6f8920cfc 100644
--- a/riscos/gui/button_bar.c
+++ b/riscos/gui/button_bar.c
@@ -540,7 +540,7 @@ bool ro_gui_button_bar_icon_update(struct button_bar *button_bar)
error = xwimp_create_icon(&icon, &button->icon);
if (error) {
LOG("xwimp_create_icon: 0x%x: %s", error->errnum, error->errmess);
- warn_user("WimpError", error->errmess);
+ ro_warn_user("WimpError", error->errmess);
button->icon = -1;
return false;
}
@@ -550,7 +550,7 @@ bool ro_gui_button_bar_icon_update(struct button_bar *button_bar)
button->icon);
if (error != NULL) {
LOG("xwimp_delete_icon: 0x%x: %s", error->errnum, error->errmess);
- warn_user("WimpError", error->errmess);
+ ro_warn_user("WimpError", error->errmess);
return false;
}
@@ -600,7 +600,7 @@ bool ro_gui_button_bar_icon_resize(struct button_bar *button_bar)
button->y_size);
if (error != NULL) {
LOG("xwimp_resize_icon: 0x%x: %s", error->errnum, error->errmess);
- warn_user("WimpError", error->errmess);
+ ro_warn_user("WimpError", error->errmess);
button->icon = -1;
return false;
}
@@ -872,7 +872,7 @@ void ro_gui_button_bar_drag_end(wimp_dragged *drag, void *data)
error = xwimp_get_pointer_info(&pointer);
if (error) {
LOG("xwimp_get_pointer_info: 0x%x: %s", error->errnum, error->errmess);
- warn_user("WimpError", error->errmess);
+ ro_warn_user("WimpError", error->errmess);
return;
}
@@ -882,7 +882,7 @@ void ro_gui_button_bar_drag_end(wimp_dragged *drag, void *data)
error = xwimp_get_window_state(&state);
if (error) {
LOG("xwimp_get_window_state: 0x%x: %s", error->errnum, error->errmess);
- warn_user("WimpError", error->errmess);
+ ro_warn_user("WimpError", error->errmess);
return;
}
@@ -1070,7 +1070,7 @@ char *ro_gui_button_bar_get_config(struct button_bar *button_bar)
config = malloc(size);
if (config == NULL) {
LOG("No memory for malloc()");
- warn_user("NoMemory", 0);
+ ro_warn_user("NoMemory", 0);
return NULL;
}