summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2008-12-06 08:57:32 +0000
committerjoncruz <joncruz@users.sourceforge.net>2008-12-06 08:57:32 +0000
commitcc6cbe98e8bca6c4022c4e983df480035014d371 (patch)
tree8c60c6444cf131e69a80da53570f3c28a382db2e /src/widgets
parentsimplify interpolating the curve in pencil-context. (diff)
downloadinkscape-cc6cbe98e8bca6c4022c4e983df480035014d371.tar.gz
inkscape-cc6cbe98e8bca6c4022c4e983df480035014d371.zip
Warning cleanup.
(bzr r6961)
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/desktop-widget.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp
index 1fdf1fceb..c80c1b4e7 100644
--- a/src/widgets/desktop-widget.cpp
+++ b/src/widgets/desktop-widget.cpp
@@ -137,11 +137,11 @@ public:
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();
@@ -149,9 +149,9 @@ private:
private:
CMSPrefWatcher &_pw;
};
-
+
DisplayProfileWatcher _dpw;
-
+
class SoftProofWatcher : public Inkscape::Preferences::Observer {
public:
SoftProofWatcher(CMSPrefWatcher &pw) : Observer("/options/softproof"), _pw(pw) {}
@@ -161,15 +161,15 @@ private:
private:
CMSPrefWatcher &_pw;
};
-
+
SoftProofWatcher _spw;
-
+
void _refreshAll();
void _setCmsSensitive(bool value);
std::list<SPDesktopWidget*> _widget_list;
EgeColorProfTracker *_tracker;
-
+
friend class DisplayProfileWatcher;
friend class SoftproofWatcher;
};
@@ -289,7 +289,7 @@ sp_desktop_widget_init (SPDesktopWidget *dtw)
GtkWidget *hbox;
GtkWidget *eventbox;
GtkStyle *style;
-
+
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
new (&dtw->modified_connection) sigc::connection();