emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bad resizing upon detaching/reattaching GTK toolbar


From: David Kastrup
Subject: Re: Bad resizing upon detaching/reattaching GTK toolbar
Date: Thu, 10 Feb 2005 22:11:07 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Jan D." <address@hidden> writes:

> David Kastrup wrote:
>
>>This bug report will be sent to the Free Software Foundation,
>>not to your local site managers!
>>Please write in English if possible, because the Emacs maintainers
>>usually do not have translators to read other languages for them.
>>
>>Your bug report will be posted to the address@hidden mailing list.
>>
>>Please describe exactly what actions triggered the bug
>>and the precise symptoms of the bug:
>>
>>When one detaches and reattaches the toolbar by dragging on its
>>handle, each time the total size of the Emacs window shrinks.  This is
>>particularly noisome since it is not easy to reattach the toolbar
>>without the state attached/detached flickering a few times, and each
>>time one line of the window is gone.
>
> I can not reproduce this, what window manager are you running?

Fluxbox.

> Do you get the same behaviour if you disable and enable
> tool-bar-mode?

First I get a backtrace.  Sigh.

Debugger entered--Lisp error: (wrong-type-argument keymapp nil)
  signal(wrong-type-argument (keymapp nil))
  define-key-after(nil [customize] (menu-item "customize" customize :image 
(image :type xpm :file 
"/usr/local/emacs-21/share/emacs/21.3.50/lisp/toolbar/preferences.xpm") :help 
"Edit preferences (customize)"))
  tool-bar-local-item("preferences" customize customize nil :help "Edit 
preferences (customize)")
  apply(tool-bar-local-item "preferences" customize customize nil (:help "Edit 
preferences (customize)"))
  tool-bar-add-item("preferences" customize customize :help "Edit preferences 
(customize)")
  tool-bar-setup()
  tool-bar-mode(toggle)
  call-interactively(tool-bar-mode)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)

Then the frame gets oversized (namely, the text window size does not
shrink to accommodate the toolbar size, and consequently the
minibuffer gets off-screen).  If I disable the toolbar again, the
frame shrinks to normal size again, as the window size stays the same.
However, this first toggling is "neutral" only because of the back
trace, apparently (I have debug-on-error set to t).

The next time I call tool-bar-mode (no backtrace this time), the
window-size _adapts_ to the reduced space.  Disabling tool-bar-mode
again, the window does _not_ adapt to the additional space again.

After that, enabling the toolbar makes the size adapt, so the frame
size stays more or less the same while the window size shrinks, and
disabling the toolbar lets the window size stay the same, thus causing
the frame to shrink.

The same happens when detaching and reattaching the toolbar: detach
the toolbar, and the window does not grow in spite of the additional
space, attach it again, and the window shrinks.

Maybe this is an effect of the combination of my line height and the
size of the toolbar?  I use 10x20 as my normal font, and the startup
geometry is 80x35.

My X resources contain Emacs.toolBar: 0, so I don't have a toolbar on
startup normally.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

[Prev in Thread] Current Thread [Next in Thread]