Re: on_key_press_event after reparent



Maybe you need to call grab_focus() on your pane :

http://developer.gnome.org/gtkmm/2.24/classGtk_1_1Widget.html#a4c376dd31e5b4d616d8f914338fea8b6

Yann

On 14/06/11 11:32, Jason Rosson wrote:
hi all,

perhaps i'm doing the reparent incorrectly but afterwards i lose the
ability to receive on_key_press_events.
if you compile the code below you get output to the console when you hit
a key within the window.  if you
hit 'h' to split the pane (which works fine) on_key_press_events no
longer seem to be reaching the Pane
class.

http://snipt.org/xYng

i'm running gtkmm-2.4 on ubuntu 11.04 out of the box.

thanks for any pointers!

jason



_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


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