]> git.street.me.uk Git - andy/viking.git/blobdiff - src/util.c
[QA] Replace some coef with more explicit function
[andy/viking.git] / src / util.c
index fefef829c11f750bd200216a85b462d08c20705b..fe23e8461c860f3caa12683487cc5017b9e9d90f 100644 (file)
@@ -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);
+}