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 @@
# Quick Open Plugin
SUBDIRS = quickopen
plugindir = $(PLUMA_PLUGINS_LIBS_DIR)
plugindir = $(XEDIT_PLUGINS_LIBS_DIR)
plugin_in_files = quickopen.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 = quickopen.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=quickopen
IAge=2

View File

@@ -1,6 +1,6 @@
# Quick Open Plugin
plugindir = $(PLUMA_PLUGINS_LIBS_DIR)/quickopen
plugindir = $(XEDIT_PLUGINS_LIBS_DIR)/quickopen
plugin_PYTHON = \
__init__.py \
popup.py \

View File

@@ -17,12 +17,12 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301, USA.
import pluma
import xedit
from windowhelper import WindowHelper
class QuickOpenPlugin(pluma.Plugin):
class QuickOpenPlugin(xedit.Plugin):
def __init__(self):
pluma.Plugin.__init__(self)
xedit.Plugin.__init__(self)
self._popup_size = (450, 300)
self._helpers = {}

View File

@@ -25,7 +25,7 @@ import gio
import pango
import glib
import fnmatch
import pluma
import xedit
import xml.sax.saxutils
from virtualdirs import VirtualDirectory
@@ -418,7 +418,7 @@ class Popup(gtk.Dialog):
uri = self._entry.get_text()
gfile = None
if pluma.utils.uri_is_valid(uri):
if xedit.utils.uri_is_valid(uri):
gfile = gio.File(uri)
elif os.path.isabs(uri):
f = gio.File(uri)

View File

@@ -65,7 +65,7 @@ class RecentDocumentsDirectory(VirtualDirectory):
added = 0
for item in items:
if item.has_group('pluma'):
if item.has_group('xedit'):
self.append(gio.File(item.get_uri()))
added += 1

View File

@@ -17,11 +17,11 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301, USA.
import pluma
import xedit
import gtk
from popup import Popup
import os
import pluma.commands
import xedit.commands
import gio
import glib
from virtualdirs import RecentDocumentsDirectory
@@ -64,7 +64,7 @@ class WindowHelper:
def _install_menu(self):
manager = self._window.get_ui_manager()
self._action_group = gtk.ActionGroup("PlumaQuickOpenPluginActions")
self._action_group = gtk.ActionGroup("XeditQuickOpenPluginActions")
self._action_group.add_actions([
("QuickOpen", gtk.STOCK_OPEN, _("Quick open"),
'<Ctrl><Alt>O', _("Quickly open documents"),
@@ -191,7 +191,7 @@ class WindowHelper:
self._popup = None
def on_activated(self, gfile):
pluma.commands.load_uri(self._window, gfile.get_uri(), None, -1)
xedit.commands.load_uri(self._window, gfile.get_uri(), None, -1)
return True
# ex:ts=8:et: