Merge lp:~gordallott/unity/dash-legal-link into lp:unity
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Merged at revision: | 2965 | ||||||||
| Proposed branch: | lp:~gordallott/unity/dash-legal-link | ||||||||
| Merge into: | lp:unity | ||||||||
| Diff against target: |
304 lines (+138/-8) 6 files modified
dash/LensBar.cpp (+94/-5) dash/LensBar.h (+19/-2) plugins/unityshell/resources/information_icon.svg (+14/-0) plugins/unityshell/resources/searchingthedashlegalnotice.html (+1/-0) unity-shared/DashStyle.cpp (+7/-0) unity-shared/DashStyle.h (+3/-1) |
||||||||
| To merge this branch: | bzr merge lp:~gordallott/unity/dash-legal-link | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Needs Fixing on 2012-11-14 | |
| Timo Jyrinki | 2012-10-11 | Approve on 2012-11-08 | |
|
Review via email:
|
|||
Commit Message
adds a legal link to the dash, also a new resource
Description of the Change
adds a legal link to the dash
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
143 + auto geo = GetAbsoluteGeom
Ah, use auto const& instead ;)
| Gord Allott (gordallott) wrote : | # |
> Looks good and works well...
>
> 29 + glib::String cachedir(
>
> No need to strdup it, just assign that to std::string... It should be never
> NULL, in case just check for that.
>
> 30 + legal_seen_
>
> Since we have an unity .cache dir, I'd just add there... i.e.
> cachedir/
we don't have a unity cache directory, not anymore.
>
> 68 + QueueRelayout();
> 69 + QueueDraw();
>
> The first is enough, as does also redraw.
>
> 64 + info_icon_
> 65 + legal_-
> 67 + DoOpenLegalise();
>
> Wouldn't be better to open the legalise (and close the dash) and then switch
> the icon visibility?
>
> 95 + std::string legal_file_path = "file://";
> 96 + legal_file_
> 97 + legal_file_
>
> Why not just doing:
> std::string legal_file_path = "file://" PKGDATADIR
> "/searchingthed
personal preference
>
> 221 + nux::LayeredLayout* layered_layout_;
> 222 + nux::HLayout *legal_layout_;
>
> It seems you don't need to keep these in class.
>
> Finally, both the icon and the text are always built, only their visibility is
> switched, couldn't avoid this (and then only allocate only the needed
> resources)?
they could, but there is little reason to, its less than 2kb of memory.
| Timo Jyrinki (timo-jyrinki) wrote : | # |
This has been in 6.0 series already for some time (in this final form), would be good to have in lp:unity as well?
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
| Martin Mrazik (mrazik) wrote : | # |
Gord, can you please merge with lp:unity and then re-upload your branch? The above is a jenkins error but it is a bit of corner case and left-over from the migration to inline packaging. Instead of creating some weird hack it would be easier to manually get the packaging into your branch (by merging with trunk). Many thanks!


Looks good and works well...
29 + glib::String cachedir( g_strdup( g_get_user_ cache_dir( )));
No need to strdup it, just assign that to std::string... It should be never NULL, in case just check for that.
30 + legal_seen_ file_path_ = cachedir.Str() + "/unitydashlega lseen";
Since we have an unity .cache dir, I'd just add there... i.e. cachedir/ unity/dashlegal seen
68 + QueueRelayout();
69 + QueueDraw();
The first is enough, as does also redraw.
64 + info_icon_ ->SetVisible( info_previously _shown_ ); >SetVisible( !info_previousl y_shown_ );
65 + legal_-
67 + DoOpenLegalise();
Wouldn't be better to open the legalise (and close the dash) and then switch the icon visibility?
95 + std::string legal_file_path = "file://"; path.append( PKGDATADIR) ; path.append( "/searchingthed ashlegalnotice. html");
96 + legal_file_
97 + legal_file_
Why not just doing: ashlegalnotice. html";
std::string legal_file_path = "file://" PKGDATADIR "/searchingthed
221 + nux::LayeredLayout* layered_layout_;
222 + nux::HLayout *legal_layout_;
It seems you don't need to keep these in class.
Finally, both the icon and the text are always built, only their visibility is switched, couldn't avoid this (and then only allocate only the needed resources)?