mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-26 19:08:57 +02:00
add get_permission API to GSettingsBackend
implement it in the various in-tree backends also, lots of whitespace changes to realign the vtable members
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include "gmemorysettingsbackend.h"
|
||||
#include "gsimplepermission.h"
|
||||
#include "gsettingsbackend.h"
|
||||
#include "giomodule.h"
|
||||
|
||||
@@ -118,6 +119,13 @@ g_memory_settings_backend_get_writable (GSettingsBackend *backend,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static GPermission *
|
||||
g_memory_settings_backend_get_permission (GSettingsBackend *backend,
|
||||
const gchar *path)
|
||||
{
|
||||
return g_simple_permission_new (TRUE);
|
||||
}
|
||||
|
||||
static void
|
||||
g_memory_settings_backend_finalize (GObject *object)
|
||||
{
|
||||
@@ -146,5 +154,6 @@ g_memory_settings_backend_class_init (GMemorySettingsBackendClass *class)
|
||||
backend_class->write = g_memory_settings_backend_write;
|
||||
backend_class->write_keys = g_memory_settings_backend_write_keys;
|
||||
backend_class->get_writable = g_memory_settings_backend_get_writable;
|
||||
backend_class->get_permission = g_memory_settings_backend_get_permission;
|
||||
object_class->finalize = g_memory_settings_backend_finalize;
|
||||
}
|
||||
|
Reference in New Issue
Block a user