]> git.saurik.com Git - wxWidgets.git/commitdiff
wx.InitAllImageHandlers is now an empty function that does nothing but
authorRobin Dunn <robin@alldunn.com>
Mon, 17 May 2004 19:16:17 +0000 (19:16 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 17 May 2004 19:16:17 +0000 (19:16 +0000)
exist for backwards compatibility.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/docs/CHANGES.txt
wxPython/src/__core_rename.i
wxPython/src/__core_reverse.txt
wxPython/src/_app_ex.py
wxPython/src/_image.i
wxPython/src/helpers.cpp
wxPython/wxPython/_core.py

index ad7f25d0ae61d2647869f1c70a2f1f42220b250d..57dcb784919881a38a6f1a2f6388f0956faa424d 100644 (file)
@@ -42,6 +42,14 @@ inheritance the new way.  If you have custom controls of your own you
 should review stattxt.py or one of the others to see how it is to be
 done.
 
 should review stattxt.py or one of the others to see how it is to be
 done.
 
+wx.InitAllImageHandlers is now an empty function that does nothing but
+exist for backwards compatibility.  The C++ version is now called
+automatically when wxPython is initialized.  Since all the handlers
+are included in the wxWidgets shared library anyway, this imposes only
+a very small amount of overhead and removes several unneccessary
+problems.
+
+
 
 
 2.5.1.5
 
 
 2.5.1.5
index e5a396a8f28be994adb50ca4964397fa5dbccf6a..919a5575436f71784b77627aaf9535a0e8a22744 100644 (file)
 %rename(ImageHandler)                       wxImageHandler;
 %rename(ImageHistogram)                     wxImageHistogram;
 %rename(Image)                              wxImage;
 %rename(ImageHandler)                       wxImageHandler;
 %rename(ImageHistogram)                     wxImageHistogram;
 %rename(Image)                              wxImage;
-%rename(InitAllImageHandlers)               wxInitAllImageHandlers;
 %rename(NullImage)                          wxNullImage;
 %rename(IMAGE_RESOLUTION_INCHES)            wxIMAGE_RESOLUTION_INCHES;
 %rename(IMAGE_RESOLUTION_CM)                wxIMAGE_RESOLUTION_CM;
 %rename(NullImage)                          wxNullImage;
 %rename(IMAGE_RESOLUTION_INCHES)            wxIMAGE_RESOLUTION_INCHES;
 %rename(IMAGE_RESOLUTION_CM)                wxIMAGE_RESOLUTION_CM;
index 105ac008011c699a2b99a4a16573380f0456e337..c5b49ab163e6a4a3f8e5f9ec14ab78d39554afbc 100644 (file)
@@ -39,6 +39,7 @@ DLG_SZE
 PyAssertionError
 
 MemoryFSHandler_AddFile
 PyAssertionError
 
 MemoryFSHandler_AddFile
+InitAllImageHandlers
 
 
 # With the * on the end these will cause code to be added that 
 
 
 # With the * on the end these will cause code to be added that 
index ed611bb1f7fbb09e5697606297c5928a18269116..f70c78c26f9600dd960fc06605ce1e6c835a2cc2 100644 (file)
@@ -236,7 +236,6 @@ class PySimpleApp(wx.App):
         wx.App.__init__(self, redirect, filename, useBestVisual, clearSigInt)
         
     def OnInit(self):
         wx.App.__init__(self, redirect, filename, useBestVisual, clearSigInt)
         
     def OnInit(self):
-        wx.InitAllImageHandlers()
         return True
 
 
         return True
 
 
index 4f35d16f6be617d410b621688d90e33753959561..700cfdc9386762ea5e9ee0f975decf7856764383 100644 (file)
@@ -332,7 +332,17 @@ success flag and rgb values.", "");
 
 
 
 
 
 
-void wxInitAllImageHandlers();
+///void wxInitAllImageHandlers();
+
+%pythoncode {
+    def InitAllImageHandlers():
+        """
+        The former functionality of InitAllImageHanders is now done internal to
+        the _core_ extension module and so this function has become a simple NOP.
+        """
+        pass
+}
+
 
 
 // See also wxPy_ReinitStockObjects in helpers.cpp
 
 
 // See also wxPy_ReinitStockObjects in helpers.cpp
index 5ea1b5c9aa36084dceeaa593323681553e735aa5..13f96f4dbd4caa55330d0800e623d6c2c1e4c153 100644 (file)
@@ -523,6 +523,8 @@ void __wxPyPreStart(PyObject* moduleDict)
 
     // Init the stock objects to a non-NULL value so SWIG doesn't create them as None
     wxPy_ReinitStockObjects(1);
 
     // Init the stock objects to a non-NULL value so SWIG doesn't create them as None
     wxPy_ReinitStockObjects(1);
+
+    wxInitAllImageHandlers();
 }
 
 
 }
 
 
index c9118d7558c3c1e908eab9db888003f79be888f2..d0468cb020fb1b67c7c5fdfa2e2f5acc51a1d607 100644 (file)
@@ -654,7 +654,6 @@ wxImage_AddHandler = wx._core.Image_AddHandler
 wxImage_InsertHandler = wx._core.Image_InsertHandler
 wxImage_RemoveHandler = wx._core.Image_RemoveHandler
 wxImage_GetImageExtWildcard = wx._core.Image_GetImageExtWildcard
 wxImage_InsertHandler = wx._core.Image_InsertHandler
 wxImage_RemoveHandler = wx._core.Image_RemoveHandler
 wxImage_GetImageExtWildcard = wx._core.Image_GetImageExtWildcard
-wxInitAllImageHandlers = wx._core.InitAllImageHandlers
 wxNullImage = wx._core.NullImage
 wxIMAGE_OPTION_BMP_FORMAT = wx._core.IMAGE_OPTION_BMP_FORMAT
 wxIMAGE_OPTION_CUR_HOTSPOT_X = wx._core.IMAGE_OPTION_CUR_HOTSPOT_X
 wxNullImage = wx._core.NullImage
 wxIMAGE_OPTION_BMP_FORMAT = wx._core.IMAGE_OPTION_BMP_FORMAT
 wxIMAGE_OPTION_CUR_HOTSPOT_X = wx._core.IMAGE_OPTION_CUR_HOTSPOT_X
@@ -1075,6 +1074,7 @@ wxDLG_PNT = wx._core.DLG_PNT
 wxDLG_SZE = wx._core.DLG_SZE
 wxPyAssertionError = wx._core.PyAssertionError
 wxMemoryFSHandler_AddFile = wx._core.MemoryFSHandler_AddFile
 wxDLG_SZE = wx._core.DLG_SZE
 wxPyAssertionError = wx._core.PyAssertionError
 wxMemoryFSHandler_AddFile = wx._core.MemoryFSHandler_AddFile
+wxInitAllImageHandlers = wx._core.InitAllImageHandlers
 
 
 d = globals()
 
 
 d = globals()