mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
Whitespace fixes
This commit is contained in:
parent
0e63b57eea
commit
9793919d7b
@ -263,7 +263,7 @@ g_application_real_command_line (GApplication *application,
|
|||||||
{
|
{
|
||||||
static gboolean warned;
|
static gboolean warned;
|
||||||
|
|
||||||
if (warned)
|
if (warned)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
g_warning ("Your application claims to support custom command line "
|
g_warning ("Your application claims to support custom command line "
|
||||||
@ -566,7 +566,7 @@ g_application_class_init (GApplicationClass *class)
|
|||||||
g_param_spec_object ("action-group",
|
g_param_spec_object ("action-group",
|
||||||
P_("Action group"),
|
P_("Action group"),
|
||||||
P_("The group of actions that the application exports"),
|
P_("The group of actions that the application exports"),
|
||||||
G_TYPE_ACTION_GROUP,
|
G_TYPE_ACTION_GROUP,
|
||||||
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
|
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -652,7 +652,7 @@ get_platform_data (GApplication *application)
|
|||||||
{
|
{
|
||||||
GVariant *array;
|
GVariant *array;
|
||||||
gchar **envp;
|
gchar **envp;
|
||||||
|
|
||||||
envp = g_get_environ ();
|
envp = g_get_environ ();
|
||||||
array = g_variant_new_bytestring_array ((const gchar **) envp, -1);
|
array = g_variant_new_bytestring_array ((const gchar **) envp, -1);
|
||||||
g_strfreev (envp);
|
g_strfreev (envp);
|
||||||
@ -734,7 +734,7 @@ g_application_id_is_valid (const gchar *application_id)
|
|||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Public Constructor {{{1 */
|
/* Public Constructor {{{1 */
|
||||||
/**
|
/**
|
||||||
* g_application_new:
|
* g_application_new:
|
||||||
@ -1039,7 +1039,7 @@ g_application_register (GApplication *application,
|
|||||||
* Increases the use count of @application.
|
* Increases the use count of @application.
|
||||||
*
|
*
|
||||||
* Use this function to indicate that the application has a reason to
|
* Use this function to indicate that the application has a reason to
|
||||||
* continue to run. For example, g_application_hold() is called by GTK+
|
* continue to run. For example, g_application_hold() is called by GTK+
|
||||||
* when a toplevel window is on the screen.
|
* when a toplevel window is on the screen.
|
||||||
*
|
*
|
||||||
* To cancel the hold, call g_application_release().
|
* To cancel the hold, call g_application_release().
|
||||||
|
@ -378,7 +378,7 @@ g_application_command_line_get_cwd (GApplicationCommandLine *cmdline)
|
|||||||
*
|
*
|
||||||
* Returns: (array zero-terminated=1) (transfer none): the environment
|
* Returns: (array zero-terminated=1) (transfer none): the environment
|
||||||
* strings, or %NULL if they were not sent
|
* strings, or %NULL if they were not sent
|
||||||
*
|
*
|
||||||
* Since: 2.28
|
* Since: 2.28
|
||||||
**/
|
**/
|
||||||
const gchar * const *
|
const gchar * const *
|
||||||
@ -405,7 +405,7 @@ g_application_command_line_get_environ (GApplicationCommandLine *cmdline)
|
|||||||
* long as @cmdline exists.
|
* long as @cmdline exists.
|
||||||
*
|
*
|
||||||
* Returns: the value of the variable, or %NULL if unset or unsent
|
* Returns: the value of the variable, or %NULL if unset or unsent
|
||||||
*
|
*
|
||||||
* Since: 2.28
|
* Since: 2.28
|
||||||
**/
|
**/
|
||||||
const gchar *
|
const gchar *
|
||||||
|
@ -537,7 +537,7 @@ g_application_impl_action_signal (GDBusConnection *connection,
|
|||||||
|
|
||||||
g_variant_get (parameters, "(&sv)", &name, &state);
|
g_variant_get (parameters, "(&sv)", &name, &state);
|
||||||
info = g_hash_table_lookup (impl->actions, name);
|
info = g_hash_table_lookup (impl->actions, name);
|
||||||
|
|
||||||
if (info && info->state &&
|
if (info && info->state &&
|
||||||
g_variant_is_of_type (state, g_variant_get_type (info->state)) &&
|
g_variant_is_of_type (state, g_variant_get_type (info->state)) &&
|
||||||
!g_variant_equal (state, info->state))
|
!g_variant_equal (state, info->state))
|
||||||
|
@ -374,33 +374,33 @@ reset_all_keys (GSettings *settings)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
gsettings_reset_recursively (GSettings *settings,
|
gsettings_reset_recursively (GSettings *settings,
|
||||||
const gchar *key,
|
const gchar *key,
|
||||||
const gchar *value)
|
const gchar *value)
|
||||||
{
|
{
|
||||||
gchar **children;
|
gchar **children;
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
g_settings_delay (settings);
|
g_settings_delay (settings);
|
||||||
|
|
||||||
reset_all_keys (settings);
|
reset_all_keys (settings);
|
||||||
children = g_settings_list_children (settings);
|
children = g_settings_list_children (settings);
|
||||||
for (i = 0; children[i]; i++)
|
for (i = 0; children[i]; i++)
|
||||||
{
|
{
|
||||||
GSettings *child;
|
GSettings *child;
|
||||||
gchar *schema;
|
gchar *schema;
|
||||||
|
|
||||||
child = g_settings_get_child (settings, children[i]);
|
child = g_settings_get_child (settings, children[i]);
|
||||||
g_object_get (child, "schema", &schema, NULL);
|
g_object_get (child, "schema", &schema, NULL);
|
||||||
|
|
||||||
if (is_schema (schema))
|
if (is_schema (schema))
|
||||||
reset_all_keys (child);
|
reset_all_keys (child);
|
||||||
|
|
||||||
g_object_unref (child);
|
g_object_unref (child);
|
||||||
g_free (schema);
|
g_free (schema);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_strfreev (children);
|
g_strfreev (children);
|
||||||
|
|
||||||
g_settings_apply (settings);
|
g_settings_apply (settings);
|
||||||
g_settings_sync ();
|
g_settings_sync ();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user