Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/develop-activity/develop_app.py
diff options
context:
space:
mode:
authorAgustin Zubiaga <aguz@sugarlabs.org>2012-06-11 01:56:08 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-07-10 12:23:09 (GMT)
commitb8f437745dd13d20195bb03d0d962c9583c2ca07 (patch)
tree47d4796ae8b6c8526b4fbcd2dab2ed13f4da3af6 /develop-activity/develop_app.py
parent0f6fecd809035d1a29c522a24bf0ac76d62433f5 (diff)
Editor fixes
Fixes: - Use TextTag to highlight a search text - Use a class only for gtksourceview2.View Bugs: - Replace, is doesn't working - Capitalization option (in search), doesn't work good. Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org>
Diffstat (limited to 'develop-activity/develop_app.py')
-rw-r--r--develop-activity/develop_app.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/develop-activity/develop_app.py b/develop-activity/develop_app.py
index e233d83..aa3b5c6 100644
--- a/develop-activity/develop_app.py
+++ b/develop-activity/develop_app.py
@@ -746,12 +746,7 @@ class DevelopSearchToolbar(gtk.Toolbar):
self._findnext.set_sensitive(True)
if not self.s_opts.use_regex:
#do not do partial searches for regex
- if self._activity.editor.find_next(text,
- SearchOptions(self.s_opts,
- stay=True,
- where=(self.s_opts.where if
- self.s_opts.where != S_WHERE.multifile
- else S_WHERE.file))):
+ if self._activity.editor.find_next(text):
#no multifile, or focus gets grabbed
self._replace_button.set_sensitive(True)
@@ -762,15 +757,13 @@ class DevelopSearchToolbar(gtk.Toolbar):
def _findprev_cb(self, button=None):
ftext = self._search_entry.props.text
if ftext:
- if self._activity.editor.find_next(ftext,
- SearchOptions(self.s_opts,
- forward=False)):
+ if self._activity.editor.find_next(ftext, direction='backward'):
self._replace_button.set_sensitive(True)
def _findnext_cb(self, button=None):
ftext = self._search_entry.props.text
if ftext:
- if self._activity.editor.find_next(ftext, self.s_opts):
+ if self._activity.editor.find_next(ftext, direction='forward'):
self._replace_button.set_sensitive(True)
# bad paul! this function was copied from sugar's activity.py via Write