summaryrefslogtreecommitdiffstats
path: root/src/preferences.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/preferences.h')
-rw-r--r--src/preferences.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/preferences.h b/src/preferences.h
index 86142d28b..4111db8ea 100644
--- a/src/preferences.h
+++ b/src/preferences.h
@@ -53,6 +53,8 @@ public:
* derive (e.g. GConf, flat XML file...)
*/
class Preferences {
+ class _ObserverData;
+
public:
// #############################
// ## inner class definitions ##
@@ -69,6 +71,7 @@ public:
*/
class Observer {
friend class Preferences;
+
public:
/**
@@ -102,7 +105,7 @@ public:
Glib::ustring const observed_path; ///< Path which the observer watches
private:
- void *_data; ///< additional data used by the implementation while the observer is active
+ _ObserverData *_data; ///< additional data used by the implementation while the observer is active
};
@@ -547,7 +550,7 @@ private:
// privilege escalation methods for PrefNodeObserver
static Entry const _create_pref_value(Glib::ustring const &, void const *ptr);
- static void *_get_pref_observer_data(Observer &o) { return o._data; }
+ static _ObserverData *_get_pref_observer_data(Observer &o) { return o._data; }
static Preferences *_instance;