Gio.Settings.get_flags

### Method

# Gio Settingsget_flags

since: 2.26

#### Declaration [src]

    guint
    g_settings_get_flags (
      GSettings* settings,
      const gchar* key
    )

#### Description [src]

Gets the value that is stored in `settings` for `key` and converts it to the flags value that it represents.

In order to use this function the type of the value must be an array of strings and it must be marked in the schema file as a flags type.

It is a programmer error to give a `key` that isn’t contained in the schema for `settings` or is not marked as a flags type.

If the value stored in the configuration database is not a valid value for the flags type then this function will return the default value.

Available since: 2.26

#### Parameters

`key`

  Type: `const gchar*`

  The key to get the value for.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `guint`

The flags value.