[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtkmm
Subject:    [gtkmm] Gtk::CellRendererText: and validations
From:       Leandro Fanzone <leandro () hasar ! com>
Date:       2004-04-26 19:19:33
Message-ID: 408D60C5.1030903 () hasar ! com
[Download RAW message or body]

I am trying to derive a custom class from Gtk::CellRendererText to 
achieve basic validations. I fail to understand how this can be done. I 
override on_edited(), but such function only has a readonly string with 
the new text as a parameter (besides the path), so I can't modify it in 
case it's an invalid string. I can't also use property_text() to change 
the cell, it won't have any effect. I tried to follow the source code, 
but I didn't understand how to do this. To call edited() from on_edited 
is to recurse infinitely. To call the parent's virtual function also 
won't work. Any ideas?
Thank you very much,

Leandro Fanzone.
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic