[PATCH] support selecting xmlui file in konqy profile

David Faure faure at kde.org
Sun Jan 4 17:01:13 GMT 2004


On Sunday 04 January 2004 17:52, Alexander Neundorf wrote:
> I know it's quite late for 3.2, but it doesn't introduce new strings, and if 
> somebody reviews it, I think it should be more or less bug-safe.

You don't need the added member var in konq_mainwindow.
The XML file name is stored in KXMLGUIClient, so you can simply use
xmlFile() to get hold of it again later.

Important:
+ mainWindow = new KonqMainWindow( KURL(), false, "Konqueror", xmluiFile );
The 3rd argument should be 0. Otherwise you're changing the name of the
mainwindow, which might break e.g. DCOP scripts (ok, those that make too many assumptions).
Except for this change, I can vouch that the rest of the patch is indeed safe.

But why should it go in now, if we don't have separate ui.rc files for various profiles
until the next release anyway? Or do you expect people to write their own?

-- 
David FAURE, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kfm-devel mailing list