summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 40244a1)
raw | patch | inline | side by side (parent: 40244a1)
author | joncruz <joncruz@users.sourceforge.net> | |
Sat, 6 Dec 2008 08:57:32 +0000 (08:57 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sat, 6 Dec 2008 08:57:32 +0000 (08:57 +0000) |
src/widgets/desktop-widget.cpp | patch | blob | history |
index 1fdf1fceb632db1f942b659f03cb826e5d5fcb4b..c80c1b4e7c10eaf2b79a5eac7a6b349806292bc1 100644 (file)
private:
static void hook(EgeColorProfTracker *tracker, gint a, gint b, CMSPrefWatcher *watcher);
-
+
class DisplayProfileWatcher : public Inkscape::Preferences::Observer {
public:
DisplayProfileWatcher(CMSPrefWatcher &pw) : Observer("/options/displayprofile"), _pw(pw) {}
- virtual void notify(Inkscape::Preferences::Entry const &val) {
+ virtual void notify(Inkscape::Preferences::Entry const &/*val*/) {
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
_pw._setCmsSensitive(!prefs->getString("/options/displayprofile/uri").empty());
_pw._refreshAll();
private:
CMSPrefWatcher &_pw;
};
-
+
DisplayProfileWatcher _dpw;
-
+
class SoftProofWatcher : public Inkscape::Preferences::Observer {
public:
SoftProofWatcher(CMSPrefWatcher &pw) : Observer("/options/softproof"), _pw(pw) {}
private:
CMSPrefWatcher &_pw;
};
-
+
SoftProofWatcher _spw;
-
+
void _refreshAll();
void _setCmsSensitive(bool value);
std::list<SPDesktopWidget*> _widget_list;
EgeColorProfTracker *_tracker;
-
+
friend class DisplayProfileWatcher;
friend class SoftproofWatcher;
};
GtkWidget *hbox;
GtkWidget *eventbox;
GtkStyle *style;
-
+
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
new (&dtw->modified_connection) sigc::connection();