[tasks/gnome3: 9/17] Remove gtk_show_uri check



commit e3e83c1e99ace60db45e8e0e9f30abe21209cdad
Author: Ross Burton <ross linux intel com>
Date:   Wed Apr 27 19:37:42 2011 +0100

    Remove gtk_show_uri check

 configure.ac   |    4 ----
 src/gtk/main.c |   18 ------------------
 2 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 13849f7..18ee937 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,10 +72,6 @@ CFLAGS=$GTK_CFLAGS
 AC_CHECK_DECLS([GDK_WINDOW_TYPE_HINT_COMBO, gtk_style_lookup_color],
                [], [], [#include <gtk/gtk.h>])
 
-# This was introduced in GTK+ 2.14
-AC_CHECK_DECLS([gtk_show_uri],
-               [], [], [#include <gtk/gtk.h>])
-
 # This was introduced in GTK+ 2.16
 AC_CHECK_DECLS([gtk_entry_set_icon_from_icon_name],
                [], [], [#include <gtk/gtk.h>])
diff --git a/src/gtk/main.c b/src/gtk/main.c
index 5806c94..1a02755 100644
--- a/src/gtk/main.c
+++ b/src/gtk/main.c
@@ -532,7 +532,6 @@ cli_new_loaded (KotoTaskStore *store, gpointer user_data)
 void
 koto_platform_open_url (const char *url)
 {
-#if HAVE_DECL_GTK_SHOW_URI
   GError *error = NULL;
 
   /* TODO: pass screen and timestamp */
@@ -540,23 +539,6 @@ koto_platform_open_url (const char *url)
     g_warning ("Cannot open URL: %s", error->message);
     g_error_free (error);
   }
-#else
-  char cmd[1024];
-
-  g_snprintf (cmd, sizeof (cmd), "gnome-open \"%s\"", url);
-  if (g_spawn_command_line_async (cmd, NULL))
-    return;
-
-  g_snprintf (cmd, sizeof (cmd), "xdg-open \"%s\"", url);
-  if (g_spawn_command_line_async (cmd, NULL))
-    return;
-
-  g_snprintf (cmd, sizeof (cmd), "firefox \"%s\"", url);
-  if (g_spawn_command_line_async (cmd, NULL))
-    return;
-
-  g_warning ("Cannot start gnome-open, xdg-open, or firefox");
-#endif
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]