Logo Search packages:      
Sourcecode: inkscape version File versions

Inkscape::Preferences::Observer::Observer ( Glib::ustring const &  path  ) 


Since each Observer is assigned to a single path, the base constructor takes this path as an argument. This prevents one from adding a single observer to multiple paths, but this is intentional to simplify the implementation of observers and notifications.

After you add the object with Preferences::addObserver(), you will receive notifications for everything below the attachment point. You can also specify a single preference as the watch point. For example, watching the directory "/foo" will give you notifications about "/foo/some_pref" as well as "/foo/some_dir/other_pref". Watching the preference "/options/some_group/some_option" will only generate notifications when this single preference changes.

path Preference path the observer should watch

Definition at line 382 of file preferences.cpp.


Generated by  Doxygen 1.6.0   Back to index