diff options
Diffstat (limited to 'plugins/quickopen/quickopen')
-rwxr-xr-x | plugins/quickopen/quickopen/Makefile.am | 2 | ||||
-rwxr-xr-x | plugins/quickopen/quickopen/__init__.py | 6 | ||||
-rwxr-xr-x | plugins/quickopen/quickopen/popup.py | 4 | ||||
-rwxr-xr-x | plugins/quickopen/quickopen/virtualdirs.py | 2 | ||||
-rwxr-xr-x | plugins/quickopen/quickopen/windowhelper.py | 10 |
5 files changed, 12 insertions, 12 deletions
diff --git a/plugins/quickopen/quickopen/Makefile.am b/plugins/quickopen/quickopen/Makefile.am index 88882fdf..7d4fa069 100755 --- a/plugins/quickopen/quickopen/Makefile.am +++ b/plugins/quickopen/quickopen/Makefile.am @@ -1,6 +1,6 @@ # Quick Open Plugin -plugindir = $(GEDIT_PLUGINS_LIBS_DIR)/quickopen +plugindir = $(PLUMA_PLUGINS_LIBS_DIR)/quickopen plugin_PYTHON = \ __init__.py \ popup.py \ diff --git a/plugins/quickopen/quickopen/__init__.py b/plugins/quickopen/quickopen/__init__.py index a41c9400..75623a37 100755 --- a/plugins/quickopen/quickopen/__init__.py +++ b/plugins/quickopen/quickopen/__init__.py @@ -17,12 +17,12 @@ # Foundation, Inc., 59 Temple Place, Suite 330, # Boston, MA 02111-1307, USA. -import gedit +import pluma from windowhelper import WindowHelper -class QuickOpenPlugin(gedit.Plugin): +class QuickOpenPlugin(pluma.Plugin): def __init__(self): - gedit.Plugin.__init__(self) + pluma.Plugin.__init__(self) self._popup_size = (450, 300) self._helpers = {} diff --git a/plugins/quickopen/quickopen/popup.py b/plugins/quickopen/quickopen/popup.py index a80caf31..5aa83725 100755 --- a/plugins/quickopen/quickopen/popup.py +++ b/plugins/quickopen/quickopen/popup.py @@ -25,7 +25,7 @@ import gio import pango import glib import fnmatch -import gedit +import pluma import xml.sax.saxutils from virtualdirs import VirtualDirectory @@ -418,7 +418,7 @@ class Popup(gtk.Dialog): uri = self._entry.get_text() gfile = None - if gedit.utils.uri_is_valid(uri): + if pluma.utils.uri_is_valid(uri): gfile = gio.File(uri) elif os.path.isabs(uri): f = gio.File(uri) diff --git a/plugins/quickopen/quickopen/virtualdirs.py b/plugins/quickopen/quickopen/virtualdirs.py index ef0b8dc4..13c5c3a3 100755 --- a/plugins/quickopen/quickopen/virtualdirs.py +++ b/plugins/quickopen/quickopen/virtualdirs.py @@ -65,7 +65,7 @@ class RecentDocumentsDirectory(VirtualDirectory): added = 0 for item in items: - if item.has_group('gedit'): + if item.has_group('pluma'): self.append(gio.File(item.get_uri())) added += 1 diff --git a/plugins/quickopen/quickopen/windowhelper.py b/plugins/quickopen/quickopen/windowhelper.py index 70ea26f0..0d87550e 100755 --- a/plugins/quickopen/quickopen/windowhelper.py +++ b/plugins/quickopen/quickopen/windowhelper.py @@ -17,11 +17,11 @@ # Foundation, Inc., 59 Temple Place, Suite 330, # Boston, MA 02111-1307, USA. -import gedit +import pluma import gtk from popup import Popup import os -import gedit.commands +import pluma.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("GeditQuickOpenPluginActions") + self._action_group = gtk.ActionGroup("PlumaQuickOpenPluginActions") self._action_group.add_actions([ ("QuickOpen", gtk.STOCK_OPEN, _("Quick open"), '<Ctrl><Alt>O', _("Quickly open documents"), @@ -88,7 +88,7 @@ class WindowHelper: paths.append(gfile.get_parent()) # File browser root directory - if gedit.version[0] > 2 or (gedit.version[0] == 2 and (gedit.version[1] > 26 or (gedit.version[1] == 26 and gedit.version[2] >= 2))): + if pluma.version[0] > 2 or (pluma.version[0] == 2 and (pluma.version[1] > 26 or (pluma.version[1] == 26 and pluma.version[2] >= 2))): bus = self._window.get_message_bus() try: @@ -192,7 +192,7 @@ class WindowHelper: self._popup = None def on_activated(self, gfile): - gedit.commands.load_uri(self._window, gfile.get_uri(), None, -1) + pluma.commands.load_uri(self._window, gfile.get_uri(), None, -1) return True # ex:ts=8:et: |