Re: Disabling right-click behaviour of SpinButton



not sure of the finer details in GTK 2, but you can certainly try connecting a signal handler to button presses, before the default handler, then do nothing and return TRUE if it's a right-click to disable this feature (which i didn't even know about to be honest...)

that would knock out the context menu in the entry region though. i don't know if there'll be a way to figure out where the click landed and only do it if it was on theĀ + or - button.


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