| Submitter | Shane Wang |
|---|---|
| Date | March 16, 2012, 3:10 p.m. |
| Message ID | <b22b81f849a14cf8f01c796bfaf7bfca1e0f2462.1331910234.git.shane.wang@intel.com> |
| Download | mbox | patch |
| Permalink | /patch/23673/ |
| State | New |
| Headers | show |
Comments
On 16/03/12 08:10, Shane Wang wrote: > From: Liming An<limingx.l.an@intel.com> > > To delete some code which is not used > > Signed-off-by: Liming An<limingx.l.an@intel.com> > Signed-off-by: Shane Wang<shane.wang@intel.com> Signed-off-by: Joshua Lock <josh@linux.intel.com> > --- > bitbake/lib/bb/ui/crumbs/hobwidget.py | 2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) > > diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py > index f0d9cbc..71f0629 100644 > --- a/bitbake/lib/bb/ui/crumbs/hobwidget.py > +++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py > @@ -516,7 +516,6 @@ class HobTabBar(gtk.DrawingArea): > cr.fill() > > def draw_indicator(self, cr, i): > - style = self.get_style() > tab_x = self.children[i]["x"] > tab_y = self.children[i]["y"] > 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 = tab_x + self.tab_width * 3/4 - dest_w/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 > color = cr.set_source_color(gtk.gdk.color_parse(HobColors.ORANGE)) > cr.arc(x + r, y + r, r, 0, 2*math.pi)
Patch
diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py index f0d9cbc..71f0629 100644 --- a/bitbake/lib/bb/ui/crumbs/hobwidget.py +++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py @@ -516,7 +516,6 @@ class HobTabBar(gtk.DrawingArea): cr.fill() def draw_indicator(self, cr, i): - style = self.get_style() tab_x = self.children[i]["x"] tab_y = self.children[i]["y"] 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 = tab_x + self.tab_width * 3/4 - dest_w/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 color = cr.set_source_color(gtk.gdk.color_parse(HobColors.ORANGE)) cr.arc(x + r, y + r, r, 0, 2*math.pi)