Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80016 - xterm ebuilds configure xterm with --disable-toolbar
Summary: xterm ebuilds configure xterm with --disable-toolbar
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-29 19:35 UTC by Joe Wells
Modified: 2005-03-11 12:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Wells 2005-01-29 19:35:03 UTC
The xterm ebuilds all supply the --disable-toolbar option to configure.

This prevents getting the new menu bar feature.

If adding --enable-toolbar prevents xterm from working, can you please add a comment to the ebuild explaining that so that I won't complain?

Otherwise, if --enable-toolbar works, can you please switch to that?

Note that compiling with --enable-toolbar does not force people to have menu bars.  The presence or absence of a menu bar can still be selected when xterm is started with X resources and can also be toggled at run-time with key bindings and escape sequences.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Thomas Dickey 2005-01-30 10:00:24 UTC
As far as I know, the only issue with the toolbar is that
it cannot be properly enabled after startup (a geometry bug).
But the resource for disabling it, and the escape sequence
for disabling it work.  So it should be safe to add (though
not everyone would like it).
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2005-03-10 10:24:23 UTC
xterm-200 is making its way into portage right now.  The local use flag "toolbar" will be used to enable and disable the toolbar, at your request.  Please test.
Comment 3 Joe Wells 2005-03-11 06:42:44 UTC
The toolbar seems to work fine in x11-terms/xterm-200 when this ebuild is merged with "toolbar" turned on.  I can toggle the toolbar on and off with the menu item.

However, for some reason, all my X resource settings are being ignored.  When I re-emerge with "toolbar" off, I get an xterm that pays attention to my X resources.

My X resources for xterm look like this (output of "xrdb -query | grep -i xterm"):

XTerm.VT100.font:       9x19
XTerm.VT100.WideChars:  true
XTerm.VT100.FaceName:   Courier New-8
XTerm.VT100.EightBitInput:      false
XTerm.VT100.saveLines:  5000
XTerm.VT100.backarrowKey:       true
XTerm.VT100.translations:       #override
XTerm.VT100.Geometry:   100x39
XTerm.VT100.CutNewline: false

I'm guessing that somehow enabling the toolbar is changing the class name xterm uses when looking for resources.  Or maybe it is changing the widget name.

Any idea why?

I don't know whether to reopen this bug or enter a new bug.  Please advise.
Comment 4 Joe Wells 2005-03-11 07:05:16 UTC
I suspect my problem with X resources is that there must now be an additional widget between the application shell and the VT100 widget.  I'll check if this is the case later today and report back.
Comment 5 Joe Wells 2005-03-11 12:08:31 UTC
I can now verify that my resource problem is caused by the vt100 widget being at a new location in the widget tree: xterm.form.vt100.

So everything works with the new toolbar feature except that I can't figure out how to prevent xterm from starting up with the toolbar showing.  Instead, I have to hide the toolbar manually using the menu or an escape sequence.  Despite the comments above, I could not find any X resource that governs this either in the documentation or in the code.  If anyone knows how to do this I would be happy to be proven wrong.
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2005-03-11 12:35:47 UTC
I know someone who might have an idea ... =)