[gedit-latex] Fix tool saving process
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] Fix tool saving process
- Date: Fri, 22 Jul 2011 09:01:52 +0000 (UTC)
commit a61eafc98903d11c65917094c8d41ccfe9d15d90
Author: Lucas David-Roesler <roesler lucas gmail com>
Date: Thu Jul 21 22:12:48 2011 -0400
Fix tool saving process
latex/base/windowactivatable.py | 2 +-
latex/preferences/dialog.py | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/latex/base/windowactivatable.py b/latex/base/windowactivatable.py
index d7379c6..01c1083 100644
--- a/latex/base/windowactivatable.py
+++ b/latex/base/windowactivatable.py
@@ -321,7 +321,7 @@ class LaTeXWindowActivatable(GObject.Object, Gedit.WindowActivatable, PeasGtk.Co
if self._toolbar:
self._toolbar.hide()
- def _on_tools_changed(self):
+ def _on_tools_changed(self, tools):
self._log.debug("_on_tools_changed")
# remove tool actions and ui
diff --git a/latex/preferences/dialog.py b/latex/preferences/dialog.py
index e84a966..fcf5579 100644
--- a/latex/preferences/dialog.py
+++ b/latex/preferences/dialog.py
@@ -409,7 +409,7 @@ class PreferencesDialog(GladeInterface):
if iter is None:
restore_cursor = False
else:
- path = store.get_string_from_iter(iter)
+ path = store.get_path(iter)
restore_cursor = True
# reload tools
@@ -419,7 +419,7 @@ class PreferencesDialog(GladeInterface):
# restore cursor
if restore_cursor:
- self._view_tool.set_cursor(path)
+ self._view_tool.set_cursor(path, None, False)
def _on_configure_tool_clicked(self, button):
store, it = self._view_tool.get_selection().get_selected()
@@ -428,7 +428,7 @@ class PreferencesDialog(GladeInterface):
dialog = ConfigureToolDialog()
if not dialog.run(tool) is None:
- self._preferences.save_or_update_tool(tool)
+ self._tool_preferences.save_or_update_tool(tool)
def _on_delete_tool_clicked(self, button):
store, it = self._view_tool.get_selection().get_selected()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]