mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 12:41:50 +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
|
||||
g_osx_app_info_equal (GAppInfo *appinfo1,
|
||||
GAppInfo *appinfo2)
|
||||
GAppInfo *appinfo2)
|
||||
{
|
||||
const gchar *str1, *str2;
|
||||
|
||||
@ -278,7 +278,7 @@ fill_urlspec_for_appinfo (LSLaunchURLSpec *urlspec,
|
||||
GList *uris,
|
||||
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->launchFlags = kLSLaunchDefaults;
|
||||
}
|
||||
@ -288,7 +288,7 @@ clear_urlspec (LSLaunchURLSpec *urlspec)
|
||||
{
|
||||
if (urlspec->itemURLs)
|
||||
{
|
||||
CFArrayRemoveAllValues ((CFMutableArrayRef)urlspec->itemURLs);
|
||||
CFArrayRemoveAllValues ((CFMutableArrayRef) urlspec->itemURLs);
|
||||
CFRelease (urlspec->itemURLs);
|
||||
}
|
||||
CFRelease (urlspec->appURL);
|
||||
@ -452,7 +452,7 @@ g_osx_app_info_launch_internal (GAppInfo *appinfo,
|
||||
GError **error)
|
||||
{
|
||||
GOsxAppInfo *info = G_OSX_APP_INFO (appinfo);
|
||||
LSLaunchURLSpec urlspec = {0};
|
||||
LSLaunchURLSpec urlspec = { 0 };
|
||||
gint ret, success = TRUE;
|
||||
|
||||
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
|
||||
g_osx_app_info_launch (GAppInfo *appinfo,
|
||||
GList *files,
|
||||
GAppLaunchContext *launch_context,
|
||||
GError **error)
|
||||
GList *files,
|
||||
GAppLaunchContext *launch_context,
|
||||
GError **error)
|
||||
{
|
||||
return g_osx_app_info_launch_internal (appinfo, files, TRUE, error);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
g_osx_app_info_launch_uris (GAppInfo *appinfo,
|
||||
GList *uris,
|
||||
GAppLaunchContext *launch_context,
|
||||
GError **error)
|
||||
GList *uris,
|
||||
GAppLaunchContext *launch_context,
|
||||
GError **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
|
||||
g_osx_app_info_set_as_default_for_type (GAppInfo *appinfo,
|
||||
const char *content_type,
|
||||
GError **error)
|
||||
const char *content_type,
|
||||
GError **error)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
@ -593,8 +593,8 @@ g_osx_app_info_get_supported_types (GAppInfo *appinfo)
|
||||
|
||||
static gboolean
|
||||
g_osx_app_info_set_as_last_used_for_type (GAppInfo *appinfo,
|
||||
const char *content_type,
|
||||
GError **error)
|
||||
const char *content_type,
|
||||
GError **error)
|
||||
{
|
||||
/* Not supported. */
|
||||
return FALSE;
|
||||
|
@ -42,7 +42,7 @@ test_launch_async (void)
|
||||
GAsyncResult *result = 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_true (G_IS_OSX_APP_INFO (app_info));
|
||||
|
||||
@ -70,7 +70,7 @@ test_invalid_uri_scheme (void)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user