lib/bb/ui/crumbs/builder: only show a close button on the Layer Selector
authorJoshua Lock <josh@linux.intel.com>
Thu, 22 Mar 2012 22:56:30 +0000 (15:56 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Mar 2012 16:10:23 +0000 (16:10 +0000)
Per discussion with the design team the LayerSelectionDialog should only
have a close button.

See: https://bugzilla.yoctoproject.org/show_bug.cgi?id=2083#c10

(Bitbake rev: 65d92efe2786f21b8a2790ef0383f87b6dc15b57)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/crumbs/builder.py

index 5a292e7..ce03834 100755 (executable)
@@ -671,8 +671,7 @@ class Builder(gtk.Window):
                      flags = gtk.DIALOG_MODAL
                          | gtk.DIALOG_DESTROY_WITH_PARENT
                          | gtk.DIALOG_NO_SEPARATOR,
-                     buttons = (gtk.STOCK_CANCEL, gtk.RESPONSE_NO,
-                                gtk.STOCK_OK, gtk.RESPONSE_YES))
+                     buttons = (gtk.STOCK_CLOSE, gtk.RESPONSE_YES))
         response = dialog.run()
         if response == gtk.RESPONSE_YES:
             self.configuration.layers = dialog.layers