how to bind the mouse click with the key status?



I want to bind the Ctrl_Mouseclick and Shift_Mouseclick.

How can I do that?

 

Right now I can think is to connect mouse and keypress signal, record the ctrl and shift key status.

 

Is there better way to do this? I check the gtkTreeView code, looks they use a function called
gtk_binding_entry_add_signall,

But the document didn’t say much about this function.

 

Thanks.

 



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