diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-06-24 17:45:30 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-06-24 17:45:30 +0000 |
commit | 84ea1ec5f6088dabd4717e24cc111625c4e4e1bb (patch) | |
tree | b345772bc06edd000dcf077778fcbdaeb34e6d09 /gtk/webbrowser.c | |
parent | 48643ea768921e3b29c12457aee12c29b373b246 (diff) |
As current implementation won't compile with GLib 1.x,
as a temporary solution, simply do nothing in this case.
Has to be improved later
svn path=/trunk/; revision=11228
Diffstat (limited to 'gtk/webbrowser.c')
-rw-r--r-- | gtk/webbrowser.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk/webbrowser.c b/gtk/webbrowser.c index bad106a388..98e08526a9 100644 --- a/gtk/webbrowser.c +++ b/gtk/webbrowser.c @@ -88,7 +88,8 @@ browser_open_url (const gchar *url) CFRelease(url_CFString); return (status == 0); -#else +#elif (GLIB_MAJOR_VERSION >= 2) + GError *error = NULL; gchar *browser; @@ -100,6 +101,7 @@ browser_open_url (const gchar *url) g_return_val_if_fail (url != NULL, FALSE); /* browser = gimp_gimprc_query ("web-browser");*/ + /* XXX - use Preference setting for this */ browser = g_strdup("mozilla %s"); if (browser == NULL || ! strlen (browser)) @@ -148,6 +150,11 @@ browser_open_url (const gchar *url) return retval; +#else + /* 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 */ + return FALSE; #endif } |