Re: key bindings

2006-01-15 Thread Torsten Schoenfeld
On Sat, 2006-01-14 at 22:10 +0100, Jaap Karssenberg wrote: > I noted that there is no equivalent of gtk_bindings_* in the perl api. > But these methods are also not mentioned in the api document as missing. > Am I missing something or does the perl api lack a method to set > keybindings ? No,

key bindings

2006-01-14 Thread Jaap Karssenberg
"key_press_event" ad checking keyvalues myself, but it seems to me this is not a clean way to add keys. I do not want to add accelerators that influence the entire application, but just extra key bindings for certain widgets. Thanks, -- Jaap <[EM

Re: spinbutton behaviour and key bindings for treeview

2005-04-05 Thread muppet
On Apr 5, 2005, at 6:52 PM, BoÅtjan ÅpetiÄ wrote: ... ok, it's key_release, but i guess it's irrelevant? maybe, maybe not. why did you choose release? mmm... just so that nothing happens if i hold the key instead of simply hitting it... i don't like it if holding button means consecutive actions

Re: spinbutton behaviour and key bindings for treeview

2005-04-05 Thread Boštjan Špetič
... ok, it's key_release, but i guess it's irrelevant? maybe, maybe not. why did you choose release? mmm... just so that nothing happens if i hold the key instead of simply hitting it... i don't like it if holding button means consecutive actions... Here's a working example i just cooked up: tnx,

Re: spinbutton behaviour and key bindings for treeview

2005-04-04 Thread muppet
On Apr 3, 2005, at 5:22 PM, BoÅtjan ÅpetiÄ wrote: Yes. Connect to the key-press-event of the tree view, handle events for which $event->keyval == $Gtk2::Gdk::Keysyms{ Delete } and return TRUE. When you edit a cell, the tree view doesn't have focus and thus doesn't receive events either -- so you

Re: spinbutton behaviour and key bindings for treeview

2005-04-03 Thread Boštjan Špetič
Yes. Connect to the key-press-event of the tree view, handle events for which $event->keyval == $Gtk2::Gdk::Keysyms{ Delete } and return TRUE. When you edit a cell, the tree view doesn't have focus and thus doesn't receive events either -- so your signal handler never gets called. ... well, i don'

Re: spinbutton behaviour and key bindings for treeview

2005-04-03 Thread Torsten Schoenfeld
On Sun, 2005-04-03 at 23:00 +0200, Boštjan Špetič wrote: [Please don't start a new thread by replying to another one.] > 2) i want to bind the 'delete' key press on the treeview to deleting > the active row. but, i want to be still able to edit the cells, which > means, that i still want to pre

spinbutton behaviour and key bindings for treeview

2005-04-03 Thread Boštjan Špetič
hi 1) i've noticed strange spinbutton behaviour: - i've created it with glade and set it a default value. it is placed in a notebook. - the i changed it's value from the code, but using ->set_text call. - if it's tab is active while the update happens, all is well, but if i have some other tab op