summaryrefslogtreecommitdiff
path: root/gtk/gui.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-26 21:51:47 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-26 21:51:47 +0100
commit68938664411ac2ee82e39e11fe855a6cd1b32c7c (patch)
treec6bf827cb37f7dfa947bea87644896d459e0a208 /gtk/gui.c
parent8fd04922cc25bfd2205881fc5d4220c84b2c6fe0 (diff)
downloadnetsurf-68938664411ac2ee82e39e11fe855a6cd1b32c7c.tar.gz
netsurf-68938664411ac2ee82e39e11fe855a6cd1b32c7c.tar.bz2
update gtk to stop using depricated warn_user API
Diffstat (limited to 'gtk/gui.c')
-rw-r--r--gtk/gui.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/gtk/gui.c b/gtk/gui.c
index c17c128e2..e705918bc 100644
--- a/gtk/gui.c
+++ b/gtk/gui.c
@@ -52,6 +52,7 @@
#include "desktop/netsurf.h"
#include "gtk/compat.h"
+#include "gtk/warn.h"
#include "gtk/completion.h"
#include "gtk/cookies.h"
#include "gtk/download.h"
@@ -474,21 +475,14 @@ static nserror gui_launch_url(struct nsurl *url)
}
if (error) {
- warn_user(messages_get("URIOpenError"), error->message);
+ nsgtk_warning(messages_get("URIOpenError"), error->message);
g_error_free(error);
}
return NSERROR_NO_FETCH_HANDLER;
}
-/**
- * Warn the user of an event.
- *
- * \param[in] warning A warning looked up in the message translation table
- * \param[in] detail Additional text to be displayed or NULL.
- * \return NSERROR_OK on success or error code if there was a
- * faliure displaying the message to the user.
- */
-static nserror nsgtk_warning(const char *warning, const char *detail)
+/* exported function documented in gtk/warn.h */
+nserror nsgtk_warning(const char *warning, const char *detail)
{
char buf[300]; /* 300 is the size the RISC OS GUI uses */
static GtkWindow *nsgtk_warning_window;