]> git.street.me.uk Git - andy/viking.git/blobdiff - src/util.c
Replace 'Add Track' tool with 'Create Route' tool.
[andy/viking.git] / src / util.c
index 2c761a551c92a2ba3b6dd4b20af501b3bd505e73..fe23e8461c860f3caa12683487cc5017b9e9d90f 100644 (file)
@@ -1,8 +1,8 @@
 /*
  *    Viking - GPS data editor
- *    Copyright (C) 2007 Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
+ *    Copyright (C) 2007, Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
  *    Based on:
- *    Copyright (C) 2003-2007 Leandro A. F. Pereira <leandro@linuxmag.com.br>
+ *    Copyright (C) 2003-2007, Leandro A. F. Pereira <leandro@linuxmag.com.br>
  *
  *    This program is free software; you can redistribute it and/or modify
  *    it under the terms of the GNU General Public License as published by
@@ -31,6 +31,7 @@
 #include "util.h"
 #include "dialog.h"
 
+#ifndef WINDOWS
 static gboolean spawn_command_line_async(const gchar * cmd,
                                          const gchar * arg)
 {
@@ -46,6 +47,7 @@ static gboolean spawn_command_line_async(const gchar * cmd,
  
   return status;
 }
+#endif
 
 void open_url(GtkWindow *parent, const gchar * url)
 {
@@ -57,6 +59,8 @@ void open_url(GtkWindow *parent, const gchar * url)
     "sensible-browser", "firefox", "epiphany",
     "iceweasel", "seamonkey", "galeon", "mozilla",
     "opera", "konqueror", "netscape", "links -g",
+    "chromium-browser", "chromium", "chrome",
+    "safari", "camino", "omniweb", "icab",
     NULL
   };
   gint i=0;
@@ -112,3 +116,12 @@ gchar *uri_escape(gchar *str)
   return(esc_str);
 }
 
+
+GList * str_array_to_glist(gchar* data[])
+{
+  GList *gl = NULL;
+  gpointer * p;
+  for (p = (gpointer)data; *p; p++)
+    gl = g_list_prepend(gl, *p);
+  return g_list_reverse(gl);
+}