Fix some issues with refcounting of the adjustment. (#448544, Carlos
2007-06-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellrendererspin.c: Fix some issues with refcounting of the adjustment. (#448544, Carlos Garnacho) svn path=/trunk/; revision=18183
This commit is contained in:
parent
7b1c6c9902
commit
d49e7facdb
@ -1,3 +1,8 @@
|
|||||||
|
2007-06-18 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcellrendererspin.c: Fix some issues with refcounting
|
||||||
|
of the adjustment. (#448544, Carlos Garnacho)
|
||||||
|
|
||||||
2007-06-18 Gustavo J. A. M. Carneiro <gjc@gnome.org>
|
2007-06-18 Gustavo J. A. M. Carneiro <gjc@gnome.org>
|
||||||
|
|
||||||
reviewed by: Matthias Clasen
|
reviewed by: Matthias Clasen
|
||||||
|
@ -208,7 +208,7 @@ gtk_cell_renderer_spin_set_property (GObject *object,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (obj)
|
if (obj)
|
||||||
priv->adjustment = g_object_ref (obj);
|
priv->adjustment = g_object_ref_sink (obj);
|
||||||
break;
|
break;
|
||||||
case PROP_CLIMB_RATE:
|
case PROP_CLIMB_RATE:
|
||||||
priv->climb_rate = g_value_get_double (value);
|
priv->climb_rate = g_value_get_double (value);
|
||||||
@ -294,7 +294,7 @@ gtk_cell_renderer_spin_start_editing (GtkCellRenderer *cell,
|
|||||||
if (!priv->adjustment)
|
if (!priv->adjustment)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
spin = gtk_spin_button_new (g_object_ref (priv->adjustment),
|
spin = gtk_spin_button_new (priv->adjustment,
|
||||||
priv->climb_rate, priv->digits);
|
priv->climb_rate, priv->digits);
|
||||||
|
|
||||||
if (cell_text->text)
|
if (cell_text->text)
|
||||||
|
Loading…
Reference in New Issue
Block a user