aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/webbrowser.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-12-23 13:34:02 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-12-23 13:34:02 +0000
commit124544cc3904afb4dda4b1fca723515425c63ba2 (patch)
treebcb60fe4091a71a42ca07578d5626f863c924a06 /gtk/webbrowser.c
parent5474c91d650048a60033b342ca586bf253259388 (diff)
show a simple_dialog, if we use glib 1.x and trying to open a webbrowser (not implemented). This will prevent another compiler warning.
svn path=/trunk/; revision=12821
Diffstat (limited to 'gtk/webbrowser.c')
-rw-r--r--gtk/webbrowser.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/webbrowser.c b/gtk/webbrowser.c
index 7483e1dc09..f3d914647c 100644
--- a/gtk/webbrowser.c
+++ b/gtk/webbrowser.c
@@ -192,6 +192,12 @@ browser_open_url (const gchar *url)
/* GLIB version 1.x doesn't support the functions used above,
so simply do nothing for now, to be able to compile.
XXX - has to be improved */
+ simple_dialog(ESD_TYPE_INFO, ESD_BTN_OK,
+ PRIMARY_TEXT_START "Web browser access not implemented." PRIMARY_TEXT_END
+ "\n\nThis Ethereal version (using the GLib 1.x toolkit) cannot access web browsers. "
+ "\n\nYou may try to open the following URL in your web browser: \n\n"
+ "%s",
+ url);
return FALSE;
#endif
}