[dconf] editor: Search function now does partial matches and ensures key list is visible on selected entry
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] editor: Search function now does partial matches and ensures key list is visible on selected entry
- Date: Fri, 4 May 2012 04:07:51 +0000 (UTC)
commit 0cc6a30ba6d5427628b0335fc8bfba51587ea390
Author: Robert Ancell <robert ancell canonical com>
Date: Fri May 4 16:07:46 2012 +1200
editor: Search function now does partial matches and ensures key list is visible on selected entry
editor/dconf-editor.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/editor/dconf-editor.vala b/editor/dconf-editor.vala
index 0bc24f9..22fcff4 100644
--- a/editor/dconf-editor.vala
+++ b/editor/dconf-editor.vala
@@ -293,12 +293,13 @@ class ConfigurationEditor : Gtk.Application
do
{
var key = dir.key_model.get_key(key_iter);
- if (key.name == search_entry.text)
+ if (key.name.index_of (search_entry.text) >= 0)
{
dir_tree_view.expand_to_path(model.get_path(iter));
dir_tree_view.get_selection().select_iter(iter);
dir_tree_view.scroll_to_cell(model.get_path(iter), null, false, 0, 0);
key_tree_view.get_selection().select_iter(key_iter);
+ key_tree_view.scroll_to_cell(dir.key_model.get_path(key_iter), null, false, 0, 0);
return;
}
} while(dir.key_model.iter_next(ref key_iter));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]