Merge lp:~smspillaz/unity/unity.fix_1180970 into lp:unity
Status: | Superseded | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~smspillaz/unity/unity.fix_1180970 | ||||
Merge into: | lp:unity | ||||
Diff against target: |
268 lines (+95/-9) 10 files modified
CMakeLists.txt (+8/-0) config.h.cmake (+1/-0) dash/ResultRenderer.cpp (+3/-1) launcher/LauncherIcon.cpp (+4/-3) launcher/MockLauncherIcon.h (+3/-0) panel/PanelIndicatorEntryView.cpp (+2/-2) tests/test_icon_loader.cpp (+27/-0) tests/test_result_renderer.cpp (+2/-1) unity-shared/GtkUtil.h (+43/-0) unity-shared/IconLoader.cpp (+2/-2) |
||||
To merge this branch: | bzr merge lp:~smspillaz/unity/unity.fix_1180970 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Sam Spilsbury | Pending | ||
Ted Gould | Pending | ||
Review via email: mp+164306@code.launchpad.net |
This proposal supersedes a proposal from 2013-05-17.
This proposal has been superseded by a proposal from 2013-05-17.
Commit message
Use gtk_icon_info_free on gtk < 3.8
GtkIconInfo is a GObject, but on < 3.8 callers are meant to free it with
gtk_icon_info_unref according to the documentation for it:
GtkIconInfo * gtk_icon_
Looks up a named icon and returns a structure containing information such
as the filename of the icon. The icon can then be rendered into a pixbuf
using gtk_icon_
these two steps if all you need is the pixbuf.)
...
Returns :
a GtkIconInfo structure containing information about the icon, or NULL if
the icon wasn't found. Free with gtk_icon_
On > 3.8 the function is deprecated and g_object_unref should be used.
GtkUtilDeathTes
(LP: #1180790)
Description of the change
Use gtk_icon_info_free on gtk < 3.8
GtkIconInfo is a GObject, but on < 3.8 callers are meant to free it with
gtk_icon_info_unref according to the documentation for it:
GtkIconInfo * gtk_icon_
Looks up a named icon and returns a structure containing information such
as the filename of the icon. The icon can then be rendered into a pixbuf
using gtk_icon_
these two steps if all you need is the pixbuf.)
...
Returns :
a GtkIconInfo structure containing information about the icon, or NULL if
the icon wasn't found. Free with gtk_icon_
On > 3.8 the function is deprecated and g_object_unref should be used.
GtkUtilDeathTes
(LP: #1180790)
I haven't used glib::Object<> here. As much as I would have liked to - it doesn't support a concept of custom deleters which would be required to support anything like GtkIconInfo. Given that this is the only usecase so far and its actually just for a previous ubuntu version, it probably didn't make sense to add a new constructor there.
Actually it's deprecated:
https:/ /developer. gnome.org/ gtk3/stable/ GtkIconTheme. html#gtk- icon-info- free