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.
This commit is contained in:
Lin Ma 2009-05-25 10:01:04 +08:00
parent 48c8818fa2
commit d0f887ddb1
2 changed files with 14 additions and 2 deletions

View File

@ -27,6 +27,14 @@ Installation
See the file 'INSTALL'
Release notes for 2.18
======================
* gtk_tooltip_set_custom now accept a NULL custom_widget to unset the
old custom_widget. Custom_widget does not get destroyed when the
tooltip goes away.
Release notes for 2.16
======================

View File

@ -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
*/