public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: Gene Smith <gds@chartertn.net>
Cc: insight@sourceware.org
Subject: Re: GUI configuration changes (How to?)
Date: Fri, 11 Jan 2013 19:34:00 -0000	[thread overview]
Message-ID: <50F06925.9050701@redhat.com> (raw)
In-Reply-To: <50D4F6C2.9050500@chartertn.net>

On 12/21/2012 03:54 PM, Gene Smith wrote:
> Unfortunately, some of the source file names are now so long that they
> don't fit in the box in the top upper left of the main window. Is there
> a way to make that box wide enough so accommodate the longest file name
> automatically? (This would require that the middle box containing
> function names to automatically become smaller, however, I never use
> this box anyhow.)

That is a possibility. A nicer (and more costly implementation) would be 
to decide upon some sort of heuristic for displaying very long names, 
e.g, display the last N characters of the filename preceded by "..." and 
then use hover balloons to display the full filename if the user hovers 
over it. [That last bit is probably slightly tricky.]

The code to fill the combobox is in srcwin.itb, SrcWin::fillNameCB.

> But I have no clue where in the code (tk/tcl?) this is determined

These are in srcwin.itb. Look for the combobox::combobox calls for 
$_statbar.name and $_statbar.func in SrcWin::_build_win.

> I can scroll the file name box content (only when dropped down) but it
> is somewhat awkward and it forces you to always select something.

Hmm. On Linux at least, hitting escape or clicking outside the bounds of 
the combobox will cancel the drop down. Does it not do this for you? 
[What host/Tcl version?]

> There is also a function browser window that does allow you to see a wider
> view of the filename list, but I don't see a way for the selected file
> there to instantly appear in the main window, only in its own file
> viewer window.

Adding an item to open in the main source window should be doable (and 
relatively easy).

Keith

      reply	other threads:[~2013-01-11 19:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-21 23:54 Gene Smith
2013-01-11 19:34 ` Keith Seitz [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=50F06925.9050701@redhat.com \
    --to=keiths@redhat.com \
    --cc=gds@chartertn.net \
    --cc=insight@sourceware.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).