Fix some issues with refcounting of the adjustment. (#448544)

2007-06-19  Carlos Garnacho  <carlos@imendio.com>

        * gtk/gtkcellrendererspin.c: Fix some issues with refcounting
        of the adjustment. (#448544)


svn path=/branches/gtk-2-10/; revision=18190
This commit is contained in:
Carlos Garnacho
2007-06-19 16:14:56 +00:00
committed by Carlos Garnacho
parent f2364ce93b
commit 2543dea650
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2007-06-19 Carlos Garnacho <carlos@imendio.com>
* gtk/gtkcellrendererspin.c: Fix some issues with refcounting
of the adjustment. (#448544)
2007-06-14 Matthias Clasen <mclasen@redhat.com>
Backport from trunk:

View File

@@ -208,7 +208,7 @@ gtk_cell_renderer_spin_set_property (GObject *object,
}
if (obj)
priv->adjustment = g_object_ref (obj);
priv->adjustment = g_object_ref_sink (obj);
break;
case PROP_CLIMB_RATE:
priv->climb_rate = g_value_get_double (value);
@@ -294,7 +294,7 @@ gtk_cell_renderer_spin_start_editing (GtkCellRenderer *cell,
if (!priv->adjustment)
return NULL;
spin = gtk_spin_button_new (g_object_ref (priv->adjustment),
spin = gtk_spin_button_new (priv->adjustment,
priv->climb_rate, priv->digits);
if (cell_text->text)