summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobwidget.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobwidget.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobwidget.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py
index 247bbd1de4..f0d9cbcc98 100644
--- a/bitbake/lib/bb/ui/crumbs/hobwidget.py
+++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py
@@ -366,7 +366,7 @@ class HobTabBar(gtk.DrawingArea):
366 child["x"] = self.tab_x + i * self.tab_width 366 child["x"] = self.tab_x + i * self.tab_width
367 child["y"] = self.tab_y 367 child["y"] = self.tab_y
368 368
369 if self.blank_rectangle != None: 369 if self.blank_rectangle:
370 self.resize_blank_rectangle() 370 self.resize_blank_rectangle()
371 371
372 def resize_blank_rectangle(self): 372 def resize_blank_rectangle(self):
@@ -553,7 +553,7 @@ class HobTabBar(gtk.DrawingArea):
553 self.queue_draw() 553 self.queue_draw()
554 554
555 def set_blank_size(self, x, y, w, h): 555 def set_blank_size(self, x, y, w, h):
556 if self.blank_rectangle == None or self.blank_rectangle.x != x or self.blank_rectangle.width != w: 556 if not self.blank_rectangle or self.blank_rectangle.x != x or self.blank_rectangle.width != w:
557 self.emit("blank-area-changed", x, y, w, h) 557 self.emit("blank-area-changed", x, y, w, h)
558 558
559 return gtk.gdk.Rectangle(x, y, w, h) 559 return gtk.gdk.Rectangle(x, y, w, h)
@@ -640,7 +640,7 @@ class HobNotebook(gtk.VBox):
640 if not notebook: 640 if not notebook:
641 return 641 return
642 title = notebook.get_tab_label_text(notebook_child) 642 title = notebook.get_tab_label_text(notebook_child)
643 if title == None: 643 if not title:
644 return 644 return
645 for child in self.tabbar.children: 645 for child in self.tabbar.children:
646 if child["title"] == title: 646 if child["title"] == title: