[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tool bar: C-... and S-... fail in GTK builds
From: |
Jan D. |
Subject: |
Re: tool bar: C-... and S-... fail in GTK builds |
Date: |
Wed, 15 Feb 2006 11:57:08 +0100 (CET) |
> >>>> (define-key tool-bar-map [S-help] 'info)
> >>> Did you try with a GTK build? It fails with GTK for me, but it works
> >>> with an X toolkit build:
> >> Yes, it failed for me with a GTK build, and now I've verified that
> >> it works with a non-toolkit build. So there is a bug in GTK builds.
> >
> > I've fixed it now. The modifiers are not available for the callback that
> > GTK invokes when a button is clicked, so previously I just set the
> > modifiers to zero. I didn't realize there was a use for them.
>
> Thanks! Could you see how hard would be to implement mouse-2 and mouse-3
> clicking on a tool bar item? Is the main obstacle only in the format
> of the menu keymap specification?
It is not hard on the C level. we can put the button clicked in the code
part of the struct input_event, and keyboard.c would then look at that
also when constructing an event (currently code is ignored for tool bar
events).
But I don't know to construct the Lisp event. It could be done like
for native scroll bars. It is a mouse-event with a position that says
scroll bar. But the lisp code expects the position to contain a window,
but for non-native tool bars (i.e. GTK) there is no window to put in
there, just a frame.
Jan D.
Jan D.
- Re: tool bar: mouse-2, mouse-3, C-mouse-1, S-mouse-1?, (continued)
- Re: tool bar: mouse-2, mouse-3, C-mouse-1, S-mouse-1?, Reiner Steib, 2006/02/08
- Re: tool bar: mouse-2, mouse-3, C-mouse-1, S-mouse-1?, Juri Linkov, 2006/02/09
- Re: tool bar: mouse-2, mouse-3, C-mouse-1, S-mouse-1?, Reiner Steib, 2006/02/09
- Re: tool bar: mouse-2, mouse-3, C-mouse-1, S-mouse-1?, Jan D., 2006/02/10
- Re: tool bar: mouse-2, mouse-3, C-mouse-1, S-mouse-1?, Juri Linkov, 2006/02/10
- Re: tool bar: mouse-2, mouse-3, C-mouse-1, S-mouse-1?, Jan Djärv, 2006/02/12
- tool bar: C-... and S-... fail in GTK builds (was: tool bar: mouse-2, mouse-3, C-mouse-1, S-mouse-1?), Reiner Steib, 2006/02/09
- Re: tool bar: C-... and S-... fail in GTK builds, Juri Linkov, 2006/02/09
- Re: tool bar: C-... and S-... fail in GTK builds, Jan D., 2006/02/14
- Re: tool bar: C-... and S-... fail in GTK builds, Juri Linkov, 2006/02/14
- Re: tool bar: C-... and S-... fail in GTK builds,
Jan D. <=