1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

Rename the ui 'init' method to 'main'

As these may run the UI in a blocking fashion and then return the exit code,
'init' was an inappropriate name, and 'main' is more appropriate.

(Bitbake rev: 4d081a0ed759bd526ab01849d650bd9e8d80ddd1)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Chris Larson
2010-12-09 14:05:22 -05:00
committed by Richard Purdie
parent 72c6953488
commit c8d2dad049
6 changed files with 10 additions and 21 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ class gtkthread(threading.Thread):
gtk.main()
gtkthread.quit.set()
def init(server, eventHandler):
def main(server, eventHandler):
try:
cmdline = server.runCommand(["getCmdLineAction"])
+1 -1
View File
@@ -49,7 +49,7 @@ class MainWindow (gtk.Window):
self.set_default_size(640, 480)
scrolled_window.add (self.cur_build_tv)
def init (server, eventHandler):
def main (server, eventHandler):
gobject.threads_init()
gtk.gdk.threads_init()
+1 -1
View File
@@ -66,7 +66,7 @@ class BBLogFormatter(logging.Formatter):
else:
return logging.Formatter.format(self, record)
def init(server, eventHandler):
def main(server, eventHandler):
# Get values of variables which control our output
includelogs = server.runCommand(["getVariable", "BBINCLUDELOGS"])
+1 -1
View File
@@ -324,7 +324,7 @@ class NCursesUI:
shutdown = shutdown + 1
pass
def init(server, eventHandler):
def main(server, eventHandler):
if not os.isatty(sys.stdout.fileno()):
print("FATAL: Unable to run 'ncurses' UI without a TTY.")
return
+1 -1
View File
@@ -390,7 +390,7 @@ def running_build_failed_cb (running_build, manager):
print("build failed")
manager.notify_build_failed ()
def init (server, eventHandler):
def main (server, eventHandler):
# Initialise threading...
gobject.threads_init()
gtk.gdk.threads_init()