apply-tag callback calls gtk_text_buffer_apply_tag() which triggers new apply-tag signal and so on...

2007-04-26 Thread Adam Tertial
Hi

I have some code which needs to call
gtk_text_buffer_apply_tag() when it receives a
apply-tag signal. Calling
gtk_text_buffer_apply_tag() in turn generates a new
apply-tag signal and the program loops forever.

I'm pretty new to GTK so I may be missing something
obvious. Can anyone think of a workaround?

Thanks


  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


signal emitted when font, tab width changes in GtkSourceView/GtkTextView?

2007-04-24 Thread Adam Tertial
Hi

I'm wondering if a signal is emitted when a user
changes the font, tab width etc in a
GtkSourceView/GtkTextView object.

Any ideas?

Thanks


  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: signal emitted when font, tab width changes in GtkSourceView/GtkTextView?

2007-04-24 Thread Adam Tertial
--- David Neèas (Yeti) [EMAIL PROTECTED] wrote:

 On Tue, Apr 24, 2007 at 10:02:19PM +0100, Adam
 Tertial wrote:
  I'm wondering if a signal is emitted when a user
  changes the font, tab width etc in a
  GtkSourceView/GtkTextView object.
  
  Any ideas?
 
 GtkTextView does not provide any controls to change
 font,
 tab positions, etc.  Therefore the user has to use
 something
 else to change them.  And this something else has to
 emit
 some signal otherwise no one would notice the user
 is
 attempting to change them.  If connecting to this
 something
 else's signals is no option because you do not want
 to care
 what caused the change, then there are no specific
 `user'
 changes, all changes can be treated as programmatic.
 GtkSourceView has tab-width property, GtkTextView
 has
 tabs property,

How would I know when these properties change?

 font changes occur as tag
 applications
 (emitting tag-apply), or probably by other means
 in
 GtkSourceView (I don't use it), but these should
 emit
 corresponding signals too.
 
 Yeti



  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list