summaryrefslogtreecommitdiff
path: root/gtk2_ardour/visual_time_axis.cc
diff options
context:
space:
mode:
authorDoug McLain <doug@nostar.net>2006-03-15 16:33:00 +0000
committerDoug McLain <doug@nostar.net>2006-03-15 16:33:00 +0000
commit6db80f6eff97b278ebbac6e4d5993552418bfd87 (patch)
tree954dc72426758b98b7d1717562ef2afc1b34cb7f /gtk2_ardour/visual_time_axis.cc
parent1abcdd831cfbda3a63f854fc8a343e01e30dd508 (diff)
found a couple more hard coded xpms :)
git-svn-id: svn://localhost/trunk/ardour2@397 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/visual_time_axis.cc')
-rw-r--r--gtk2_ardour/visual_time_axis.cc21
1 files changed, 1 insertions, 20 deletions
diff --git a/gtk2_ardour/visual_time_axis.cc b/gtk2_ardour/visual_time_axis.cc
index f9408fae60..2b9a55bb5c 100644
--- a/gtk2_ardour/visual_time_axis.cc
+++ b/gtk2_ardour/visual_time_axis.cc
@@ -57,24 +57,6 @@
using namespace ARDOUR;
using namespace sigc;
using namespace Gtk;
-
-//XXX should really have a common home...
-static const gchar* small_x_xpm[] = {
- "11 11 2 1",
- " c None",
- ". c #000000",
- " ",
- " ",
- " . . ",
- " . . ",
- " . . ",
- " . ",
- " . . ",
- " . . ",
- " . . ",
- " ",
- " "};
-
/**
* Abstract Constructor for base visual time axis classes
@@ -102,8 +84,7 @@ VisualTimeAxis::VisualTimeAxis(const string & name, PublicEditor& ed, ARDOUR::Se
size_button.set_name("TrackSizeButton") ;
visual_button.set_name("TrackVisualButton") ;
hide_button.set_name("TrackRemoveButton") ;
- Glib::RefPtr<Gdk::Pixbuf> small_x_pixbuf = Gdk::Pixbuf::create_from_xpm_data(small_x_xpm);
- hide_button.add(*(Gtk::manage(new Gtk::Image(small_x_pixbuf)))) ;
+ hide_button.add(*(Gtk::manage(new Gtk::Image(get_xpm("small_x.xpm")))));
size_button.signal_button_release_event().connect (mem_fun (*this, &VisualTimeAxis::size_click)) ;
visual_button.signal_clicked().connect (mem_fun (*this, &VisualTimeAxis::visual_click)) ;
hide_button.signal_clicked().connect (mem_fun (*this, &VisualTimeAxis::hide_click)) ;