Module: synfig/synfig Branch: master Commit: 761f182dca80197d703d8ad37f74e68b326672d0 URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig/synfig;a=commit;h=761f182dca80197d703d8ad37f74e68b326672d0
Author: Carlos Lopez <[email protected]> Date: Mon Dec 6 21:38:01 2010 +0100 Fix tooltips for layer parameters. It doesn't work as it is expected and must be changed to Gtk::Tooltip because Gtk::Tooltips is deprecated since Gtkmm 2.12 --- .../src/gui/trees/layerparamtreestore.cpp | 1 + synfig-studio/src/gui/trees/layertree.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/synfig-studio/src/gui/trees/layerparamtreestore.cpp b/synfig-studio/src/gui/trees/layerparamtreestore.cpp index 8fe850a..dfbca9a 100644 --- a/synfig-studio/src/gui/trees/layerparamtreestore.cpp +++ b/synfig-studio/src/gui/trees/layerparamtreestore.cpp @@ -418,6 +418,7 @@ LayerParamTreeStore::rebuild() ); } //row[model.label] = iter->get_local_name(); + row[model.tooltip] = iter->get_local_name()+": "+iter->get_description(); row[model.param_desc] = *iter; row[model.canvas] = layer_list.front()->get_canvas(); row[model.is_inconsistent] = false; diff --git a/synfig-studio/src/gui/trees/layertree.cpp b/synfig-studio/src/gui/trees/layertree.cpp index 690d4aa..a17529e 100644 --- a/synfig-studio/src/gui/trees/layertree.cpp +++ b/synfig-studio/src/gui/trees/layertree.cpp @@ -917,12 +917,12 @@ LayerTree::on_param_tree_event(GdkEvent *event) #endif // TIMETRACK_IN_PARAMS_PANEL if(last_tooltip_path.get_depth()<=0 || path!=last_tooltip_path) { - tooltips_.unset_tip(*this); - Glib::ustring tooltips_string(row[layer_model.tooltip]); + tooltips_.unset_tip(get_param_tree_view()); + Glib::ustring tooltips_string(row[param_model.tooltip]); last_tooltip_path=path; if(!tooltips_string.empty()) { - tooltips_.set_tip(*this,tooltips_string); + tooltips_.set_tip(get_param_tree_view(),tooltips_string); tooltips_.force_window(); } } ------------------------------------------------------------------------------ What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d _______________________________________________ Synfig-devl mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synfig-devl
