Oops, fix last commit.
authorAlexander Larsson <alexl@src.gnome.org>
Fri, 1 Feb 2008 11:30:37 +0000 (11:30 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Fri, 1 Feb 2008 11:30:37 +0000 (11:30 +0000)
svn path=/trunk/; revision=6438

gio/gappinfo.c
gio/gappinfo.h

index ff53c51..e5885e4 100644 (file)
@@ -24,6 +24,7 @@
 #include "gappinfo.h"
 #include "glibintl.h"
 #include <gioerror.h>
+#include <gfile.h>
 
 #include "gioalias.h"
 
@@ -544,7 +545,7 @@ g_app_info_should_show (GAppInfo *appinfo)
 gboolean
 g_app_info_launch_default_for_uri (const char *uri,
                                   GAppLaunchContext *launch_context,
-                                  GError *error)
+                                  GError **error)
 {
   GAppInfo *app_info;
   GFile *file;
@@ -561,7 +562,7 @@ g_app_info_launch_default_for_uri (const char *uri,
    * affect the uri which we don't want (for instance for a
    * mailto: uri).
    */
-  l.data = uri;
+  l.data = (char *)uri;
   l.next = l.prev = NULL;
   res = g_app_info_launch_uris (app_info, &l,
                                launch_context, error);
index 04ee9eb..b1872ba 100644 (file)
@@ -188,7 +188,7 @@ GAppInfo *g_app_info_get_default_for_uri_scheme  (const char  *uri_scheme);
 
 gboolean g_app_info_launch_default_for_uri (const char *uri,
                                            GAppLaunchContext *launch_context,
-                                           GError *error);
+                                           GError **error);
 
 /**
  * GAppLaunchContext: