|
Packit |
ae235b |
|
|
Packit |
ae235b |
<html>
|
|
Packit |
ae235b |
<head>
|
|
Packit |
ae235b |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
Packit |
ae235b |
<title>Change sets: GIO Reference Manual</title>
|
|
Packit |
ae235b |
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
|
|
Packit |
ae235b |
<link rel="home" href="index.html" title="GIO Reference Manual">
|
|
Packit |
ae235b |
<link rel="up" href="ch34.html" title="Migrating from GConf to GSettings">
|
|
Packit |
ae235b |
<link rel="prev" href="ch34s04.html" title="Change notification">
|
|
Packit |
ae235b |
<link rel="next" href="ch34s06.html" title="Schema conversion">
|
|
Packit |
ae235b |
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
|
|
Packit |
ae235b |
<link rel="stylesheet" href="style.css" type="text/css">
|
|
Packit |
ae235b |
</head>
|
|
Packit |
ae235b |
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
Change sets
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
GConf has a a concept of a set of changes which can be applied or reverted
|
|
Packit |
ae235b |
at once: GConfChangeSet (GConf doesn't actually apply changes atomically,
|
|
Packit |
ae235b |
which is one of its shortcomings).
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
Instead of a separate object to represent a change set, GSettings has a
|
|
Packit |
ae235b |
'delayed-apply' mode, which can be turned on for a GSettings object by
|
|
Packit |
ae235b |
calling g_settings_delay() . In this mode, changes done to the GSettings
|
|
Packit |
ae235b |
object are not applied - they are still visible when calling g_settings_get()
|
|
Packit |
ae235b |
on the same object, but not to other GSettings instances
|
|
Packit |
ae235b |
or even other processes.
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
To apply the pending changes all at once (GSettings does
|
|
Packit |
ae235b |
atomicity here), call g_settings_apply() . To revert the pending changes,
|
|
Packit |
ae235b |
call g_settings_revert() or just drop the reference to the GSettings object.
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
Generated by GTK-Doc V1.27
|
|
Packit |
ae235b |
</body>
|
|
Packit |
ae235b |
</html>
|