Author: Carlos Lopez <[email protected]>
Date: Sun Sep 25 14:11:49 2011 +0200
Enable tool tips for Tool Options dialogue buttons
---
synfig-studio/src/gui/docks/dockable.cpp | 19 ++-----------------
1 files changed, 2 insertions(+), 17 deletions(-)
diff --git a/synfig-studio/src/gui/docks/dockable.cpp
b/synfig-studio/src/gui/docks/dockable.cpp
index 1baeb41..9738b4b 100644
--- a/synfig-studio/src/gui/docks/dockable.cpp
+++ b/synfig-studio/src/gui/docks/dockable.cpp
@@ -294,26 +294,11 @@ Dockable::add_button(const Gtk::StockID& stock_id, const
synfig::String& tooltip
if(!toolbar_)
set_toolbar(*manage(new Gtk::Toolbar));
- //Gtk::IconSize iconsize(4);
- //Gtk::IconSize iconsize(Gtk::IconSize::from_name("synfig-small_icon"));
-
Gtk::ToolButton* ret(manage(new Gtk::ToolButton(stock_id)));
- //Gtk::Image* icon(manage(new Gtk::Image(stock_id,iconsize)));
- //ret->add(*icon);
- //ret->set_relief(Gtk::RELIEF_HALF);
- //ret->set_relief(Gtk::RELIEF_NONE);
- ret->set_label(tooltip);
- if (toolbar_->get_tooltips_object())
- toolbar_->get_tooltips_object()->set_tip(*ret,tooltip);
-
+ ret->set_tooltip_text(tooltip);
ret->show();
- //icon->show();
- toolbar_->set_tooltips(true);
-
+ toolbar_->set_has_tooltip();
toolbar_->append(*ret);
- //button_box_.pack_start(*ret,false,false);
- //get_action_area()->pack_start(*ret,false,false);
- //add_action_widget(*ret,1);
return ret;
}
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl