Bug 386772 - Omit use of deprecated method gtk_tooltips_new() in Tooltip Widget
Summary: Omit use of deprecated method gtk_tooltips_new() in Tooltip Widget
Status: CLOSED DUPLICATE of bug 461891
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 340067
  Show dependency tree
 
Reported: 2012-08-07 14:32 EDT by Anatoly Spektor CLA
Modified: 2015-09-23 07:34 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anatoly Spektor CLA 2012-08-07 14:32:55 EDT
Discussion on this bug started here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=385939



As GtkTooltips API is replaced with GtkTooltip API there should be new implementation in Tooltip.createHandle()  of handle when SWT_BALOON is 0.

Method  gtk_tooltips_new() that  is currently  used is deprecated since 2.12
Comment 1 Anatoly Spektor CLA 2013-08-15 12:50:00 EDT
From GtkTooltip doc:

Basic tooltips can be realized simply by using gtk_widget_set_tooltip_text() or gtk_widget_set_tooltip_markup() without any explicit tooltip object. 
( https://developer.gnome.org/gtk3/3.9/GtkTooltip.html#gtk-tooltip-set-text )

Basing on the documentation GtkTooltip does not have equivalent to gtk_tooltips_new, so I don't think it would be possible to create a new Tooltip object in CreateHandle() function with GtkToolTip-API. If anyone has any thoughts on this issue, it would be cool!
Comment 2 Alexander Kurtakov CLA 2013-08-15 15:06:06 EDT
GtkWidget has query-tooltip signal which can be used to fetch its GtkTooltip instance. After that gtk_tooltip_set_custom(tooltip, custom_widget) can be used to set whatever widget you want as the tooltip.
Comment 3 Alexander Kurtakov CLA 2015-09-23 07:34:34 EDT
gtk_tooltips_new is no longer used nowadays as it was used only for pre 2.12 gtk which was removed via bug 461891 .

*** This bug has been marked as a duplicate of bug 461891 ***