mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-21 00:40:20 +02:00
LCL-GTK2: Fix UnityTrayIcon crash on gdk_pixbuf_save. Issue #32258
git-svn-id: branches/fixes_1_8@56547 -
This commit is contained in:
parent
1001a5a0ca
commit
d67d85791a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user