found a couple more hard coded xpms :)

git-svn-id: svn://localhost/trunk/ardour2@397 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Doug McLain 2006-03-15 16:33:00 +00:00
parent 1abcdd831c
commit 6db80f6eff
3 changed files with 4 additions and 53 deletions

View File

@ -84,21 +84,6 @@ using namespace LADSPA;
using namespace Gtk;
using namespace Editing;
static const gchar * small_x_xpm[] = {
"11 11 2 1",
" c None",
". c #000000",
" ",
" ",
" . . ",
" . . ",
" . . ",
" . ",
" . . ",
" . . ",
" . . ",
" ",
" "};
AudioTimeAxisView::AudioTimeAxisView (PublicEditor& ed, Session& sess, Route& rt, Canvas& canvas)
: AxisView(sess),
@ -148,7 +133,7 @@ AudioTimeAxisView::AudioTimeAxisView (PublicEditor& ed, Session& sess, Route& rt
visual_button.set_name ("TrackVisualButton");
hide_button.set_name ("TrackRemoveButton");
hide_button.add (*(manage (new Image (Gdk::Pixbuf::create_from_xpm_data(small_x_xpm)))));
hide_button.add (*(manage (new Image (get_xpm("small_x.xpm")))));
_route.mute_changed.connect (mem_fun(*this, &RouteUI::mute_changed));
_route.solo_changed.connect (mem_fun(*this, &RouteUI::solo_changed));

View File

@ -11,6 +11,7 @@
#include "automation_selectable.h"
#include "point_selection.h"
#include "canvas_impl.h"
#include "utils.h"
#include "i18n.h"
@ -18,22 +19,6 @@ using namespace ARDOUR;
using namespace Gtk;
using namespace Editing;
static const gchar * small_x_xpm[] = {
"11 11 2 1",
" c None",
". c #000000",
" ",
" ",
" . . ",
" . . ",
" . . ",
" . ",
" . . ",
" . . ",
" . . ",
" ",
" "};
AutomationTimeAxisView::AutomationTimeAxisView (Session& s, Route& r, PublicEditor& e, TimeAxisView& rent,
ArdourCanvas::Canvas& canvas, const string & nom,
const string & state_name, const string & nomparent)
@ -79,7 +64,7 @@ AutomationTimeAxisView::AutomationTimeAxisView (Session& s, Route& r, PublicEdit
base_rect->signal_event().connect (bind (mem_fun (editor, &PublicEditor::canvas_automation_track_event),
base_rect, this));
hide_button.add (*(manage (new Gtk::Image (Gdk::Pixbuf::create_from_xpm_data(small_x_xpm)))));
hide_button.add (*(manage (new Gtk::Image (get_xpm("small_x.xpm")))));
height_button.set_name ("TrackSizeButton");
auto_button.set_name ("TrackVisualButton");

View File

@ -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)) ;