Merge lp:~brandontschaefer/unity/default-icon-for-launcher-5.0 into lp:unity/5.0

Proposed by Brandon Schaefer
Status: Merged
Approved by: Brandon Schaefer
Approved revision: no longer in the source branch.
Merged at revision: 2406
Proposed branch: lp:~brandontschaefer/unity/default-icon-for-launcher-5.0
Merge into: lp:unity/5.0
Diff against target: 24 lines (+6/-1)
1 file modified
plugins/unityshell/src/BamfLauncherIcon.cpp (+6/-1)
To merge this branch: bzr merge lp:~brandontschaefer/unity/default-icon-for-launcher-5.0
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
Review via email: mp+126305@code.launchpad.net

Commit message

If no icon is found then use the default one. This will cause all blank icons to be a '?' icon.

Description of the change

If no icon is found then use the default one. This will cause all blank icons to be a '?' icon.

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Fine!

review: Approve
Revision history for this message
Unity Merger (unity-merger) wrote :

The Jenkins job https://jenkins.qa.ubuntu.com/job/automerge-unity/1423/console reported an error when processing this lp:~brandontschaefer/unity/default-icon-for-launcher-5.0 branch.
Not merging it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/unityshell/src/BamfLauncherIcon.cpp'
2--- plugins/unityshell/src/BamfLauncherIcon.cpp 2012-05-24 17:14:18 +0000
3+++ plugins/unityshell/src/BamfLauncherIcon.cpp 2012-09-25 17:40:51 +0000
4@@ -43,6 +43,11 @@
5 namespace launcher
6 {
7
8+namespace
9+{
10+ const std::string DEFAULT_ICON = "application-default-icon";
11+}
12+
13 NUX_IMPLEMENT_OBJECT_TYPE(BamfLauncherIcon);
14
15 BamfLauncherIcon::BamfLauncherIcon(BamfApplication* app)
16@@ -61,7 +66,7 @@
17 glib::String icon(bamf_view_get_icon(bamf_view));
18
19 tooltip_text = BamfName();
20- icon_name = icon.Str();
21+ icon_name = (icon ? icon.Str() : DEFAULT_ICON);
22 SetIconType(TYPE_APPLICATION);
23
24 if (IsSticky())

Subscribers

People subscribed via source and target branches

to all changes: