Need a per-subscription callback context parameter

Bug #901692 reported by Jussi Pakkanen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Geis
Triaged
Wishlist
Stephen M. Webb
geis (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Suppose you have an application with an unspecified number of windows, which need e.g. drag gestures. Currently you can only have one function (existing at compile time) that as a callback. Thus the application can not tell which window should receive which gesture unless they maintain their own window id -> window object mapping table. This is cumbersome and extra work for developers.

An alternative is that the user can specify a per-subscription context (void pointer) that they can then extract from the event object, just like the callback parameters in Gtk+ and Qt.

Stephen M. Webb (bregma)
Changed in utouch-geis:
status: New → Triaged
assignee: nobody → Stephen M. Webb (bregma)
importance: Undecided → High
Changed in utouch-geis (Ubuntu):
importance: Undecided → Medium
Changed in utouch-geis:
importance: High → Medium
Changed in utouch-geis (Ubuntu):
status: New → Triaged
Stephen M. Webb (bregma)
Changed in utouch-geis:
importance: Medium → Wishlist
Changed in utouch-geis (Ubuntu):
importance: Medium → Wishlist
affects: utouch-geis (Ubuntu) → geis (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.