After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 127961 - GtkHandleBox + GtkToolbar don't work well together
GtkHandleBox + GtkToolbar don't work well together
Status: RESOLVED DUPLICATE of bug 120646
Product: gtk+
Classification: Platform
Component: Widget: Other
2.3.x
Other Linux
: Normal normal
: future
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2003-11-26 10:48 UTC by Jeroen Zwartepoorte
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Jeroen Zwartepoorte 2003-11-26 10:48:17 UTC
Run testmerge, drag the toolbar out of the window by using the handle. The
toolbar will only show the vertical arrow and no buttons. If you try to
drag the toolbar back into the window in the same action (so you didn't
release the mouse button), the window won't accept the toolbar back again.
If you drop the toolbar outside of the window and then in a new buttonpress
drag it back to the window, it'll accept it again. In the
drag-outside-and-back-in action, there is some paint corruption going on in
the area where the toolbar was docked.

This is with cvs head from yesterday.
Comment 1 Matthias Clasen 2003-11-26 10:52:27 UTC
Regarding the arrow-only appearance, I believe you're supposed to set 
show-arrow to FALSE while the tooolbar is undocked. 




Regarding the undock-and-immediately-dock-again action, does that work 
with other widgets ?
Comment 2 Jeroen Zwartepoorte 2003-11-26 11:48:29 UTC
The difference in behavior in undock-and-redock and redocking
immediately is this:

If you undock and redock, then you can move the toolbar anywhere along
the horizontal line where it was docked and it will be redocked
automatically.

If you to redock immediately, then you can redock it, but you have to
drag the toolbar to the left vertical line where the toolbar was
docked (difficult to do since the line is very short). Dragging over
the horizontal line won't work.

I haven't tried with a different widget (i doubt it'll make any
difference).

About the arrow, does an app author have to do that manually or can
the toolbar listen for a certain event/signal? (the latter would be
more useful). Or have the handle do it when it detects that is
contains a GtkToolbar?
Comment 3 Matthias Clasen 2003-11-26 12:16:44 UTC
Looking at the handlebox docs, I see child_detached and child_attached 
signals, so I guess you have a chance to react when the child is 
detached. 




I think this is another little item for the app window widget to take 
care of.
Comment 4 Matthias Clasen 2004-02-17 12:50:51 UTC

*** This bug has been marked as a duplicate of 120646 ***