summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-30 21:07:11 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-30 21:07:11 +0000
commit6a5a5b0340c71eeaa09a9cb2e1b676f52c58f89b (patch)
tree7925a072f0e6d768b3f62713c15d0cccab53727b
parenta01e089d3e5d626d9894aeaf055fa4c25826f3a9 (diff)
commit to the "new" tooltip API, use set_tooltip_markup() rather than set_tooltip_text() to allow for more creative tooltips
git-svn-id: svn://localhost/ardour2/branches/3.0@10844 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/gtkmm2ext/gtk_ui.cc14
1 files changed, 1 insertions, 13 deletions
diff --git a/libs/gtkmm2ext/gtk_ui.cc b/libs/gtkmm2ext/gtk_ui.cc
index f45fab6788..9679113b47 100644
--- a/libs/gtkmm2ext/gtk_ui.cc
+++ b/libs/gtkmm2ext/gtk_ui.cc
@@ -66,9 +66,6 @@ UI::UI (string namestr, int *argc, char ***argv)
: AbstractUI<UIRequest> (namestr)
{
theMain = new Main (argc, argv);
-#ifndef GTK_NEW_TOOLTIP_API
- tips = new Tooltips;
-#endif
_active = false;
@@ -454,16 +451,7 @@ UI::do_request (UIRequest* req)
} else if (req->type == SetTip) {
-#ifdef GTK_NEW_TOOLTIP_API
- /* even if the installed GTK is up to date,
- at present (November 2008) our included
- version of gtkmm is not. so use the GTK
- API that we've verified has the right function.
- */
- gtk_widget_set_tooltip_text (req->widget->gobj(), req->msg);
-#else
- tips->set_tip (*req->widget, req->msg, "");
-#endif
+ gtk_widget_set_tooltip_markup (req->widget->gobj(), req->msg);
} else {