From ae541a6f7dabada6e3a4fba01bd6bdc7db400892 Mon Sep 17 00:00:00 2001 From: pabs Date: Mon, 27 Aug 2007 00:21:24 +0000 Subject: [PATCH] Fix the tooltips on the toolbox buttons for all the different tools. git-svn-id: http://svn.voria.com/code@558 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/toolbox.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/toolbox.cpp b/synfig-studio/trunk/src/gtkmm/toolbox.cpp index 7559f32..f29025d 100644 --- a/synfig-studio/trunk/src/gtkmm/toolbox.cpp +++ b/synfig-studio/trunk/src/gtkmm/toolbox.cpp @@ -481,12 +481,15 @@ Toolbox::add_state(const Smach::state_base *state) String name=state->get_name(); + Gtk::StockItem stock_item; + Gtk::Stock::lookup(Gtk::StockID("synfig-"+name),stock_item); + Gtk::ToggleButton* button; button=manage(new class Gtk::ToggleButton()); - icon=manage(new Gtk::Image(Gtk::StockID("synfig-"+name),Gtk::IconSize(4))); + icon=manage(new Gtk::Image(stock_item.get_stock_id(),Gtk::IconSize(4))); button->add(*icon); - tooltips.set_tip(*button,name); + tooltips.set_tip(*button,stock_item.get_label()); icon->show(); button->show(); -- 2.7.4