[ icewm-Bugs-2876985 ] icewm 1.2.37 wrong theme menu generaion

View: New views
1 Messages — Rating Filter:   Alert me  

[ icewm-Bugs-2876985 ] icewm 1.2.37 wrong theme menu generaion

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2876985, was opened at 2009-10-12 10:20
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100031&aid=2876985&group_id=31

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: icewm 1.2.37 wrong theme menu generaion

Initial Comment:
When IceWM configured with --prefix=/usr  --with-cfgdir=/usr/share/icewm (instead of default /usr/local and /etc/icewm), theme menu contains each theme two times. It's because libDir variable has the same value as configDir. I have added comparison of this variables and changed calculation of themeCount and findTheme calling for different situations.
P.S. Sorry about my English
Here is a diff output for original and my themes.cc
72c72,74
<     if (nestedThemeMenuMinNumber)
---
>     if (nestedThemeMenuMinNumber){
>                               if ( 0 != strcmp(strJoin(libDir, "/themes/", NULL),
>                                                                         strJoin(configDir, "/themes/", NULL)) )
77a80,85
>                               else
>         themeCount =
>             countThemes(strJoin(libDir, "/themes/", NULL)) +
>             countThemes(strJoin(YApplication::getPrivConfDir(),
>                                 "/themes/", NULL));
>        }
82a91,92
>        if ( 0 != strcmp(strJoin(libDir, "/themes/", NULL),
>                                                  strJoin(configDir, "/themes/", NULL)) ){
85a96
>        }

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100031&aid=2876985&group_id=31

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Icewm-devel mailing list
Icewm-devel@...
https://lists.sourceforge.net/lists/listinfo/icewm-devel