mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
2abdbaa150
commit
89a5428cc1
@@ -673,20 +673,17 @@ class HobNotebook(gtk.VBox):
|
||||
|
||||
def blank_area_resize_cb(self, widget, request_x, request_y, request_width, request_height):
|
||||
self.search.set_size_request(request_width, request_height)
|
||||
widget.modify_bg(gtk.STATE_SELECTED, gtk.gdk.color_parse(HobColors.YELLOW))
|
||||
|
||||
def set_search_entry_editable_cb(self, widget, event):
|
||||
if self.search:
|
||||
self.search.set_editable(True)
|
||||
self.search.set_text("")
|
||||
style = self.search.get_style()
|
||||
style.text[gtk.STATE_NORMAL] = self.get_colormap().alloc_color(HobColors.BLACK, False, False)
|
||||
self.search.set_style(style)
|
||||
def set_search_entry_editable_cb(self, search, event):
|
||||
search.set_editable(True)
|
||||
search.set_text("")
|
||||
style = self.search.get_style()
|
||||
style.text[gtk.STATE_NORMAL] = self.get_colormap().alloc_color(HobColors.BLACK, False, False)
|
||||
search.set_style(style)
|
||||
|
||||
def set_search_entry_reset_cb(self, widget, event):
|
||||
if self.search:
|
||||
style = self.search.get_style()
|
||||
style.text[gtk.STATE_NORMAL] = self.get_colormap().alloc_color(HobColors.GRAY, False, False)
|
||||
self.search.set_style(style)
|
||||
self.search.set_text(self.search_name)
|
||||
self.search.set_editable(False)
|
||||
def set_search_entry_reset_cb(self, search, event):
|
||||
style = search.get_style()
|
||||
style.text[gtk.STATE_NORMAL] = self.get_colormap().alloc_color(HobColors.GRAY, False, False)
|
||||
search.set_style(style)
|
||||
search.set_text(self.search_name)
|
||||
search.set_editable(False)
|
||||
|
||||
Reference in New Issue
Block a user