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 643258 - Overlay improvements
Overlay improvements
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2011-02-25 02:07 UTC by Cosimo Cecchi
Modified: 2011-02-25 14:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
overlay: use the internal child for scrolled window allocations (1.25 KB, patch)
2011-02-25 02:07 UTC, Cosimo Cecchi
none Details | Review
overlay: use the natural size request instead of the minimum (922 bytes, patch)
2011-02-25 02:07 UTC, Cosimo Cecchi
committed Details | Review
overlay: make sure not to request negative allocations (1.83 KB, patch)
2011-02-25 02:07 UTC, Cosimo Cecchi
committed Details | Review
overlay: don't make 'relative-widget' construct only (1.09 KB, patch)
2011-02-25 02:07 UTC, Cosimo Cecchi
committed Details | Review
overlay-child: always allocate to the real widget the full allocation (3.00 KB, patch)
2011-02-25 02:07 UTC, Cosimo Cecchi
committed Details | Review

Description Cosimo Cecchi 2011-02-25 02:07:24 UTC
Here are some patches I made to the overlay copy I use in Nautilus.
Comment 1 Cosimo Cecchi 2011-02-25 02:07:26 UTC
Created attachment 181885 [details] [review]
overlay: use the internal child for scrolled window allocations
Comment 2 Cosimo Cecchi 2011-02-25 02:07:30 UTC
Created attachment 181886 [details] [review]
overlay: use the natural size request instead of the minimum

So that we don't break e.g. ellipsizable labels.
Comment 3 Cosimo Cecchi 2011-02-25 02:07:33 UTC
Created attachment 181887 [details] [review]
overlay: make sure not to request negative allocations

Or to allocate a child more than the available overall allocation.
Comment 4 Cosimo Cecchi 2011-02-25 02:07:36 UTC
Created attachment 181888 [details] [review]
overlay: don't make 'relative-widget' construct only

It can vary in time and it won't hurt.
Comment 5 Cosimo Cecchi 2011-02-25 02:07:39 UTC
Created attachment 181889 [details] [review]
overlay-child: always allocate to the real widget the full allocation

I don't get why we cache allocation here, and we should always just proxy
the real widget allocation/request.
Comment 6 Ignacio Casal Quinteiro (nacho) 2011-02-25 10:00:41 UTC
Review of attachment 181885 [details] [review]:

I don't think this is good, the main point of this relative widget is to avoid special case the scrolled window. what you have to do is: add(sw, view) so the relative widget is already the child of the scrolled window.
Comment 7 Ignacio Casal Quinteiro (nacho) 2011-02-25 10:01:05 UTC
Review of attachment 181886 [details] [review]:

Go for it.
Comment 8 Ignacio Casal Quinteiro (nacho) 2011-02-25 10:01:59 UTC
Review of attachment 181887 [details] [review]:

Looks good.
Comment 9 Ignacio Casal Quinteiro (nacho) 2011-02-25 10:02:45 UTC
Review of attachment 181888 [details] [review]:

Fine by me.
Comment 10 Ignacio Casal Quinteiro (nacho) 2011-02-25 10:04:01 UTC
Review of attachment 181889 [details] [review]:

Go for it. I think this is a left over from when this widget made something with animations.
Comment 11 Cosimo Cecchi 2011-02-25 14:52:37 UTC
(In reply to comment #6)

> I don't think this is good, the main point of this relative widget is to avoid
> special case the scrolled window. what you have to do is: add(sw, view) so the
> relative widget is already the child of the scrolled window.

I think I might find another way of doing this in nautilus then.
Closing this as FIXED now, as I pushed the other patches to master, thanks for the review.