summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorLiming An <limingx.l.an@intel.com>2012-03-16 22:28:13 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-20 15:21:35 +0000
commit89a5428cc11b8166ad04b79bf847198c4f594f90 (patch)
tree158d01bc538f3811e70a0f9af7fe584c2b18becb /bitbake/lib
parent2abdbaa150a77c6473d728e67c19bc7b23472caa (diff)
downloadpoky-89a5428cc11b8166ad04b79bf847198c4f594f90.tar.gz
Hob: fix static variable "self.search" to parameter "search" in signal callback function
To fix the signal callback function code, and make the temp parameter to replaced the static global variable, as required. (From Poky rev: a95b61d48bf92948ff5a21896e71ed3cb323ab38) (Bitbake rev: 76f63e70c7b2d6291f8b11bc5baebda510a276d7) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobwidget.py31
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)