Skip to content

Improve type-safety of return types of callback functions

Ghost User requested to merge (removed):master into master

The impetus of this patch were the invalid return types of ButtonHandler, DrawHandler and SizeChangeHandler.

The C++ implementation internally uses partial template specialization which is needed to separate the type "void" from other data types.

The file gtk.cc contains comments with HTTP links to Gtk and Xfce documentation which can be used to verify the handler function signatures.

Edited by Ghost User

Merge request reports