From: Carlos Lopez <genetita@gmail.com>
Date: Mon, 6 Dec 2010 20:38:01 +0000 (+0100)
Subject: Fix tooltips for layer parameters.
X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=761f182dca80197d703d8ad37f74e68b326672d0;p=synfig.git

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
---

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();
 				}
 			}