Re: disabling notebook shortcuts



Paul Pogonyshev wrote:
Hi,

Is there a clean way to disable GtkNotebook keyboard shortcuts?  For
instance, if I use a notebook widget (with tabs hidden, obviously)
for a wizard dialog, I don't want the user to break the thing down
by pressing Ctrl-PgDown and force a tab switch without the program's
consent.

OK, I'll answer myself.  Connect to `key-press-event' and
`key-release-event' and use g_signal_stop_emission() in the handler.

Paul



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