#include "flutter/shell/platform/linux/fl_settings.h"
Go to the source code of this file.
Functions | |
G_BEGIN_DECLS | G_DECLARE_FINAL_TYPE (FlSettingsPortal, fl_settings_portal, FL, SETTINGS_PORTAL, GObject) |
FlSettingsPortal * | fl_settings_portal_new () |
FlSettingsPortal * | fl_settings_portal_new_with_values (GVariantDict *values) |
gboolean | fl_settings_portal_start (FlSettingsPortal *portal, GError **error) |
FlSettingsPortal* fl_settings_portal_new | ( | ) |
FlSettingsPortal: #FlSettingsPortal reads settings from the XDG desktop portal. fl_settings_portal_new:
Creates a new settings portal instance.
Returns: a new #FlSettingsPortal.
Definition at line 263 of file fl_settings_portal.cc.
References fl_settings_portal_new_with_values().
Referenced by fl_settings_new().
FlSettingsPortal* fl_settings_portal_new_with_values | ( | GVariantDict * | values | ) |
fl_settings_portal_new_with_values: @values: (nullable): a #GVariantDict.
Creates a new settings portal instance with initial values for testing.
Returns: a new #FlSettingsPortal.
Definition at line 268 of file fl_settings_portal.cc.
Referenced by fl_settings_portal_new(), and TEST().
gboolean fl_settings_portal_start | ( | FlSettingsPortal * | portal, |
GError ** | error | ||
) |
fl_settings_portal_start: @portal: an #FlSettingsPortal. @error: (allow-none): #GError location to store the error occurring, or NULL
Reads the current settings and starts monitoring for changes in the desktop portal settings.
Returns: TRUE on success, or FALSE if the portal is not available.
Definition at line 276 of file fl_settings_portal.cc.
References error, kAllSettings, kPortalName, kPortalPath, kPortalSettings, set_value(), settings_portal_changed_cb(), settings_portal_read(), and value.
Referenced by fl_settings_new().
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE | ( | FlSettingsPortal | , |
fl_settings_portal | , | ||
FL | , | ||
SETTINGS_PORTAL | , | ||
GObject | |||
) |