misc fixes related to api updates
authorCampbell Barton <ideasman42@gmail.com>
Mon, 13 Sep 2010 04:23:17 +0000 (04:23 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 13 Sep 2010 04:23:17 +0000 (04:23 +0000)
space_view3d_manipulator_Menu.py
system_keyboard_svg.py
text_editor_pasteall.py

index 9fff8c8b8933a908be116404b4383a0215f4351b..8bd1ce59c1e6165b24162dfc24ff4b34aada3e13 100644 (file)
@@ -105,9 +105,9 @@ class VIEW3D_MT_ManipulatorMenu(bpy.types.Menu):
         layout.separator()
 
 
-            
+
 def register():
-    km = bpy.context.manager.keyconfigs.active.keymaps['3D View']
+    km = bpy.context.window_manager.keyconfigs.active.keymaps['3D View']
     for kmi in km.items:
         if kmi.idname == 'wm.context_toggle':
             if kmi.ctrl and not kmi.shift and not kmi.alt and kmi.value =="PRESS":
@@ -119,7 +119,7 @@ def register():
 
 
 def unregister():
-    km = bpy.context.manager.keyconfigs.active.keymaps['3D View']
+    km = bpy.context.window_manager.keyconfigs.active.keymaps['3D View']
     for kmi in km.items:
         if kmi.idname == 'wm.call_menu':
             if kmi.properties.name == "VIEW3D_MT_ManipulatorMenu":
index 4a427faf3ef985f5744453908b2d36d310c82beb..549d8490ad9f0260f7d01d7b1bbce39ce922e6d0 100644 (file)
@@ -214,13 +214,6 @@ class WM_OT_Keyboardlayout(bpy.types.Operator):
     bl_idname = "wm.keyboardlayout"
     bl_label = "Keyboard layout (SGV)"
 
-    @staticmethod
-    def poll(context):
-        """
-        export of the keyboard layout should always be possible.
-        """
-        return True
-
     def execute(self, context):
         """
         Iterate over all viewtypes to export the keyboard layout.
index 7f4826bc0e10e7900b652e9ab24afe843a7c7fc3..0fce7e6764cd87cb42e2e8d3499eacced0e00360 100644 (file)
@@ -210,7 +210,7 @@ def register():
         default=True)
 
 def unregister():
-    bpy.types.Scene.RemoveProperty("use_webbrowser")
+    del bpy.types.Scene.use_webbrowser
 
 if __name__ == "__main__":
     register()