Exemple #1
0
 def setup_search(self):
     self.search_tree_view = search.SearchTreeView(self)
     self.search_tree_view.show()
     self.search_scroll = Gtk.ScrolledWindow()
     self.search_scroll.add(self.search_tree_view)
     self.search_box = search.SearchComboBox(Gtk.ComboBox.new_with_entry(),
                                             self)
     self.search_box.combo_box.show()
     search_container = self.builder.get_object('search_container')
     search_container.pack_start(self.search_box.combo_box, False, False, 0)
     search_container.pack_start(self.search_scroll, True, True, 0)
Exemple #2
0
 def setup_search(self):
     always_show_results = not browser.WebKit2
     self.search_tree_view = search.SearchTreeView(self, always_show_results)
     self.search_tree_view.show()
     self.search_scroll = Gtk.ScrolledWindow()
     if always_show_results:
         self.search_scroll.show()
     self.search_scroll.add(self.search_tree_view)
     self.search_box = search.SearchComboBox(Gtk.ComboBox.new_with_entry(), self)
     self.search_box.combo_box.show()
     search_container = self.builder.get_object("search_container")
     search_container.pack_start(self.search_box.combo_box, False, False, 0)
     search_container.pack_start(self.search_scroll, True, True, 0)