[gtk+/font-selection-new: 51/73] GtkFontSelection: Unref deprecated widgets on finalize
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/font-selection-new: 51/73] GtkFontSelection: Unref deprecated widgets on finalize
- Date: Sat, 7 May 2011 18:16:30 +0000 (UTC)
commit 8b28ee87d6310b1f59a5b672ca44b6ad9b10ba8b
Author: Alberto Ruiz <aruiz gnome org>
Date: Thu Apr 28 02:46:09 2011 +0100
GtkFontSelection: Unref deprecated widgets on finalize
gtk/gtkfontsel.c | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c
index ea6aa89..74afa1b 100644
--- a/gtk/gtkfontsel.c
+++ b/gtk/gtkfontsel.c
@@ -908,6 +908,14 @@ gtk_font_selection_finalize (GObject *object)
gtk_font_selection_ref_family (fontsel, NULL);
gtk_font_selection_ref_face (fontsel, NULL);
+ /* FIXME: Remove this for 4.0 */
+ if (fontsel->priv->size_list)
+ {
+ g_object_unref (fontsel->priv->size_list);
+ g_object_unref (fontsel->priv->font_list);
+ g_object_unref (fontsel->priv->face_list);
+ }
+
G_OBJECT_CLASS (gtk_font_selection_parent_class)->finalize (object);
}
@@ -1071,16 +1079,6 @@ initialize_deprecated_widgets (GtkFontSelection *fontsel)
cursor_changed_cb (priv->family_face_list, priv);
}
-static void
-destroy_deprecated_widgets (GtkFontSelection *fontsel)
-{
- GtkFontSelectionPrivate *priv = fontsel->priv;
-
- g_object_unref (priv->size_list);
- g_object_unref (priv->font_list);
- g_object_unref (priv->face_list);
-}
-
/*****************************************************************************
* These functions are the main public interface for getting/setting the font.
*****************************************************************************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]