+2008-06-16 Michael Natterer <mitch@imendio.com>
+
+ * gtk/gtkfontsel.c
+ * gtk/gtkrc.c
+ * gtk/gtkstyle.c
+ * gtk/gtkwidget.c: use g_object_unref() instead of the deprecated
+ gtk_rc_style_unref().
+
2008-06-16 Michael Natterer <mitch@imendio.com>
* gtk/gtkcombobox.c (gtk_combo_box_class_init): use
rc_style->font_desc = gtk_font_selection_get_font_description (fontsel);
gtk_widget_modify_style (preview_entry, rc_style);
- gtk_rc_style_unref (rc_style);
+ g_object_unref (rc_style);
gtk_widget_size_request (preview_entry, NULL);
gpointer data,
gpointer user_data)
{
- gtk_rc_style_unref (data);
+ g_object_unref (data);
}
static void
}
style = gtk_rc_style_to_style (context, proto_style);
- gtk_rc_style_unref (proto_style);
+ g_object_unref (proto_style);
g_hash_table_insert (realized_style_ht, rc_styles, style);
}
err:
if (rc_style != orig_style)
- gtk_rc_style_unref (rc_style);
+ g_object_unref (rc_style);
if (orig_style)
g_object_unref (orig_style);
if (style->private_font_desc)
pango_font_description_free (style->private_font_desc);
-
+
if (style->rc_style)
- gtk_rc_style_unref (style->rc_style);
-
+ g_object_unref (style->rc_style);
+
G_OBJECT_CLASS (gtk_style_parent_class)->finalize (object);
}
g_object_set_qdata_full (G_OBJECT (widget),
quark_rc_style,
gtk_rc_style_copy (style),
- (GDestroyNotify) gtk_rc_style_unref);
+ (GDestroyNotify) g_object_unref);
/* note that "style" may be invalid here if it was the old
* modifier style and the only reference was our own.
g_object_set_qdata_full (G_OBJECT (widget),
quark_rc_style,
rc_style,
- (GDestroyNotify) gtk_rc_style_unref);
+ (GDestroyNotify) g_object_unref);
}
return rc_style;