~donadigo/appcenter/extensions

« back to all changes in this revision

Viewing changes to src/Core/Package.vala

  • Committer: donadigos159 at gmail
  • Date: 2016-06-24 17:12:09 UTC
  • Revision ID: donadigos159@gmail.com-20160624171209-3yjx9hnnkx5kv612
Add support for extensions

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
        });
181
181
 
182
182
        if (icon == null) {
183
 
            icon = new ThemedIcon ("application-default-icon");
 
183
            if (component.get_kind () == AppStream.ComponentKind.ADDON) {
 
184
                icon = new ThemedIcon ("extension");
 
185
            } else {
 
186
                icon = new ThemedIcon ("application-default-icon");
 
187
            }
184
188
        }
185
189
 
186
190
        return icon;