diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobwidget.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobwidget.py | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py index a5c52f7964..0bb83d78f5 100644 --- a/bitbake/lib/bb/ui/crumbs/hobwidget.py +++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py | |||
@@ -673,20 +673,17 @@ class HobNotebook(gtk.VBox): | |||
673 | 673 | ||
674 | def blank_area_resize_cb(self, widget, request_x, request_y, request_width, request_height): | 674 | def blank_area_resize_cb(self, widget, request_x, request_y, request_width, request_height): |
675 | self.search.set_size_request(request_width, request_height) | 675 | self.search.set_size_request(request_width, request_height) |
676 | widget.modify_bg(gtk.STATE_SELECTED, gtk.gdk.color_parse(HobColors.YELLOW)) | 676 | |
677 | 677 | def set_search_entry_editable_cb(self, search, event): | |
678 | def set_search_entry_editable_cb(self, widget, event): | 678 | search.set_editable(True) |
679 | if self.search: | 679 | search.set_text("") |
680 | self.search.set_editable(True) | 680 | style = self.search.get_style() |
681 | self.search.set_text("") | 681 | style.text[gtk.STATE_NORMAL] = self.get_colormap().alloc_color(HobColors.BLACK, False, False) |
682 | style = self.search.get_style() | 682 | search.set_style(style) |
683 | style.text[gtk.STATE_NORMAL] = self.get_colormap().alloc_color(HobColors.BLACK, False, False) | 683 | |
684 | self.search.set_style(style) | 684 | def set_search_entry_reset_cb(self, search, event): |
685 | 685 | style = search.get_style() | |
686 | def set_search_entry_reset_cb(self, widget, event): | 686 | style.text[gtk.STATE_NORMAL] = self.get_colormap().alloc_color(HobColors.GRAY, False, False) |
687 | if self.search: | 687 | search.set_style(style) |
688 | style = self.search.get_style() | 688 | search.set_text(self.search_name) |
689 | style.text[gtk.STATE_NORMAL] = self.get_colormap().alloc_color(HobColors.GRAY, False, False) | 689 | search.set_editable(False) |
690 | self.search.set_style(style) | ||
691 | self.search.set_text(self.search_name) | ||
692 | self.search.set_editable(False) | ||