Re: Having an event box pass unhandled events to its child



Strange. Perhaps the baseclass of gtkfilechooserbutton changed? In any case, Chris found out why it doesn't work in some cases, which is what I really wanted to know. :-)

Regards,
Dov

2009/5/25 jonathan david <jodagm gmail com>
Hi
I just compiled your code with Gtk 2.16.1 and it works just fine - I get the same print for both buttons:

"cb_button_press_event
Got right mouse button!"

Regards,
Jonathan

On Mon, May 25, 2009 at 6:46 AM, Dov Grobgeld <dov grobgeld gmail com> wrote:
I did. See my message to the list from 21 May 2009 20:04 with the subject "Doing right click on some widgets doesn't work". That program creates two buttons. One "normal" and one "file chooser button". I attach the same signals to them, but the signal handler for button-press-event is never called for the file chooser button. I thought I understood signals in gtk by now. But this one beats me...

Dov

2009/5/25 Chris Vine <chris cvine freeserve co uk>

On Sun, 24 May 2009 22:18:23 +0300
Dov Grobgeld <dov grobgeld gmail com> wrote:
> Thanks for trying to help. Unfortunately neither
> gtk_widget_add_events() nor the gtk_widget_event() "trick" is able to
> solve the problem. Regarding the gtk_widget_add_events(), I added a
> call to
>
>     gtk_widget_add_events(w_fs_button, GDK_ALL_EVENTS_MASK);
>
> to m the program from my previous email, but didn't make any
> difference. The following call is still ignored/blocked:
>
>     g_signal_connect(w_fs_button, "button-press-event",
>                      G_CALLBACK(cb_button_press_event), NULL);
>
> Trying to proxy events by using a gtk_event_box() doesn't work either.
>
> Is there no "strace" like system in gobject that makes it possible to
> dump all signals that are being sent in a program? That might help me
> figuring out what is going wrong.

I should aim to provide the simplest program example which demonstrates
the problem.  If it is just a matter of button press events, that
should be very simple indeed.

Chris



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





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