pixbufs instead of pixmaps; function-scope local fd's for reading from a FileSource
[ardour.git] / libs / gtkmm2ext / gtkmm2ext / pixscroller.h
index 55b84dfacccb9f3dcd89773b55e6f44ad1b53a3e..4bc13ef173d0b09377972a1c14c10b8ab305ba00 100644 (file)
@@ -5,33 +5,27 @@
 #include <gtkmm/adjustment.h>
 #include <gdkmm.h>
 
-#include <gtkmm2ext/pix.h>
-
 namespace Gtkmm2ext {
 
 class PixScroller : public Gtk::DrawingArea
 {
   public:
-       PixScroller(Gtk::Adjustment& adjustment, Pix&);
+       PixScroller(Gtk::Adjustment& adjustment, 
+                   Glib::RefPtr<Gdk::Pixbuf> slider,
+                   Glib::RefPtr<Gdk::Pixbuf> rail);
 
-       
        bool on_expose_event (GdkEventExpose*);
        bool on_motion_notify_event (GdkEventMotion*);
        bool on_button_press_event (GdkEventButton*);
        bool on_button_release_event (GdkEventButton*);
        void on_size_request (GtkRequisition*);
-       void on_realize ();
 
   protected:
        Gtk::Adjustment& adj;
 
   private:
-       Pix& pix;
-
-       Glib::RefPtr<Gdk::Pixmap> rail;
-       Glib::RefPtr<Gdk::Pixmap> slider;
-       Glib::RefPtr<Gdk::Bitmap> rail_mask;
-       Glib::RefPtr<Gdk::Bitmap> slider_mask;
+       Glib::RefPtr<Gdk::Pixbuf> rail;
+       Glib::RefPtr<Gdk::Pixbuf> slider;
        Gdk::Rectangle sliderrect;
        Gdk::Rectangle railrect;
        GdkWindow* grab_window;