Re: GtkTreeCellDataFunc



Am Don, 2002-08-01 um 15.10 schrieb Piotr Waśkiewicz:
> Bernd Demian wrote:
> > Hi all,
> > did anybody write his own GtkTreeCellDataFunc function or knows anybody
> > how to write it. I can't find any note.
> 
> Function to display text, when renderer is textrenderer, and column type 
> is G_TYPE_POINTER:
> 
> static void
> cell_function (GtkTreeViewColumn *tree_column,
> 	       GtkCellRenderer   *cell,
> 	       GtkTreeModel      *tree_model,
> 	       GtkTreeIter       *iter,
> 	       gpointer           data)
> {
> 	gchar *name;
> 	
> 	gtk_tree_model_get (tree_model, iter, NAME_COLUMN, &name, -1);
> 
> 	g_object_set (G_OBJECT (cell), "text", name, NULL);
> }
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 
dziekuje bardzo,
thanks for the help, btw how can a manipulate the spacing between two
renderer in a visible column. Now the space is to wide for me. 
THANKS IN ADVANCE bernd





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