[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Patch for KMainWindow
From:       Ian Reinhart Geiser <ian () geiseri ! com>
Date:       2005-02-26 23:42:53
Message-ID: 200502261842.59615.ian () geiseri ! com
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


Greetings,
	The current  KMainWindow::setupGUI( ... ) method won't allow you do add more 
GUI actions after you call it because it calls createGUI with the conserve 
menu flag set.  Is this patch possible to be used in KDE?  It seems to not 
break things, but it will make KMainWindow extendable again.

Cheers
	-ian reinhart geiser

-- 
------(Ian Reinhart Geiser)-----<geiseri@yahoo.com>-----
But clearly now, I tell you man that all I say is all I can.
For I am nothing but my sin, until I learn you caste them in.
	-Peter Murphy, Crystal Wrists

["kmainwindow.patch" (text/x-diff)]

Index: kmainwindow.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kmainwindow.cpp,v
retrieving revision 1.149
diff -u -u -r1.149 kmainwindow.cpp
--- kmainwindow.cpp	23 Jan 2005 14:24:55 -0000	1.149
+++ kmainwindow.cpp	26 Feb 2005 23:36:35 -0000
@@ -459,7 +459,7 @@
     }
 
     if( options & Create ){
-        createGUI(xmlfile);
+        createGUI(xmlfile,false);
     }
 
     if( options & Save ){

[Attachment #6 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic