Bug 109115 - Compile error in KDE 3.3.2 : main.cpp KWin::setMainWindow not defined
Summary: Compile error in KDE 3.3.2 : main.cpp KWin::setMainWindow not defined
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-15 05:28 UTC by D. Anthony Robinson
Modified: 2005-07-15 07:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Proposed patch (506 bytes, patch)
2005-07-15 05:29 UTC, D. Anthony Robinson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description D. Anthony Robinson 2005-07-15 05:28:06 UTC
Version:           1.4.89 (from SVN) (using KDE KDE 3.3.2)
Installed from:    Mandriva RPMs
Compiler:          g++ 3.4.3 Mandrakelinux 10.2 3.4.3-7mdk
OS:                Linux

Running KDE 3.3.2 and pulling the latest sources from SVN, I get the following error when running make (useless info cut):

main.cpp: In function `int main(int, char**)':
main.cpp:67: error: `setMainWindow' is not a member of `KWin'
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/anthony/sandbox/kde/kdesdk/umbrello/umbrello'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/anthony/sandbox/kde/kdesdk/umbrello/umbrello'
make: *** [all-recursive] Error 1

Some research in the KDE documentation indicates that the KWin::setMainWindow() method is present since version 3.4. The comparison in line 64 of main.cpp is:

#if KDE_IS_VERSION(3,2,90)

Changing this to:

#if KDE_IS_VERSION(3,3,90)

allows compilation to complete.
Comment 1 D. Anthony Robinson 2005-07-15 05:29:58 UTC
Created attachment 11813 [details]
Proposed patch

Proposed fix. It is a one-line change, so impact should be relatively low.
However, verification that the version comparison is correct may need to be
done.
Comment 2 Oliver Kellogg 2005-07-15 07:45:59 UTC
SVN commit 434724 by okellogg: 

>From D.Anthony Robinson (anthony_AT_chinstrap.homelinux.net): 
> I searched the docs, and found that KWin::setMainWindow is "since 3.4".