[frogr/macosx: 3/4] Fixing Open URL issue in MacOSX
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr/macosx: 3/4] Fixing Open URL issue in MacOSX
- Date: Tue, 22 Feb 2011 01:56:51 +0000 (UTC)
commit 71614935436fbb0674284fce766a1217a0ce5cb1
Author: Mario Sanchez Prada <msanchez igalia com>
Date: Sun Feb 20 00:27:51 2011 +0100
Fixing Open URL issue in MacOSX
src/frogr-util.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/frogr-util.c b/src/frogr-util.c
index 8984ea9..3333990 100644
--- a/src/frogr-util.c
+++ b/src/frogr-util.c
@@ -36,9 +36,12 @@ frogr_util_open_url_in_browser (const gchar *url)
gchar *command = NULL;
GError *error = NULL;
- /* FIXME: Replace this lines with gtk_show_uri() when we found the
- reason behind frogr hanging after calling twice that function */
+#ifdef MAC_INTEGRATION
+ command = g_strdup_printf ("open %s", url);
+#else
command = g_strdup_printf ("gnome-open %s", url);
+#endif
+
g_spawn_command_line_async (command, &error);
g_free (command);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]