From bf938eb1d6bc233b9e9986f885292328aed8fcd6 Mon Sep 17 00:00:00 2001 From: YPozdnyakov Date: Wed, 10 Dec 2014 17:36:31 +0200 Subject: [PATCH] [Summary]: Add track_context_menu icons according to Igor request --- gtk2_ardour/editor.cc | 18 +++++++----------- gtk2_ardour/icons/tool_arrow_idle.png | Bin 0 -> 1141 bytes gtk2_ardour/icons/tool_cut_idle.png | Bin 0 -> 1199 bytes gtk2_ardour/icons/tool_marker_idle.png | Bin 0 -> 1089 bytes gtk2_ardour/icons/tool_zoom_idle.png | Bin 0 -> 1254 bytes 5 files changed, 7 insertions(+), 11 deletions(-) create mode 100644 gtk2_ardour/icons/tool_arrow_idle.png create mode 100644 gtk2_ardour/icons/tool_cut_idle.png create mode 100644 gtk2_ardour/icons/tool_marker_idle.png create mode 100644 gtk2_ardour/icons/tool_zoom_idle.png diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index ed61d2b49d..fa6df9cff1 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -1990,28 +1990,24 @@ Editor::add_track_context_items (Menu_Helpers::MenuList& edit_items) // Tools menu Glib::RefPtr act = ActionManager::get_action_from_name ("set-mouse-mode-range"); assert (act); - Glib::RefPtr tact = Glib::RefPtr::cast_dynamic (act); Image* icon; - icon = manage (new Gtk::Image (tact->get_active() ? get_icon_path (X_ ("tool_marker_active")) : get_icon_path (X_ ("tool_marker")))); + icon = manage (new Gtk::Image (get_icon_path (X_ ("tool_marker_idle")))); edit_items.push_back (ImageMenuElem ( ("Range Select Tool \t 1"), *icon, sigc::bind (sigc::mem_fun (*this, &Editor::activate_track_context_menu_action), act))); act = ActionManager::get_action_from_name ("set-mouse-mode-object"); assert (act); - tact = Glib::RefPtr::cast_dynamic (act); - icon = manage (new Gtk::Image (tact->get_active () ? get_icon_path (X_ ("tool_arrow_active")) : get_icon_path (X_ ("tool_arrow")))); - edit_items.push_back (ImageMenuElem ( ("Pointer Tool \t\t 2"), *icon, sigc::bind (sigc::mem_fun (*this, &Editor::activate_track_context_menu_action), act))); + icon = manage (new Gtk::Image (get_icon_path (X_ ("tool_arrow_idle")))); + edit_items.push_back (ImageMenuElem ( ("Pointer Tool \t 2"), *icon, sigc::bind (sigc::mem_fun (*this, &Editor::activate_track_context_menu_action), act))); act = ActionManager::get_action_from_name ("set-mouse-mode-cut"); assert (act); - tact = Glib::RefPtr::cast_dynamic (act); - icon = manage (new Gtk::Image (tact->get_active () ? get_icon_path (X_ ("tool_cut_active")) : get_icon_path (X_ ("tool_cut")))); - edit_items.push_back (ImageMenuElem ( ("Split Tool \t\t 3"), *icon, sigc::bind (sigc::mem_fun (*this, &Editor::activate_track_context_menu_action), act))); + icon = manage (new Gtk::Image (get_icon_path (X_ ("tool_cut_idle")))); + edit_items.push_back (ImageMenuElem ( ("Split Tool \t 3"), *icon, sigc::bind (sigc::mem_fun (*this, &Editor::activate_track_context_menu_action), act))); act = ActionManager::get_action_from_name ("set-mouse-mode-zoom"); assert (act); - tact = Glib::RefPtr::cast_dynamic (act); - icon = manage (new Gtk::Image (tact->get_active () ? get_icon_path (X_ ("tool_zoom_active")) : get_icon_path (X_ ("tool_zoom")))); - edit_items.push_back (ImageMenuElem ( ("Zoom Tool \t\t 4"), *icon, sigc::bind (sigc::mem_fun (*this, &Editor::activate_track_context_menu_action), act))); + icon = manage (new Gtk::Image (get_icon_path (X_ ("tool_zoom_idle")))); + edit_items.push_back (ImageMenuElem ( ("Zoom Tool \t 4"), *icon, sigc::bind (sigc::mem_fun (*this, &Editor::activate_track_context_menu_action), act))); } void diff --git a/gtk2_ardour/icons/tool_arrow_idle.png b/gtk2_ardour/icons/tool_arrow_idle.png new file mode 100644 index 0000000000000000000000000000000000000000..a413ba90f84f0c8157310f80cee394e6b26c902b GIT binary patch literal 1141 zcmbVM+iMh87@u|PEoRAs){uq5Frh`LJ9EzL&hE~THQBkDm2M211sBocWacD0Z06FL zlkOy78(Wb`DM$*X55)`iq4*#{6cHmv@kP-Gq0rI?DfAC01%0w$&m_CihmZ#cX3ja^ z`F_9eKIg~B4ySt3JrqTyDx+$RtRIp$y=w>gHp=}9Sq8Ayz!TmSZW{rj%9b~Y=!#=Z zqZ%@-xi220A&N>i?Ro<@s-H=w=debs!$yuz&=fT^9QlUXLYSUJ)3#e;{<(Xfp>3MN*ekIn~ZVt%Y{&bLg_VulaVLy<%X9E1%za%S96ib~8HuSE8-m}BTQ72GN@ z>rOSQE`5X&#K+K5;X&ykpL7oGJ3`gq-w4AIJ1qJ5T zBNurYlw|-4yaB>kEU z*42tyu19}P{`cn1aPn4SZ!)#|>y@kLY6HuEE&Xw?_4`-!tHfg8wto}H3b*$>N{j^MivgUXS;0zkL48iN zk?P%_yphtr`)T)RdHK?X2WOXlOEjN;yYlnm)bh4F=RSGZn@q1z&rT(le%N>MWozN% k=s*_V92pQW)w_Kcpst-1KCk&N7UCa4MH^GE%cs8iAGs1~e*gdg literal 0 HcmV?d00001 diff --git a/gtk2_ardour/icons/tool_cut_idle.png b/gtk2_ardour/icons/tool_cut_idle.png new file mode 100644 index 0000000000000000000000000000000000000000..f0ee2bbbbf67091d506853d79faf321221078eea GIT binary patch literal 1199 zcmbVMO>Em#9Cwy=t*TXYbf{}N%<_bUfY|T3juV?EjX&22(nV>c$gAG6)X zEthR*unJ8o2ToiV6et{k1Bj0a!Pe6zP1;0Hh)6IvOk5_o0vgY4QaDsQV99>({onuh z`+s}2I&*wzaD0#;h@tYdTEpuT_#GcOfWHlCRKd$wq&1>hZ!T&Z0U{*JYa+7j81txx z3~Tx9O*Bam>6Tq@M2*UeqUkxbk?7E|<6|^IOisnVVJ@JEY@&JFEl>}xeM^zHRiI90 zE1=>lsAW&D1ZZ|;rf#k*n1V%370Jn1!~_nC3^H~W-B64R)Hbh(_lcOH$ZeHqp+N08 z)u>cS#S0Lbr9s97JS2IJh8z$$;W?585HOHsKrRD;n9Yd*lHG^G)&grztf_j}7CsfI zRuuUn!?fFNx;;UA!8`*6L0|yOuxtivWWr@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