Commit 938d485a authored by Juha Manninen's avatar Juha Manninen
Browse files

LCL-GTK2: Fix UnityTrayIcon crash on gdk_pixbuf_save. Issue #32258, patch from...

LCL-GTK2: Fix UnityTrayIcon crash on gdk_pixbuf_save. Issue #32258, patch from Benito van der Zander.

git-svn-id: trunk@55709 -
parent f54d4f23
......@@ -148,7 +148,7 @@ begin
if FileExists(GlobalIconPath) then
DeleteFile(GlobalIconPath);
GlobalIconPath := IconThemePath + FIconName + '.' + IconType;
gdk_pixbuf_save(GlobalIcon, PChar(GlobalIconPath), IconType, nil);
gdk_pixbuf_save(GlobalIcon, PChar(GlobalIconPath), IconType, nil, [nil]);
if GlobalAppIndicator <> nil then
app_indicator_set_icon(GlobalAppIndicator, PChar(FIconName));
end
......@@ -184,7 +184,7 @@ begin
if FileExists(GlobalIconPath) then
DeleteFile(GlobalIconPath);
GlobalIconPath := IconThemePath + FIconName + '.' + IconType;
gdk_pixbuf_save(GlobalIcon, PChar(GlobalIconPath), IconType, nil);
gdk_pixbuf_save(GlobalIcon, PChar(GlobalIconPath), IconType, nil, [nil]);
{ Again it seems that icons can only come from files }
app_indicator_set_icon(GlobalAppIndicator, PChar(FIconName));
end;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment