Hello,

Le 17/03/2008, mbrz <[EMAIL PROTECTED]> a écrit :
> How can I realise a hint-rules effect like gtktreeview to have lines
> rendered with alternating row colors on my gtktextview widget ?
You can do this:
 g_object_set(G_OBJECT(treeView), "rules-hint", TRUE, NULL);

When you read the documentation about the treeview
(http://library.gnome.org/devel/gtk/unstable/GtkTreeView.html ), you
can see that it has a property called "rules-hint", since this property
has no getter/setter function, you can access it with the generic
GObject setter function g_object_set
(http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-set
 )
This routine can change at once one or several properties by giving
pairs name-value, finishing the variable argument list with NULL.

Damien.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to