mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
New function create_logo_image
New function create_logo_image to set the logo image.
This commit is contained in:
committed by
Carlos R. Mafra
parent
202b9eadc5
commit
21a5f41c08
@@ -969,22 +969,12 @@ void wDefaultsCheckDomains(void* arg)
|
||||
for (i = 0; i < wScreenCount; i++) {
|
||||
scr = wScreenWithNumber(i);
|
||||
if (scr) {
|
||||
RImage *image;
|
||||
|
||||
wDefaultUpdateIcons(scr);
|
||||
|
||||
/* Update the panel image if changed */
|
||||
/* Don't worry. If the image is the same these
|
||||
* functions will have no performance impact. */
|
||||
image = wDefaultGetImage(scr, "Logo", "WMPanel", wPreferences.icon_size);
|
||||
|
||||
if (!image) {
|
||||
wwarning(_("could not load logo image for panels: %s"),
|
||||
RMessageForError(RErrorCode));
|
||||
} else {
|
||||
WMSetApplicationIconImage(scr->wmscreen, image);
|
||||
RReleaseImage(image);
|
||||
}
|
||||
create_logo_image(scr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user