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 655831 - iconGrid: allow St.Bin as BaseIcon content
iconGrid: allow St.Bin as BaseIcon content
Status: RESOLVED INCOMPLETE
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on: 655220
Blocks:
 
 
Reported: 2011-08-02 17:06 UTC by Philippe Normand
Modified: 2015-03-05 10:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
iconGrid: allow St.Bin as BaseIcon content (3.20 KB, patch)
2011-08-11 19:52 UTC, Philippe Normand
rejected Details | Review
search: spinner animation in DummySearchProvider (2.71 KB, patch)
2011-08-11 19:53 UTC, Philippe Normand
rejected Details | Review

Description Philippe Normand 2011-08-02 17:06:24 UTC
BaseIcon currently accepts only a ClutterTexture as content. It'd be nice to allow St.Bin too so a spinner animation (like the one displayed in the top bar when an application is starting) could be displayed while loading the item thumbnail for instance.
Comment 1 Philippe Normand 2011-08-02 17:07:26 UTC
This could be useful for SearchProviders providing results that can take a while to load, like downloading thumbnails from internet.
Comment 2 Philippe Normand 2011-08-11 19:52:53 UTC
Created attachment 193659 [details] [review]
iconGrid: allow St.Bin as BaseIcon content
Comment 3 Philippe Normand 2011-08-11 19:53:07 UTC
Created attachment 193660 [details] [review]
search: spinner animation in DummySearchProvider

Code sample showing how to display a spinner animation in the results
icon grid while loading of the item thumbnail is being deferred.
Comment 4 Philippe Normand 2011-08-11 19:55:37 UTC
(In reply to comment #2)
> Created an attachment (id=193659) [details] [review]
> iconGrid: allow St.Bin as BaseIcon content

This patch is more of a proof-of-concept, I don't like much the use of instanceof. I'd like to get feedback on this though, any suggestion?
Comment 5 Philippe Normand 2011-08-30 20:15:42 UTC
I'd be really happy to get some feedback on this issue/patch. Would you please have a look Jasper?
Comment 6 Jasper St. Pierre (not reading bugmail) 2011-08-30 20:36:02 UTC
(In reply to comment #5)
> I'd be really happy to get some feedback on this issue/patch. Would you please
> have a look Jasper?

I really just don't understand why a lot of this is necessary.
Comment 7 Philippe Normand 2011-09-03 10:45:03 UTC
One example use-case is to display in a grid spinning animations while items load in the background (involving thumbnail download/caching).

To implement this I'd like to use panel.AnimatedIcon:

icon = new IconGrid.BaseIcon(resultMeta['name']);
icon.spinner = new Panel.AnimatedIcon('process-working.svg', Panel.PANEL_ICON_SIZE);

icon.createIcon = function(size) {
    icon.spinner.actor.show();
    // this is a bin.
    return icon.spinner.actor;
};

So the grid item icon is actually a bin containing another bin but I can't see the actual icon. Now I wonder if this could actually be an issue related with the size allocation of the icon! I'll dig this a bit further.
Comment 8 Florian Müllner 2011-09-03 13:02:46 UTC
(In reply to comment #7)
> One example use-case is to display in a grid spinning animations while items
> load in the background (involving thumbnail download/caching).

Why not add spinner support directly to BaseIcon? I'd feel a lot better with such a change than making Base*Icon* a generic container ...

 
> To implement this I'd like to use panel.AnimatedIcon:

When used elsewhere, AnimatedIcon should probably be moved elsewhere.
Comment 9 Philippe Normand 2011-09-04 08:21:25 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > One example use-case is to display in a grid spinning animations while items
> > load in the background (involving thumbnail download/caching).
> 
> Why not add spinner support directly to BaseIcon? I'd feel a lot better with
> such a change than making Base*Icon* a generic container ...
> 

Good idea! I'll give this a try.

> 
> > To implement this I'd like to use panel.AnimatedIcon:
> 
> When used elsewhere, AnimatedIcon should probably be moved elsewhere.

Alright.
Comment 10 Owen Taylor 2012-02-15 19:13:30 UTC
Comment on attachment 193659 [details] [review]
iconGrid: allow St.Bin as BaseIcon content

Marking rejected as per comments
Comment 11 Owen Taylor 2012-02-15 19:13:51 UTC
Review of attachment 193659 [details] [review]:

Really marking rejected as per comments
Comment 12 Owen Taylor 2012-02-15 19:14:35 UTC
Review of attachment 193660 [details] [review]:

Not a proposed patch, marking rejected to get off review list
Comment 13 Florian Müllner 2015-03-05 10:18:46 UTC
No movement on this in over three years, doesn't seem useful to keep open ...