Re: gtktextview render hint-rules effect



thanks,
but my questions was about GTK_TEXT_VIEW widget.!

I use this function to set "rules hint" property to a TREE_VIEW object.
gtk_tree_view_set_rules_hint (GtkTreeView *tree_view, gboolean setting);

but wath about a TEXT_VIEW? how can i do the same thing?

bye


On Mon, Mar 17, 2008 at 3:12 PM, Damien Caliste <damien caliste cea fr> wrote:
> Hello,
>
> Le 17/03/2008, mbrz <m baruze tiscali it> 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


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