Re: button_press_event in GTK2



Adrian Feiguin <feiguin magnet fsu edu> writes:
> Hi, I've been working on a widget that is a gtkfixed subclass. To capture
> button_presses I simply do 
> 
> widget_class->button_press_event = my_widget_button_press_handler;
> 
> in the class initialization. However this is not working with gtk2, for
> some reason, maybe a change that I'm not aware of, button presses seem
> not to be detected and the event handler is not being called. Can anybody
> give me a hint? Thanks alot,

I think GtkFixed is now GTK_NO_WINDOW by default, you can call
gtk_fixed_set_has_window().

Havoc




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