mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 14:08:06 +01:00
Remove dup code in wAppIconCreateForDock
Some code in wAppIconCreateForDock() is duplicated with the function get_default_icon_filename(). It can be removed.
This commit is contained in:
committed by
Carlos R. Mafra
parent
bef6555b6a
commit
1fb452ea95
@@ -128,15 +128,7 @@ WAppIcon *wAppIconCreateForDock(WScreen * scr, char *command, char *wm_instance,
|
||||
dicon->wm_instance = wstrdup(wm_instance);
|
||||
|
||||
/* Search the icon using instance and class, without default icon */
|
||||
path = wDefaultGetIconFile(wm_instance, wm_class, False);
|
||||
if (!path && command) {
|
||||
wApplicationExtractDirPackIcon(scr, command, wm_instance, wm_class);
|
||||
/* Search again, now with default icon */
|
||||
path = wDefaultGetIconFile(wm_instance, wm_class, True);
|
||||
}
|
||||
|
||||
if (path)
|
||||
path = FindImage(wPreferences.icon_path, path);
|
||||
path = get_default_icon_filename(scr, wm_instance, wm_class, command, False);
|
||||
|
||||
dicon->icon = wIconCreateWithIconFile(scr, path, tile);
|
||||
if (path)
|
||||
|
||||
Reference in New Issue
Block a user