summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-12-12 01:23:06 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-12-12 01:23:06 +0000
commitfb204c3dcf9d5fabb5dae4bd25365302b9909050 (patch)
tree2c3cbc22c96726c89211563d9b072cde604e9510 /libs
parent76a26929e146c5c271c15d02d06d4c059b5e754c (diff)
if we're not going to use pixfbuf (images) for faders, then lets not create a whole bunch of them unnecessarily (for now, at least)
git-svn-id: svn://localhost/ardour2/branches/3.0@13643 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/gtkmm2ext/gtkmm2ext/pixfader.h2
-rw-r--r--libs/gtkmm2ext/pixfader.cc4
2 files changed, 6 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/pixfader.h b/libs/gtkmm2ext/gtkmm2ext/pixfader.h
index 8ef740b8e7..d105bbb2d1 100644
--- a/libs/gtkmm2ext/gtkmm2ext/pixfader.h
+++ b/libs/gtkmm2ext/gtkmm2ext/pixfader.h
@@ -77,9 +77,11 @@ class PixFader : public Gtk::DrawingArea
STATES
};
+#if 0
Cairo::RefPtr<Cairo::Context> belt_context[STATES];
Cairo::RefPtr<Cairo::ImageSurface> belt_surface[STATES];
Glib::RefPtr<Gdk::Pixbuf> pixbuf[STATES];
+#endif
int span, girth;
int _orien;
diff --git a/libs/gtkmm2ext/pixfader.cc b/libs/gtkmm2ext/pixfader.cc
index e9d053a8bd..6099671fd2 100644
--- a/libs/gtkmm2ext/pixfader.cc
+++ b/libs/gtkmm2ext/pixfader.cc
@@ -42,8 +42,10 @@ PixFader::PixFader (
: adjustment (adj),
_orien(orientation)
{
+#if 0
pixbuf[NORMAL] = belt;
pixbuf[DESENSITISED] = belt_desensitised;
+#endif
pattern = 0;
shine_pattern = 0;
@@ -69,6 +71,7 @@ PixFader::PixFader (
adjustment.signal_value_changed().connect (mem_fun (*this, &PixFader::adjustment_changed));
adjustment.signal_changed().connect (mem_fun (*this, &PixFader::adjustment_changed));
+#if 0
for (int i = 0; i < STATES; ++i) {
Cairo::Format format;
@@ -83,6 +86,7 @@ PixFader::PixFader (
Gdk::Cairo::set_source_pixbuf (belt_context[i], pixbuf[i], 0.0, 0.0);
belt_context[i]->paint();
}
+#endif
left_r = 0;
left_g = 0;