XrdSettings

XrdSettings

Functions

Includes

#include <xrdesktop.h>

Description

Functions

xrd_settings_connect_and_apply ()

void
xrd_settings_connect_and_apply (GCallback callback,
                                gchar *key,
                                gpointer data);

Use this convenience function when you don't want to initially read a config value from the settings, and then connect a callback to when the value changes.

Instead write only one callback that handles initially setting the value, as well as any updates to this value.

Parameters

callback

A function that will be called with the given key and data 1) immediately and 2) when the value for the given key is updated.

 

key

The settings key

 

data

A pointer that will be passed to the update callback.

 

xrd_settings_destroy_instance ()

void
xrd_settings_destroy_instance (void);

xrd_settings_get_instance ()

GSettings *
xrd_settings_get_instance (void);

xrd_settings_update_double_val ()

void
xrd_settings_update_double_val (GSettings *settings,
                                gchar *key,
                                double *val);

xrd_settings_update_int_val ()

void
xrd_settings_update_int_val (GSettings *settings,
                             gchar *key,
                             int *val);

Types and Values