[maemo-developers] HildonControlbar

From: Mike Morrison mike_morrison at alumni.uvic.ca
Date: Tue Apr 3 14:03:03 EEST 2007
Can someone explain the following code comment & code block to me (or tell
me where to find the "specs").

 * Event handler for button press
 * Need to change button1 to button2 before passing this event to
 * parent handler. (see specs)
 * Also updates button_press variable so that we can draw hilites
 * correctly
static gint hildon_controlbar_button_press_event(GtkWidget * widget,
                                                 GdkEventButton * event)

Code can be seen here:


Why does it need to change the button? I have a button handler on my main
window and double left clicks are being passed up to my handler as a middle
clicks I usually do a special operation on the middle click, but I guess I
will need to #ifndef it.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20070403/d798273a/attachment.htm 
More information about the maemo-developers mailing list