Rename Pluma to Xedit

This commit is contained in:
Clement Lefebvre
2016-01-25 14:13:49 +00:00
parent 3a62ddff64
commit 4304f9ffc1
563 changed files with 112901 additions and 112901 deletions

View File

@@ -1,11 +1,11 @@
# Python Console Plugin
SUBDIRS = pythonconsole
plugindir = $(PLUMA_PLUGINS_LIBS_DIR)
plugindir = $(XEDIT_PLUGINS_LIBS_DIR)
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_in_files = pythonconsole.xedit-plugin.desktop.in
%.xedit-plugin: %.xedit-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:.pluma-plugin.desktop.in=.pluma-plugin)
plugin_DATA = $(plugin_in_files:.xedit-plugin.desktop.in=.xedit-plugin)
EXTRA_DIST = $(plugin_in_files)

View File

@@ -1,4 +1,4 @@
[Pluma Plugin]
[Xedit Plugin]
Loader=python
Module=pythonconsole
IAge=2

View File

@@ -1,12 +1,12 @@
# Python console plugin
plugindir = $(PLUMA_PLUGINS_LIBS_DIR)/pythonconsole
plugindir = $(XEDIT_PLUGINS_LIBS_DIR)/pythonconsole
plugin_PYTHON = \
__init__.py \
console.py \
config.py
uidir = $(PLUMA_PLUGINS_DATA_DIR)/pythonconsole/ui
uidir = $(XEDIT_PLUGINS_DATA_DIR)/pythonconsole/ui
ui_DATA = config.ui
EXTRA_DIST = $(ui_DATA)

View File

@@ -21,11 +21,11 @@
# Parts from "Interactive Python-GTK Console" (stolen from epiphany's console.py)
# Copyright (C), 1998 James Henstridge <james@daa.com.au>
# Copyright (C), 2005 Adam Hooper <adamh@densi.com>
# Bits from pluma Python Console Plugin
# Bits from xedit Python Console Plugin
# Copyrignt (C), 2005 Raphaël Slinckx
import gtk
import pluma
import xedit
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(pluma.Plugin):
class PythonConsolePlugin(xedit.Plugin):
def __init__(self):
pluma.Plugin.__init__(self)
xedit.Plugin.__init__(self)
self.dlg = None
def activate(self, window):
console = PythonConsole(namespace = {'__builtins__' : __builtins__,
'pluma' : pluma,
'xedit' : xedit,
'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 = pluma.app_get_default().get_active_window()
window = xedit.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 pluma checks if a plugin
# is enabled. This has to be done like this because xedit 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

View File

@@ -21,7 +21,7 @@
# Parts from "Interactive Python-GTK Console" (stolen from epiphany's console.py)
# Copyright (C), 1998 James Henstridge <james@daa.com.au>
# Copyright (C), 2005 Adam Hooper <adamh@densi.com>
# Bits from pluma Python Console Plugin
# Bits from xedit Python Console Plugin
# Copyrignt (C), 2005 Raphaël Slinckx
import os
@@ -29,7 +29,7 @@ import gtk
__all__ = ('PythonConsoleConfig', 'PythonConsoleConfigDialog')
MATECONF_KEY_BASE = '/apps/pluma/plugins/pythonconsole'
MATECONF_KEY_BASE = '/apps/xedit/plugins/pythonconsole'
MATECONF_KEY_COMMAND_COLOR = MATECONF_KEY_BASE + '/command-color'
MATECONF_KEY_ERROR_COLOR = MATECONF_KEY_BASE + '/error-color'

View File

@@ -21,7 +21,7 @@
# Parts from "Interactive Python-GTK Console" (stolen from epiphany's console.py)
# Copyright (C), 1998 James Henstridge <james@daa.com.au>
# Copyright (C), 2005 Adam Hooper <adamh@densi.com>
# Bits from pluma Python Console Plugin
# Bits from xedit Python Console Plugin
# Copyrignt (C), 2005 Raphaël Slinckx
import string