From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com ([143.182.124.21]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1S2rE2-0003RO-TB for bitbake-devel@lists.openembedded.org; Wed, 29 Feb 2012 22:38:19 +0100 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 29 Feb 2012 13:29:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="112979970" Received: from unknown (HELO [10.255.15.102]) ([10.255.15.102]) by azsmga001.ch.intel.com with ESMTP; 29 Feb 2012 13:29:48 -0800 Message-ID: <4F4E98CC.8010707@linux.intel.com> Date: Wed, 29 Feb 2012 13:29:48 -0800 From: Joshua Lock User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 MIME-Version: 1.0 To: bitbake-devel@lists.openembedded.org References: <439e7e3c5dd2534950c63d9df57963f1a3d35944.1330523904.git.shane.wang@intel.com> <79c20962f88a34c41344c8480aea6368f62c3241.1330523904.git.shane.wang@intel.com> In-Reply-To: <79c20962f88a34c41344c8480aea6368f62c3241.1330523904.git.shane.wang@intel.com> Subject: Re: [PATCH 27/32] Hob: add "OK" button to "BinbDialog" X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Feb 2012 21:38:19 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 29/02/12 06:15, Shane Wang wrote: > From: Dongxiao Xu > > For certain distributions, like FC16, it doesn't have close button in > sub-windows or dialogs. Therefore we need to add an "OK" button to > "BinbDialog" to close the dialog. If it exists for closing the dialogue it should be a 'Close' button. Cheers, Joshua > > Besides, let BinbDialog inherits the CrumbsDialog instead of gtk.Dialog > > Signed-off-by: Dongxiao Xu > --- > bitbake/lib/bb/ui/crumbs/hig.py | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py > index c5bd27a..20585b7 100644 > --- a/bitbake/lib/bb/ui/crumbs/hig.py > +++ b/bitbake/lib/bb/ui/crumbs/hig.py > @@ -90,13 +90,13 @@ class CrumbsMessageDialog(CrumbsDialog): > # > # Brought-in-by Dialog > # > -class BinbDialog(gtk.Dialog): > +class BinbDialog(CrumbsDialog): > """ > A dialog widget to show "brought in by" info when a recipe/package is clicked. > """ > > def __init__(self, title, content, parent=None): > - super(BinbDialog, self).__init__(title, parent, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, None) > + super(BinbDialog, self).__init__(title, parent, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, ("OK", gtk.RESPONSE_OK)) > > self.set_position(gtk.WIN_POS_MOUSE) > self.set_resizable(False) -- Joshua Lock Yocto Project "Johannes factotum" Intel Open Source Technology Centre