{
static gboolean warned;
- if (warned)
+ if (warned)
return 1;
g_warning ("Your application claims to support custom command line "
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));
/**
{
GVariant *array;
gchar **envp;
-
+
envp = g_get_environ ();
array = g_variant_new_bytestring_array ((const gchar **) envp, -1);
g_strfreev (envp);
return TRUE;
}
-
+
/* Public Constructor {{{1 */
/**
* g_application_new:
* 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().
*
* Returns: (array zero-terminated=1) (transfer none): the environment
* strings, or %NULL if they were not sent
- *
+ *
* Since: 2.28
**/
const gchar * const *
* long as @cmdline exists.
*
* Returns: the value of the variable, or %NULL if unset or unsent
- *
+ *
* Since: 2.28
**/
const gchar *
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))
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 ();
}