2006-07-21 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkstyle.c:
+ * gtk/gtkrc.c:
+ * gtk/gtkwidget.c: Replace gtk_rc_style_ref/unref by
+ g_object_ref/unref.
+
* gtk/gtkimcontextsimple.c (gtk_im_context_simple_get_preedit_string):
0-terminate outbuf in all cases. (#348227, Nguyen Thái Ngoc Duy)
2006-07-21 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkstyle.c:
+ * gtk/gtkrc.c:
+ * gtk/gtkwidget.c: Replace gtk_rc_style_ref/unref by
+ g_object_ref/unref.
+
* gtk/gtkimcontextsimple.c (gtk_im_context_simple_get_preedit_string):
0-terminate outbuf in all cases. (#348227, Nguyen Thái Ngoc Duy)
style = GTK_RC_STYLE_GET_CLASS (rc_style)->create_style (rc_style);
_gtk_style_init_for_settings (style, context->settings);
- style->rc_style = rc_style;
-
- gtk_rc_style_ref (rc_style);
+ style->rc_style = g_object_ref (rc_style);
GTK_STYLE_GET_CLASS (style)->init_from_rc (style, rc_style);
style->ythickness = src->ythickness;
if (style->rc_style)
- gtk_rc_style_unref (style->rc_style);
+ g_object_unref (style->rc_style);
style->rc_style = src->rc_style;
if (src->rc_style)
- gtk_rc_style_ref (src->rc_style);
+ g_object_ref (src->rc_style);
/* don't copy, just clear cache */
clear_property_cache (style);
*
* Return value: the modifier style for the widget. This rc style is
* owned by the widget. If you want to keep a pointer to value this
- * around, you must add a refcount using gtk_rc_style_ref().
+ * around, you must add a refcount using g_object_ref().
**/
GtkRcStyle *
gtk_widget_get_modifier_style (GtkWidget *widget)