[dconf] editor: Use a lambda for the search box close button callback



commit 3afe357b331928d52b8f34c21c33c41c287141ce
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri May 10 10:39:05 2013 +1200

    editor: Use a lambda for the search box close button callback

 editor/dconf-editor.vala |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/editor/dconf-editor.vala b/editor/dconf-editor.vala
index d93074c..671b9b5 100644
--- a/editor/dconf-editor.vala
+++ b/editor/dconf-editor.vala
@@ -117,7 +117,10 @@ class ConfigurationEditor : Gtk.Application
         search_label = ui.get_object("search_label") as Gtk.Label;
         search_entry.activate.connect(find_next_cb);
         var search_box_close_button = ui.get_object("search_box_close_button") as Gtk.Button;
-        search_box_close_button.clicked.connect(close_search_cb);
+        search_box_close_button.clicked.connect(() =>
+        {
+            search_box.hide();
+        });
 
         var search_next_button = ui.get_object("search_next_button") as Gtk.Button;
         search_next_button.clicked.connect(find_next_cb);
@@ -127,11 +130,6 @@ class ConfigurationEditor : Gtk.Application
         if (model.get_iter_first(out iter))
             dir_tree_view.get_selection().select_iter(iter);
     }
-    
-    private void close_search_cb ()
-    {
-        search_box.hide();
-    }
 
     protected override void activate()
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]