Re: Problem With Setting GtkCellRendererText in a Tree View..



On Thu, May 22, 2003 at 05:12:33PM +0000, Bijoy Chandrasekharan wrote:

But my problem is that i get the "edited" signal only when a
'enter' or 'tab' key is pressed or I click on the tree view.

It's also called, I'm pretty sure, when there's a focus-out event on that
editable (which is why it's called when you click on the treeview).  So in
your OK button clicked callback, you might try grabbing focus, processing
pending events, then saving the contents of the store. In Python:

def on_ok_clicked(button, data_store):
    button.grab_focus()
    while gtk.events_pending():
        gtk.main_iteration()
    data_store.save()           
                        

Dave Cook



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