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 705624 - paned: minus the size by the handle for the for_child1 computation.
paned: minus the size by the handle for the for_child1 computation.
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
3.9.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 705527 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-08-07 16:56 UTC by Alban Browaeys
Modified: 2013-09-12 11:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
paned: minus the size by the handle for the for_child1 computation. (1.33 KB, patch)
2013-08-07 16:56 UTC, Alban Browaeys
committed Details | Review

Description Alban Browaeys 2013-08-07 16:56:16 UTC
Created attachment 251092 [details] [review]
paned: minus the size by the handle for the for_child1 computation.

I wonder if there could be side effects on child1 size allocated (ie I clamp it to a smaller size... we might want to make this conditional to when child2 cannot hold the handle size).

Fixes:
    (rhythmbox:22802): Gtk-CRITICAL **:
    _gtk_widget_get_preferred_size_for_size: assertion 'size >= -1' failed
    
    that is gtk_paned_get_preferred_size_for_opposite_orientation calls
    _gtk_widget_get_preferred_size_for_size on child2 with a negative
    size.
    
    As gtkpaned size was (32), child1 minimum size was (55) then
    for_child1 became (32) for an handle_size of (5). Thus for_child2
    ended up as (-5).
Comment 1 Matthias Clasen 2013-08-14 04:13:22 UTC
Attachment 251092 [details] pushed as 6ea4c1a - paned: minus the size by the handle for the for_child1 computation.
Comment 2 Sébastien Wilmet 2013-09-12 11:44:27 UTC
*** Bug 705527 has been marked as a duplicate of this bug. ***