Module: synfig
Branch: genete_master
Commit: 08caa838e9fd7826b436c88b07931fa99a116822
URL:
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=08caa838e9fd7826b436c88b07931fa99a116822
Author: Carlos Lopez <car...@pcnuevo.(none)>
Date: Thu Jul 23 16:40:30 2009 +0200
Use old and deprecated Tooltips class for compatibility with gtkmm 2.10
---
.../trunk/src/gtkmm/widget_keyframe_list.cpp | 11 +++++------
.../trunk/src/gtkmm/widget_keyframe_list.h | 5 +++++
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp
b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp
index a350aa1..4c83d14 100644
--- a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp
+++ b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp
@@ -282,6 +282,7 @@ Widget_Keyframe_List::on_event(GdkEvent *event)
// AND NOT left or right mouse button pressed
else
{
+ Glib::ustring ttip="";
synfig::Time p_t,n_t;
kf_list_->find_prev_next(t, p_t, n_t);
if( (p_t==Time::begin() &&
n_t==Time::end())
@@ -289,23 +290,21 @@ Widget_Keyframe_List::on_event(GdkEvent *event)
((t-p_t)>time_ratio && (n_t-t)>time_ratio)
)
{
- Glib::ustring ttip = _("Click and drag
keyframes");
- set_tooltip_text(ttip);
+ ttip = _("Click and drag keyframes");
}
else if ((t-p_t)<(n_t-t))
{
synfig::Keyframe
kf(*kf_list_->find_prev(t));
synfig::String
kf_name(kf.get_description().c_str());
- Glib::ustring ttip = kf_name.c_str();
- set_tooltip_text(ttip);
+ ttip = kf_name.c_str();
}
else
{
synfig::Keyframe
kf(*kf_list_->find_next(t));
synfig::String
kf_name(kf.get_description().c_str());
- Glib::ustring ttip = kf_name.c_str();
- set_tooltip_text(ttip);
+ ttip = kf_name.c_str();
}
+ tooltips.set_tip(*this, ttip);
dragging_=false;
queue_draw();
return true;
diff --git a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.h
b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.h
index 349dcd3..1e41770 100644
--- a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.h
+++ b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.h
@@ -30,6 +30,7 @@
#include <gtkmm/drawingarea.h>
#include <gtkmm/adjustment.h>
+#include <gtkmm/tooltips.h>
#include <synfig/keyframe.h>
#include <sigc++/connection.h>
#include <synfigapp/canvasinterface.h>
@@ -45,6 +46,10 @@ namespace studio {
class Widget_Keyframe_List : public Gtk::DrawingArea
{
+ //! Tooltips class. It is deprecated since gtkmm 2.12
+ //! replace with Tooltip class or use the own tooltip widget's members
+ Gtk::Tooltips tooltips;
+
//! The canvas interface being watched
etl::loose_handle<synfigapp::CanvasInterface> canvas_interface_;
------------------------------------------------------------------------------
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl