Re: Parent receiving child's button press event

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

 



On 31.08, Nicola Fontana wrote:
> Il Tue, 30 Aug 2016 17:48:34 -0700 Jim Heald <jhdoubleoseven@xxxxxxxxx> scrisse:
> 
> > Thank you so much! It's literally these return True things that keep
> > throwing me off.
> > 
> > Do you have a suggestion of somewhere I can read about all of these
> > conventions?
> > ...
> 
> They are not conventions, they are documented behavior: just pay
> attention to the signal documentation. In your specific case you
> probably connected a callback to the "button-press-event" signal.
> Citing the relevant documentation [1]:
> 
>     Returns: TRUE to stop other handlers from being invoked for
>     the event. FALSE to propagate the event further.
> 
> I think this is respected for all "*-event" signals.
> 
> [1] https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-button-press-event
> 
> Ciao.
> -- 
> Nicola

Only some of the docs for these signals have been updated, but please use
GDK_EVENT_PROPAGATE or GDK_EVENT_STOP instead. Same for mainloop
sources, where you should use G_SOURCE_CONTINUE and G_SOURCE_REMOVE.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux