majid wrote:
> thanks,
> but my questions was about GTK_TEXT_VIEW widget.!

Oh, jeez.  I should learn how to read!

> 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?

No, I don't believe there's a way to do this with GtkTextView, at least 
not without some nasty hacky fun to determine line boundaries in your 
text, and then setting attributes on the text for a different background 
color (not sure if it's even possible, and I doubt it would be 
performant).  That way lies madness, though...

        -brian

> 
> bye
> 
> 
> On Mon, Mar 17, 2008 at 3:12 PM, Damien Caliste <[EMAIL PROTECTED]> wrote:
>> 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
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
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