mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +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;
|
||||
|
||||
if (warned)
|
||||
if (warned)
|
||||
return 1;
|
||||
|
||||
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",
|
||||
P_("Action group"),
|
||||
P_("The group of actions that the application exports"),
|
||||
G_TYPE_ACTION_GROUP,
|
||||
G_TYPE_ACTION_GROUP,
|
||||
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
/**
|
||||
@ -652,7 +652,7 @@ get_platform_data (GApplication *application)
|
||||
{
|
||||
GVariant *array;
|
||||
gchar **envp;
|
||||
|
||||
|
||||
envp = g_get_environ ();
|
||||
array = g_variant_new_bytestring_array ((const gchar **) envp, -1);
|
||||
g_strfreev (envp);
|
||||
@ -734,7 +734,7 @@ g_application_id_is_valid (const gchar *application_id)
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/* Public Constructor {{{1 */
|
||||
/**
|
||||
* g_application_new:
|
||||
@ -1039,7 +1039,7 @@ g_application_register (GApplication *application,
|
||||
* Increases the use count of @application.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* 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
|
||||
* strings, or %NULL if they were not sent
|
||||
*
|
||||
*
|
||||
* Since: 2.28
|
||||
**/
|
||||
const gchar * const *
|
||||
@ -405,7 +405,7 @@ g_application_command_line_get_environ (GApplicationCommandLine *cmdline)
|
||||
* long as @cmdline exists.
|
||||
*
|
||||
* Returns: the value of the variable, or %NULL if unset or unsent
|
||||
*
|
||||
*
|
||||
* Since: 2.28
|
||||
**/
|
||||
const gchar *
|
||||
|
@ -537,7 +537,7 @@ g_application_impl_action_signal (GDBusConnection *connection,
|
||||
|
||||
g_variant_get (parameters, "(&sv)", &name, &state);
|
||||
info = g_hash_table_lookup (impl->actions, name);
|
||||
|
||||
|
||||
if (info && info->state &&
|
||||
g_variant_is_of_type (state, g_variant_get_type (info->state)) &&
|
||||
!g_variant_equal (state, info->state))
|
||||
|
@ -374,33 +374,33 @@ reset_all_keys (GSettings *settings)
|
||||
|
||||
static void
|
||||
gsettings_reset_recursively (GSettings *settings,
|
||||
const gchar *key,
|
||||
const gchar *value)
|
||||
const gchar *key,
|
||||
const gchar *value)
|
||||
{
|
||||
gchar **children;
|
||||
gint i;
|
||||
|
||||
g_settings_delay (settings);
|
||||
|
||||
|
||||
reset_all_keys (settings);
|
||||
children = g_settings_list_children (settings);
|
||||
for (i = 0; children[i]; i++)
|
||||
{
|
||||
GSettings *child;
|
||||
gchar *schema;
|
||||
|
||||
|
||||
child = g_settings_get_child (settings, children[i]);
|
||||
g_object_get (child, "schema", &schema, NULL);
|
||||
|
||||
|
||||
if (is_schema (schema))
|
||||
reset_all_keys (child);
|
||||
|
||||
reset_all_keys (child);
|
||||
|
||||
g_object_unref (child);
|
||||
g_free (schema);
|
||||
}
|
||||
|
||||
|
||||
g_strfreev (children);
|
||||
|
||||
|
||||
g_settings_apply (settings);
|
||||
g_settings_sync ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user