Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » gtktextview render hint-rules effect [RSS Feed]

#1 March 17, 2008 14:53:45

m.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

gtktextview render hint-rules effect


Hi there,

How can I realise a hint-rules effect like gtktreeview to have lines
rendered with alternating row colors on my gtktextview widget ?

everybody can help me with this question?

thanks._______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#2 March 19, 2008 15:13:43

m.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

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 <> wrote:
> Hello,
>
> Le 17/03/2008, mbrz <> 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
>
>http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

  • Root
  • » GTK+
  • » gtktextview render hint-rules effect [RSS Feed]

Board footer

Moderator control

Enjoy the 11th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support