Re: non-obvious GtkTreeView API change



On 19 Aug 2001, Jonathan Blandford wrote:

> Just so people know, I changed GtkTreeView and GtkTreeViewColumn to
> ref/sink cells and columns.  This means that code that formerly did:

thanks.

> renderer = gtk_cell_renderer_text_new ();
> column = gtk_tree_view_column_new_with_attributes ("title", renderer, NULL);
> gtk_tree_view_append_column (tree_view, column);
> g_object_unref (renderer);
> g_object_unref (column);
> 
> Can now lose the two unref steps.

s/Can/Must/ ;)

> 
> Thanks,
> -Jonathan
> 

---
ciaoTJ





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]