diff options
author | Robby Workman <rw@rlworkman.net> | 2010-05-13 00:38:52 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-13 00:38:52 +0200 |
commit | 3320e21a95b586a02c484a3545cd28132e7d1199 (patch) | |
tree | 7851d0eea1b471d7400f0a27a7f0173fefbc6415 /office/abiword/patches/url_show.patch | |
parent | 4f9f68bc7df2a473fc694ab3e36618f53be78770 (diff) | |
download | slackbuilds-3320e21a95b586a02c484a3545cd28132e7d1199.tar.gz |
office/abiword: Updated for version 2.8.2
Diffstat (limited to 'office/abiword/patches/url_show.patch')
-rw-r--r-- | office/abiword/patches/url_show.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/office/abiword/patches/url_show.patch b/office/abiword/patches/url_show.patch new file mode 100644 index 0000000000..78e4b17ce9 --- /dev/null +++ b/office/abiword/patches/url_show.patch @@ -0,0 +1,50 @@ +--- abiword-2.8.1/src/af/util/xp/ut_go_file.cpp 2009-10-30 23:30:24.005096842 -0700 ++++ abiword-2.8.1/src/af/util/xp/ut_go_file.cpp 2009-10-31 09:32:24.028095222 -0700 +@@ -1665,12 +1665,17 @@ + #else + GError *err = NULL; + #ifdef HAVE_GTK214 +- gtk_show_uri (NULL, url, GDK_CURRENT_TIME, &err); +- return err; +-#elif defined(WITH_GNOMEVFS) +- gnome_vfs_url_show (url); +- return err; +-#else ++ if(gtk_show_uri (NULL, url, GDK_CURRENT_TIME, &err)) ++ { ++ return err; ++ } ++#endif ++#if defined(WITH_GNOMEVFS) ++ if(gnome_vfs_url_show (url)) ++ { ++ return err; ++ } ++#endif + gchar *browser = NULL; + gchar *clean_url = NULL; + +@@ -1679,6 +1684,7 @@ + + if (browser == NULL) { + static char const * const browsers[] = { ++ "xdg-open", /* freedesktop.org */ + "sensible-browser", /* debian */ + "epiphany", /* primary gnome */ + "galeon", /* secondary gnome */ +@@ -1688,6 +1694,7 @@ + "mozilla", + "netscape", + "konqueror", ++ "dillo", + "xterm -e w3m", + "xterm -e lynx", + "xterm -e links" +@@ -1735,7 +1742,6 @@ + g_free (clean_url); + return err; + #endif +-#endif + } + + /** |