mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
Hob: remove the invalid code in hobwidget.py
To delete some code which is not used (From Poky rev: a8f5a72d36e9a55ec7a2296e1c9623e177a95a74) (Bitbake rev: 27e77f6c196e313b5b941238e54b74fc746a0230) 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
491c87d167
commit
4dc552a216
@@ -516,7 +516,6 @@ class HobTabBar(gtk.DrawingArea):
|
|||||||
cr.fill()
|
cr.fill()
|
||||||
|
|
||||||
def draw_indicator(self, cr, i):
|
def draw_indicator(self, cr, i):
|
||||||
style = self.get_style()
|
|
||||||
tab_x = self.children[i]["x"]
|
tab_x = self.children[i]["x"]
|
||||||
tab_y = self.children[i]["y"]
|
tab_y = self.children[i]["y"]
|
||||||
number = self.children[i]["indicator_number"]
|
number = self.children[i]["indicator_number"]
|
||||||
@@ -528,7 +527,6 @@ class HobTabBar(gtk.DrawingArea):
|
|||||||
# x position is offset(tab_width*3/4 - icon_width/2) + start_pos(tab_x)
|
# x position is offset(tab_width*3/4 - icon_width/2) + start_pos(tab_x)
|
||||||
x = tab_x + self.tab_width * 3/4 - dest_w/2
|
x = tab_x + self.tab_width * 3/4 - dest_w/2
|
||||||
y = tab_y + self.tab_height/2 - dest_h/2
|
y = tab_y + self.tab_height/2 - dest_h/2
|
||||||
cr.move_to(tab_x, tab_y)
|
|
||||||
r = min(dest_w, dest_h)/2
|
r = min(dest_w, dest_h)/2
|
||||||
color = cr.set_source_color(gtk.gdk.color_parse(HobColors.ORANGE))
|
color = cr.set_source_color(gtk.gdk.color_parse(HobColors.ORANGE))
|
||||||
cr.arc(x + r, y + r, r, 0, 2*math.pi)
|
cr.arc(x + r, y + r, r, 0, 2*math.pi)
|
||||||
|
|||||||
Reference in New Issue
Block a user