diff options
author | Lin Ma <lin.ma@sun.com> | 2009-05-25 10:01:04 +0800 |
---|---|---|
committer | Lin Ma <lin.ma@sun.com> | 2009-05-25 10:01:04 +0800 |
commit | d0f887ddb144a69a85371041d1ad3640ab379ee8 (patch) | |
tree | 5a5383a47a285ab88f81721bd5f0ad2bd5d96a9e /gtk | |
parent | 48c8818fa2bc3b54cd7133781021f30535193ea5 (diff) | |
download | gtk+-d0f887ddb144a69a85371041d1ad3640ab379ee8.tar.gz |
Fix GtkTooltip destroy the custom widget
Fixed 576091, Custom_widget does not get destroyed when the tooltip
goes away. Add a release note for this fix.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtktooltip.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index af733b7a65..77e47772cd 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -182,6 +182,7 @@ gtk_tooltip_finalize (GObject *object) tooltip->browse_mode_timeout_id = 0; } + gtk_tooltip_set_custom (tooltip, NULL); gtk_tooltip_set_last_window (tooltip, NULL); if (tooltip->window) @@ -333,12 +334,15 @@ gtk_tooltip_set_icon_from_icon_name(GtkTooltip *tooltip, /** * gtk_tooltip_set_custom: * @tooltip: a #GtkTooltip - * @custom_widget: a #GtkWidget + * @custom_widget: a #GtkWidget, or %NULL to unset the old custom widget. * - * Replaces the widget packed into the tooltip with @custom_widget. + * Replaces the widget packed into the tooltip with + * @custom_widget. @custom_widget does not get destroyed when the tooltip goes + * away. * By default a box with a #GtkImage and #GtkLabel is embedded in * the tooltip, which can be configured using gtk_tooltip_set_markup() * and gtk_tooltip_set_icon(). + * * Since: 2.12 */ |