mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-26 08:22:37 +01:00
Remove dup set icon file to NULL
Remove the icon->file = NULL because was set in unset_icon_image().
This commit is contained in:
committed by
Carlos R. Mafra
parent
7746fe7c5a
commit
ead0fb2e4b
@@ -656,7 +656,6 @@ static void get_rimage_icon_from_x11(WIcon *icon)
|
||||
unset_icon_image(icon);
|
||||
|
||||
/* Set the new icon image */
|
||||
icon->file = NULL;
|
||||
icon->file_image = RRetainImage(icon->owner->net_icon_image);
|
||||
}
|
||||
|
||||
@@ -680,7 +679,6 @@ static void get_rimage_icon_from_default_icon(WIcon *icon)
|
||||
unset_icon_image(icon);
|
||||
|
||||
/* Set the new icon image */
|
||||
icon->file = NULL;
|
||||
icon->file_image = RRetainImage(scr->def_icon_rimage);
|
||||
}
|
||||
|
||||
@@ -696,7 +694,6 @@ static void get_rimage_icon_from_icon_win(WIcon *icon)
|
||||
unset_icon_image(icon);
|
||||
|
||||
/* Set the new info */
|
||||
icon->file = NULL;
|
||||
icon->file_image = image;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user