summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Gautier <starmad@pegase.localdomain>2009-03-25 20:05:39 +0100
committerMatthieu Gautier <starmad@pegase.localdomain>2009-03-25 20:05:39 +0100
commit338a80b927a7fc5a390b7359253c2d6a7a86910d (patch)
tree43bd45cb112a49b5d99fb4d29b6eef146e330a31
parenta7653c3be74a572ae8f874e2ec84cf8c127d5b99 (diff)
downloadg-ed-it-338a80b927a7fc5a390b7359253c2d6a7a86910d.zip
g-ed-it-338a80b927a7fc5a390b7359253c2d6a7a86910d.tar.gz
g-ed-it-338a80b927a7fc5a390b7359253c2d6a7a86910d.tar.xz
Create a sub-dir g-ed-it.
Signed-off-by: Matthieu Gautier <starmad@pegase.localdomain>
-rw-r--r--g-ed-it/__init__.py21
-rw-r--r--g-ed-it/commit.glade (renamed from commit.glade)0
-rw-r--r--g-ed-it/g_ed_it.py (renamed from g-ed-it.py)14
3 files changed, 22 insertions, 13 deletions
diff --git a/g-ed-it/__init__.py b/g-ed-it/__init__.py
new file mode 100644
index 0000000..d57f401
--- /dev/null
+++ b/g-ed-it/__init__.py
@@ -0,0 +1,21 @@
+import gedit
+
+import os
+import os.path
+
+import g_ed_it
+
+
+class G_ed_it(gedit.Plugin):
+ def __init__(self):
+ gedit.Plugin.__init__(self)
+ self.instances = {}
+
+ def activate(self, window):
+ self.instances[window] = g_ed_it.PluginHelper(self, window)
+
+ def deactivate(self, window):
+ self.instances[window].deactivate()
+
+ def update_ui(self, window):
+ self.instances[window].update_ui()
diff --git a/commit.glade b/g-ed-it/commit.glade
index 8342062..8342062 100644
--- a/commit.glade
+++ b/g-ed-it/commit.glade
diff --git a/g-ed-it.py b/g-ed-it/g_ed_it.py
index b0943aa..553dff4 100644
--- a/g-ed-it.py
+++ b/g-ed-it/g_ed_it.py
@@ -115,16 +115,4 @@ class PluginHelper:
self._search_text_box = self.glade_xml.get_widget("commit_text")
self._search_text_box.connect("changed", self.on_commit_text_changed)
-class G_ed_it(gedit.Plugin):
- def __init__(self):
- gedit.Plugin.__init__(self)
- self.instances = {}
-
- def activate(self, window):
- self.instances[window] = PluginHelper(self, window)
-
- def deactivate(self, window):
- self.instances[window].deactivate()
-
- def update_ui(self, window):
- self.instances[window].update_ui()
+