[maemo-developers] HildonControlbar
From: Tommi Komulainen tommi.komulainen at nokia.comDate: Tue Apr 3 18:20:07 EEST 2007
- Previous message: HildonControlbar
- Next message: metalayer-crawler - good idea?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 2007-04-03 at 04:03 -0700, ext Mike Morrison wrote: > 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: > > https://stage.maemo.org/svn/maemo/projects/haf/trunk/hildon-libs/hildon-widgets/hildon-controlbar.c > > 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. This is so that the underlying GtkRange does the 'move to pointer position' action rather than 'make a page up/down scroll towards the pointer' On normal desktop you can see the difference of pressing left/middle button on the empty area of a scrollbar. -- Tommi Komulainen <tommi.komulainen at nokia.com>
- Previous message: HildonControlbar
- Next message: metalayer-crawler - good idea?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]