[gedit] Do not implement configurable for now.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Do not implement configurable for now.
- Date: Sun, 20 Mar 2011 23:05:51 +0000 (UTC)
commit bdcd0ca624dc2fd94fda80e0d95b07d0807e697c
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Mar 20 23:59:22 2011 +0100
Do not implement configurable for now.
We need to split a manager widget from the current dialog to port this
to Peas.Configurable.
plugins/externaltools/tools/windowactivatable.py | 18 ++++--------------
1 files changed, 4 insertions(+), 14 deletions(-)
---
diff --git a/plugins/externaltools/tools/windowactivatable.py b/plugins/externaltools/tools/windowactivatable.py
index 94a3e14..6185d33 100644
--- a/plugins/externaltools/tools/windowactivatable.py
+++ b/plugins/externaltools/tools/windowactivatable.py
@@ -109,7 +109,6 @@ class ToolMenu(object):
def on_accelmap_changed(self, accelmap, path, key, mod, tool):
tool.shortcut = Gtk.accelerator_name(key, mod)
tool.save()
-
self._window.get_data("ExternalToolsPluginWindowData").update_manager(tool)
def update(self):
@@ -154,7 +153,8 @@ class ToolMenu(object):
if item is not None:
action.set_visible(states[item.applicability] and self.filter_language(language, item))
-class WindowActivatable(GObject.Object, Gedit.WindowActivatable, PeasGtk.Configurable):
+# FIXME: restore the launch of the manager on configure using PeasGtk.Configurable
+class WindowActivatable(GObject.Object, Gedit.WindowActivatable):
__gtype_name__ = "ExternalToolsWindowActivatable"
window = GObject.property(type=Gedit.Window)
@@ -228,14 +228,6 @@ class WindowActivatable(GObject.Object, Gedit.WindowActivatable, PeasGtk.Configu
bottom = self.window.get_bottom_panel()
bottom.remove_item(self._output_buffer.panel)
- def update_manager(self, tool):
- self.update_manager(tool)
-
- def do_create_configure_widget(self):
- #FIXME
- #return self.open_dialog()
- pass
-
def open_dialog(self):
if not self._manager:
self._manager = Manager(self.plugin_info.get_data_dir())
@@ -251,10 +243,8 @@ class WindowActivatable(GObject.Object, Gedit.WindowActivatable, PeasGtk.Configu
return self._manager.dialog
def update_manager(self, tool):
- if not self._manager:
- return
-
- self._manager.tool_changed(tool, True)
+ if self._manager:
+ self._manager.tool_changed(tool, True)
def on_manager_destroy(self, dialog):
alloc = dialog.get_allocation()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]