summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_strip.cc
diff options
context:
space:
mode:
authorDoug McLain <doug@nostar.net>2006-03-12 15:46:29 +0000
committerDoug McLain <doug@nostar.net>2006-03-12 15:46:29 +0000
commit670641c3df89af73de36efa5b0a184c2430275b0 (patch)
treeae4104e88cb85102fad0462efcf1682c9db34863 /gtk2_ardour/mixer_strip.cc
parent1ed64a7842ac57d1fe9e0464690f961781ca4080 (diff)
create xpm files from hard coded pixmaps, added function get_xpm() to make sure any xpm only gets load from disk once
git-svn-id: svn://localhost/trunk/ardour2@379 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r--gtk2_ardour/mixer_strip.cc23
1 files changed, 2 insertions, 21 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index d168c421cd..2ca903ea73 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -65,23 +65,6 @@ using namespace ARDOUR;
using namespace Gtk;
using namespace Gtkmm2ext;
-/* XPM */
-static const gchar * lr_xpm[] = {
-"11 11 2 1",
-" c None",
-". c #cccccc",
-" ",
-" ",
-" . . ",
-" . . ",
-" . . ",
-"...........",
-" . . ",
-" . . ",
-" . . ",
-" ",
-" "};
-
static void
speed_printer (char buf[32], Gtk::Adjustment& adj, void* arg)
{
@@ -128,10 +111,8 @@ MixerStrip::MixerStrip (Mixer_UI& mx, Session& sess, Route& rt, bool in_mixer)
comment_window = 0;
comment_area = 0;
- std::string small_x_xpm_file = find_data_file("small_x.xpm", "pixmaps");
- std::string lr_xpm_file = find_data_file("lr.xpm", "pixmaps");
- width_button.add (*(manage (new Gtk::Image (Gdk::Pixbuf::create_from_file(lr_xpm_file)))));
- hide_button.add (*(manage (new Gtk::Image (Gdk::Pixbuf::create_from_file(small_x_xpm_file)))));
+ width_button.add (*(manage (new Gtk::Image (get_xpm("lr.xpm")))));
+ hide_button.add (*(manage (new Gtk::Image (get_xpm("small_x.xpm")))));
input_label.set_text (_("INPUT"));