mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
gosxappinfo: fix typo in g_osx_app_info_launch_internal
Correct error domain is G_IO_ERROR. https://bugzilla.gnome.org/show_bug.cgi?id=734946
This commit is contained in:
parent
0c4dd4a802
commit
643c722f1e
@ -24,6 +24,7 @@
|
||||
#include "gcontenttype.h"
|
||||
#include "gfile.h"
|
||||
#include "gfileicon.h"
|
||||
#include "gioerror.h"
|
||||
|
||||
#import <CoreFoundation/CoreFoundation.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
@ -452,7 +453,7 @@ g_osx_app_info_launch_internal (GAppInfo *appinfo,
|
||||
if ((ret = LSOpenFromURLSpec (urlspec, NULL)))
|
||||
{
|
||||
/* TODO: Better error codes */
|
||||
g_set_error (error, G_IO_ERR, G_IO_ERROR_FAILED,
|
||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||
"Opening application failed with code %d", ret);
|
||||
success = FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user