From 5ded9cba8563f336939400303d6a841d5089b107 Mon Sep 17 00:00:00 2001 From: Perberos Date: Mon, 7 Nov 2011 19:52:18 -0300 Subject: renaming from gedit to pluma --- plugins/pythonconsole/Makefile.am | 8 ++++---- .../pythonconsole/pythonconsole.gedit-plugin.desktop.in | 10 ---------- .../pythonconsole/pythonconsole.pluma-plugin.desktop.in | 10 ++++++++++ plugins/pythonconsole/pythonconsole/Makefile.am | 4 ++-- plugins/pythonconsole/pythonconsole/__init__.py | 14 +++++++------- plugins/pythonconsole/pythonconsole/config.py | 4 ++-- plugins/pythonconsole/pythonconsole/console.py | 2 +- 7 files changed, 26 insertions(+), 26 deletions(-) delete mode 100755 plugins/pythonconsole/pythonconsole.gedit-plugin.desktop.in create mode 100755 plugins/pythonconsole/pythonconsole.pluma-plugin.desktop.in (limited to 'plugins/pythonconsole') diff --git a/plugins/pythonconsole/Makefile.am b/plugins/pythonconsole/Makefile.am index c27227f3..53361183 100755 --- a/plugins/pythonconsole/Makefile.am +++ b/plugins/pythonconsole/Makefile.am @@ -1,11 +1,11 @@ # Python Console Plugin SUBDIRS = pythonconsole -plugindir = $(GEDIT_PLUGINS_LIBS_DIR) +plugindir = $(PLUMA_PLUGINS_LIBS_DIR) -plugin_in_files = pythonconsole.gedit-plugin.desktop.in -%.gedit-plugin: %.gedit-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache +plugin_in_files = pythonconsole.pluma-plugin.desktop.in +%.pluma-plugin: %.pluma-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache -plugin_DATA = $(plugin_in_files:.gedit-plugin.desktop.in=.gedit-plugin) +plugin_DATA = $(plugin_in_files:.pluma-plugin.desktop.in=.pluma-plugin) EXTRA_DIST = $(plugin_in_files) diff --git a/plugins/pythonconsole/pythonconsole.gedit-plugin.desktop.in b/plugins/pythonconsole/pythonconsole.gedit-plugin.desktop.in deleted file mode 100755 index 8cc65648..00000000 --- a/plugins/pythonconsole/pythonconsole.gedit-plugin.desktop.in +++ /dev/null @@ -1,10 +0,0 @@ -[Gedit Plugin] -Loader=python -Module=pythonconsole -IAge=2 -_Name=Python Console -_Description=Interactive Python console standing in the bottom panel -Icon=mate-mime-text-x-python -Authors=Steve Frécinaux -Copyright=Copyright © 2006 Steve Frécinaux -Website=http://www.gedit.org diff --git a/plugins/pythonconsole/pythonconsole.pluma-plugin.desktop.in b/plugins/pythonconsole/pythonconsole.pluma-plugin.desktop.in new file mode 100755 index 00000000..ca941412 --- /dev/null +++ b/plugins/pythonconsole/pythonconsole.pluma-plugin.desktop.in @@ -0,0 +1,10 @@ +[Pluma Plugin] +Loader=python +Module=pythonconsole +IAge=2 +_Name=Python Console +_Description=Interactive Python console standing in the bottom panel +Icon=mate-mime-text-x-python +Authors=Steve Frécinaux +Copyright=Copyright © 2006 Steve Frécinaux +Website=http://www.pluma.org diff --git a/plugins/pythonconsole/pythonconsole/Makefile.am b/plugins/pythonconsole/pythonconsole/Makefile.am index 7aa91fe9..05327ed6 100755 --- a/plugins/pythonconsole/pythonconsole/Makefile.am +++ b/plugins/pythonconsole/pythonconsole/Makefile.am @@ -1,12 +1,12 @@ # Python console plugin -plugindir = $(GEDIT_PLUGINS_LIBS_DIR)/pythonconsole +plugindir = $(PLUMA_PLUGINS_LIBS_DIR)/pythonconsole plugin_PYTHON = \ __init__.py \ console.py \ config.py -uidir = $(GEDIT_PLUGINS_DATA_DIR)/pythonconsole/ui +uidir = $(PLUMA_PLUGINS_DATA_DIR)/pythonconsole/ui ui_DATA = config.ui EXTRA_DIST = $(ui_DATA) diff --git a/plugins/pythonconsole/pythonconsole/__init__.py b/plugins/pythonconsole/pythonconsole/__init__.py index 60f70e9f..699225f0 100755 --- a/plugins/pythonconsole/pythonconsole/__init__.py +++ b/plugins/pythonconsole/pythonconsole/__init__.py @@ -21,11 +21,11 @@ # Parts from "Interactive Python-GTK Console" (stolen from epiphany's console.py) # Copyright (C), 1998 James Henstridge # Copyright (C), 2005 Adam Hooper -# Bits from gedit Python Console Plugin +# Bits from pluma Python Console Plugin # Copyrignt (C), 2005 Raphaël Slinckx import gtk -import gedit +import pluma from console import PythonConsole from config import PythonConsoleConfigDialog @@ -33,14 +33,14 @@ from config import PythonConsoleConfig PYTHON_ICON = 'mate-mime-text-x-python' -class PythonConsolePlugin(gedit.Plugin): +class PythonConsolePlugin(pluma.Plugin): def __init__(self): - gedit.Plugin.__init__(self) + pluma.Plugin.__init__(self) self.dlg = None def activate(self, window): console = PythonConsole(namespace = {'__builtins__' : __builtins__, - 'gedit' : gedit, + 'pluma' : pluma, 'window' : window}) console.eval('print "You can access the main window through ' \ '\'window\' :\\n%s" % window', False) @@ -63,14 +63,14 @@ def create_configure_dialog(self): self.dlg = PythonConsoleConfigDialog(self.get_data_dir()) dialog = self.dlg.dialog() - window = gedit.app_get_default().get_active_window() + window = pluma.app_get_default().get_active_window() if window: dialog.set_transient_for(window) return dialog # Here we dynamically insert create_configure_dialog based on if configuration -# is enabled. This has to be done like this because gedit checks if a plugin +# is enabled. This has to be done like this because pluma checks if a plugin # is configurable solely on the fact that it has this member defined or not if PythonConsoleConfig.enabled(): PythonConsolePlugin.create_configure_dialog = create_configure_dialog diff --git a/plugins/pythonconsole/pythonconsole/config.py b/plugins/pythonconsole/pythonconsole/config.py index fed4699b..ac0e599c 100755 --- a/plugins/pythonconsole/pythonconsole/config.py +++ b/plugins/pythonconsole/pythonconsole/config.py @@ -21,7 +21,7 @@ # Parts from "Interactive Python-GTK Console" (stolen from epiphany's console.py) # Copyright (C), 1998 James Henstridge # Copyright (C), 2005 Adam Hooper -# Bits from gedit Python Console Plugin +# Bits from pluma Python Console Plugin # Copyrignt (C), 2005 Raphaël Slinckx import os @@ -29,7 +29,7 @@ import gtk __all__ = ('PythonConsoleConfig', 'PythonConsoleConfigDialog') -MATECONF_KEY_BASE = '/apps/gedit-2/plugins/pythonconsole' +MATECONF_KEY_BASE = '/apps/pluma-2/plugins/pythonconsole' MATECONF_KEY_COMMAND_COLOR = MATECONF_KEY_BASE + '/command-color' MATECONF_KEY_ERROR_COLOR = MATECONF_KEY_BASE + '/error-color' diff --git a/plugins/pythonconsole/pythonconsole/console.py b/plugins/pythonconsole/pythonconsole/console.py index e9d7a331..5e818727 100755 --- a/plugins/pythonconsole/pythonconsole/console.py +++ b/plugins/pythonconsole/pythonconsole/console.py @@ -21,7 +21,7 @@ # Parts from "Interactive Python-GTK Console" (stolen from epiphany's console.py) # Copyright (C), 1998 James Henstridge # Copyright (C), 2005 Adam Hooper -# Bits from gedit Python Console Plugin +# Bits from pluma Python Console Plugin # Copyrignt (C), 2005 Raphaël Slinckx import string -- cgit v1.2.1