Skip to content

Commit 0ecb47f

Browse files
author
timlinux
committed
Let qgis core plugins work with qgis api changes
git-svn-id: http://svn.osgeo.org/qgis/trunk@9236 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent b5637d8 commit 0ecb47f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python/plugins/mapserver_export/mapserverexport.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ def __init__(self, iface):
3737
def initGui(self):
3838
# Create action that will start plugin configuration
3939
self.action = QAction(QIcon(":/plugins/mapserver_export/icon.png"), \
40-
"MapServer Export", self.iface.getMainWindow())
40+
"MapServer Export", self.iface.mainWindow())
4141
#self.action.setWhatsThis("Configuration for Zoom To Point plugin")
4242
# connect the action to the run method
4343
QObject.connect(self.action, SIGNAL("activated()"), self.run)
4444

4545
# Add toolbar button and menu item
4646
self.iface.addToolBarIcon(self.action)
47-
self.iface.addPluginMenu("&MapServer Export...", self.action)
47+
self.iface.addPluginToMenu("&MapServer Export...", self.action)
4848

4949
def unload(self):
5050
# Remove the plugin menu item and icon

python/plugins/plugin_installer/installer_plugin.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ def __init__(self, iface):
2525
# ----------------------------------------- #
2626
def initGui(self):
2727
# create action that will start plugin configuration
28-
self.action = QAction(QIcon(":/plugins/installer/icon.xpm"), "Install plugins", self.iface.getMainWindow())
28+
self.action = QAction(QIcon(":/plugins/installer/icon.xpm"), "Install plugins", self.iface.mainWindow())
2929
self.action.setWhatsThis("Plugin Installer")
3030
QObject.connect(self.action, SIGNAL("activated()"), self.run)
3131

3232
# add toolbar button and menu item
3333
self.iface.addToolBarIcon(self.action)
34-
self.iface.addPluginMenu("&Plugin Installer", self.action)
34+
self.iface.addPluginToMenu("&Plugin Installer", self.action)
3535

3636
# ----------------------------------------- #
3737
def unload(self):

0 commit comments

Comments
 (0)