mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
Fix formatting issues
This commit is contained in:
parent
d23c781e7b
commit
2ad61ed0ee
@ -120,7 +120,7 @@ g_osx_app_info_dup (GAppInfo *appinfo)
|
|||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
g_osx_app_info_equal (GAppInfo *appinfo1,
|
g_osx_app_info_equal (GAppInfo *appinfo1,
|
||||||
GAppInfo *appinfo2)
|
GAppInfo *appinfo2)
|
||||||
{
|
{
|
||||||
const gchar *str1, *str2;
|
const gchar *str1, *str2;
|
||||||
|
|
||||||
@ -278,7 +278,7 @@ fill_urlspec_for_appinfo (LSLaunchURLSpec *urlspec,
|
|||||||
GList *uris,
|
GList *uris,
|
||||||
gboolean are_files)
|
gboolean are_files)
|
||||||
{
|
{
|
||||||
urlspec->appURL = (CFURLRef) [NSURL fileURLWithPath: [info->bundle bundlePath]];
|
urlspec->appURL = (CFURLRef) [NSURL fileURLWithPath:[info->bundle bundlePath]];
|
||||||
urlspec->itemURLs = create_url_list_from_glist (uris, are_files);
|
urlspec->itemURLs = create_url_list_from_glist (uris, are_files);
|
||||||
urlspec->launchFlags = kLSLaunchDefaults;
|
urlspec->launchFlags = kLSLaunchDefaults;
|
||||||
}
|
}
|
||||||
@ -288,7 +288,7 @@ clear_urlspec (LSLaunchURLSpec *urlspec)
|
|||||||
{
|
{
|
||||||
if (urlspec->itemURLs)
|
if (urlspec->itemURLs)
|
||||||
{
|
{
|
||||||
CFArrayRemoveAllValues ((CFMutableArrayRef)urlspec->itemURLs);
|
CFArrayRemoveAllValues ((CFMutableArrayRef) urlspec->itemURLs);
|
||||||
CFRelease (urlspec->itemURLs);
|
CFRelease (urlspec->itemURLs);
|
||||||
}
|
}
|
||||||
CFRelease (urlspec->appURL);
|
CFRelease (urlspec->appURL);
|
||||||
@ -452,7 +452,7 @@ g_osx_app_info_launch_internal (GAppInfo *appinfo,
|
|||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
GOsxAppInfo *info = G_OSX_APP_INFO (appinfo);
|
GOsxAppInfo *info = G_OSX_APP_INFO (appinfo);
|
||||||
LSLaunchURLSpec urlspec = {0};
|
LSLaunchURLSpec urlspec = { 0 };
|
||||||
gint ret, success = TRUE;
|
gint ret, success = TRUE;
|
||||||
|
|
||||||
g_return_val_if_fail (G_IS_OSX_APP_INFO (appinfo), FALSE);
|
g_return_val_if_fail (G_IS_OSX_APP_INFO (appinfo), FALSE);
|
||||||
@ -487,18 +487,18 @@ g_osx_app_info_supports_files (GAppInfo *appinfo)
|
|||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
g_osx_app_info_launch (GAppInfo *appinfo,
|
g_osx_app_info_launch (GAppInfo *appinfo,
|
||||||
GList *files,
|
GList *files,
|
||||||
GAppLaunchContext *launch_context,
|
GAppLaunchContext *launch_context,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
return g_osx_app_info_launch_internal (appinfo, files, TRUE, error);
|
return g_osx_app_info_launch_internal (appinfo, files, TRUE, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
g_osx_app_info_launch_uris (GAppInfo *appinfo,
|
g_osx_app_info_launch_uris (GAppInfo *appinfo,
|
||||||
GList *uris,
|
GList *uris,
|
||||||
GAppLaunchContext *launch_context,
|
GAppLaunchContext *launch_context,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
return g_osx_app_info_launch_internal (appinfo, uris, FALSE, error);
|
return g_osx_app_info_launch_internal (appinfo, uris, FALSE, error);
|
||||||
}
|
}
|
||||||
@ -578,8 +578,8 @@ g_osx_app_info_should_show (GAppInfo *appinfo)
|
|||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
g_osx_app_info_set_as_default_for_type (GAppInfo *appinfo,
|
g_osx_app_info_set_as_default_for_type (GAppInfo *appinfo,
|
||||||
const char *content_type,
|
const char *content_type,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -593,8 +593,8 @@ g_osx_app_info_get_supported_types (GAppInfo *appinfo)
|
|||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
g_osx_app_info_set_as_last_used_for_type (GAppInfo *appinfo,
|
g_osx_app_info_set_as_last_used_for_type (GAppInfo *appinfo,
|
||||||
const char *content_type,
|
const char *content_type,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
/* Not supported. */
|
/* Not supported. */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -42,7 +42,7 @@ test_launch_async (void)
|
|||||||
GAsyncResult *result = NULL;
|
GAsyncResult *result = NULL;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
app_info = g_app_info_get_default_for_uri_scheme("file");
|
app_info = g_app_info_get_default_for_uri_scheme ("file");
|
||||||
g_assert_nonnull (app_info);
|
g_assert_nonnull (app_info);
|
||||||
g_assert_true (G_IS_OSX_APP_INFO (app_info));
|
g_assert_true (G_IS_OSX_APP_INFO (app_info));
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ test_invalid_uri_scheme (void)
|
|||||||
{
|
{
|
||||||
GAppInfo *app_info;
|
GAppInfo *app_info;
|
||||||
|
|
||||||
app_info = g_app_info_get_default_for_uri_scheme("thisisnotanurlscheme");
|
app_info = g_app_info_get_default_for_uri_scheme ("thisisnotanurlscheme");
|
||||||
g_assert_null (app_info);
|
g_assert_null (app_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user