1
0
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:
Rodolfo García Peñas (kix)
2012-06-02 21:38:32 +02:00
committed by Carlos R. Mafra
parent 202b9eadc5
commit 21a5f41c08
3 changed files with 13 additions and 19 deletions

View File

@@ -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);
}
}
}