all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
Cc: emacs-devel@gnu.org
Subject: Re: tool bar: C-... and S-... fail in GTK builds
Date: Wed, 15 Feb 2006 11:57:08 +0100 (CET)	[thread overview]
Message-ID: <200602151057.k1FAv8lR009084@coolsville.localdomain> (raw)
In-Reply-To: <87acct7u0e.fsf@jurta.org> "from Juri Linkov at Feb 14, 2006 07:43:14 pm"

> >>>>   (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.

      reply	other threads:[~2006-02-15 10:57 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-21 16:10 tool bar: mouse-2, mouse-3, C-mouse-1, S-mouse-1? Reiner Steib
2006-01-31 16:50 ` Reiner Steib
2006-02-06  7:47   ` Juri Linkov
2006-02-07 20:32     ` Reiner Steib
2006-02-08  9:18       ` Juri Linkov
2006-02-08 17:36         ` Reiner Steib
2006-02-09 17:34           ` Juri Linkov
2006-02-09 21:18             ` Reiner Steib
2006-02-10  6:57             ` Jan D.
2006-02-11  1:03               ` Juri Linkov
2006-02-12 18:17                 ` Jan Djärv
2006-02-09 21:22         ` 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-10  0:57           ` tool bar: C-... and S-... fail in GTK builds Juri Linkov
2006-02-14 10:10             ` Jan D.
2006-02-14 17:43               ` Juri Linkov
2006-02-15 10:57                 ` Jan D. [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200602151057.k1FAv8lR009084@coolsville.localdomain \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.