unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: TomSW <tom.weissmann@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs 23, adding 2 buttons/icons to beginning of toolbar. howto?
Date: Thu, 25 Jun 2009 06:48:04 -0700 (PDT)	[thread overview]
Message-ID: <4aa6afd4-4dea-4b7a-8371-4e3eb10f7631@33g2000vbe.googlegroups.com> (raw)
In-Reply-To: m2ab3w8w0i.fsf@tenbit.pl

On Jun 25, 12:09 pm, Michal <rabbi...@tenbit.pl> wrote:
> TomSW <tom.weissm...@gmail.com> writes:
>
> > Are your arrows in the toolbar at all, for gdb buffers? When I tried
> > the toolbar completely changes...
>
> for GDB buffer they do not appear. I mean something else.
> Just put the breakpoint in let's say main.cpp and run Your application.
> When it stops in main.cpp switch Your cursor to main.cpp. You will see
> that "arrow" button appeared there. But ALSO the remaining part of
> buttons is the same as for *gud-main* buffer. Number of these buttons is
> different from those present in main.cpp just after opening main.cpp.
> So my arrow buttons are moved. Their position is different depending on
> I am in some *.cpp buffer that has just been "hit" by gdb or it
> wasn't.

It works like this: the tool bar items are fetched from the active
keymaps, starting with global-map, then the current major mode's map.
The global map's tool bar items are generated from the value of tool-
bar-items. Consequently it's not possible to add items to the
beginning of the tool bar by specifying tool bar items in the major
mode map, you need to change the value of tool-bar-items (as stated in
the info documents), which is what info mode and gud do.

regards,
Tom SW


  reply	other threads:[~2009-06-25 13:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-24 13:53 emacs 23, adding 2 buttons/icons to beginning of toolbar. howto? Michal
2009-06-24 19:02 ` TomSW
2009-06-25 10:09   ` Michal
2009-06-25 13:48     ` TomSW [this message]
2009-06-25 16:16       ` Michal

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=4aa6afd4-4dea-4b7a-8371-4e3eb10f7631@33g2000vbe.googlegroups.com \
    --to=tom.weissmann@gmail.com \
    --cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).