Re: [gtk-list] Re: No Double click event?



>What about detecting which mouse button was pressed?

With GdkEvent * gtk_get_current_event() you find out the event that
triggered the callback.

like:

GdkEvent * event;
event = gtk_get_current_event();

if ( event->type == GDK_BUTTON_RELEASED )
   printf("Button %d was pressed\n", event->button);


Ciao Christoph   (grover@hottemax.uni-muenster.de)
+--------------
  finger grover@hottemax.uni-muenster.de for PGP public key
  http://hottemax.uni-muenster.de/~grover/index.html
  A large number of installed systems work by fiat.
  That is, they work by being declared to work.
  -- Anatol Holt 



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