All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Lock <josh@linux.intel.com>
To: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH 06/11] Hob: Remove the indication in machine/base image combobox
Date: Wed, 14 Mar 2012 12:37:42 -0700	[thread overview]
Message-ID: <4F60F386.9040004@linux.intel.com> (raw)
In-Reply-To: <e01f5d85b03194c9338c1689c7cf0b5d054a42db.1331716896.git.dongxiao.xu@intel.com>



On 14/03/12 02:26, Dongxiao Xu wrote:
> Remove the "--select a machine--" prompt in machine selection.
> Also change "--select a base image--" to "Start from scratch" for
> base image selection.
>
> Signed-off-by: Dongxiao Xu<dongxiao.xu@intel.com>

Looks good.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
> ---
>   lib/bb/ui/crumbs/hoblistmodel.py           |    2 +-
>   lib/bb/ui/crumbs/imageconfigurationpage.py |   20 +++++++-------------
>   2 files changed, 8 insertions(+), 14 deletions(-)
>
> diff --git a/lib/bb/ui/crumbs/hoblistmodel.py b/lib/bb/ui/crumbs/hoblistmodel.py
> index 0378828..c19aaa8 100644
> --- a/lib/bb/ui/crumbs/hoblistmodel.py
> +++ b/lib/bb/ui/crumbs/hoblistmodel.py
> @@ -422,7 +422,7 @@ class RecipeListModel(gtk.ListStore):
>       """
>       (COL_NAME, COL_DESC, COL_LIC, COL_GROUP, COL_DEPS, COL_BINB, COL_TYPE, COL_INC, COL_IMG, COL_INSTALL, COL_PN) = range(11)
>
> -    __dummy_image__ = "--select a base image--"
> +    __dummy_image__ = "Start from scratch"
>
>       __gsignals__ = {
>           "recipelist-populated" : (gobject.SIGNAL_RUN_LAST,
> diff --git a/lib/bb/ui/crumbs/imageconfigurationpage.py b/lib/bb/ui/crumbs/imageconfigurationpage.py
> index f029bf8..3b1201e 100644
> --- a/lib/bb/ui/crumbs/imageconfigurationpage.py
> +++ b/lib/bb/ui/crumbs/imageconfigurationpage.py
> @@ -33,8 +33,6 @@ from bb.ui.crumbs.hobpages import HobPage
>   #
>   class ImageConfigurationPage (HobPage):
>
> -    __dummy_machine__ = "--select a machine--"
> -
>       def __init__(self, builder):
>           super(ImageConfigurationPage, self).__init__(builder, "Image configuration")
>
> @@ -236,22 +234,18 @@ class ImageConfigurationPage (HobPage):
>
>       def machine_combo_changed_cb(self, machine_combo):
>           combo_item = machine_combo.get_active_text()
> -        if not combo_item or combo_item == self.__dummy_machine__:
> -            self.builder.configuration.curr_mach = ""
> -            self.builder.switch_page(self.builder.MACHINE_SELECTION)
> -        else:
> -            self.builder.configuration.curr_mach = combo_item
> -            # Do reparse recipes
> -            self.builder.switch_page(self.builder.RCPPKGINFO_POPULATING)
> +        self.builder.configuration.curr_mach = combo_item
> +        # Do reparse recipes
> +        self.builder.switch_page(self.builder.RCPPKGINFO_POPULATING)
>
>       def update_machine_combo(self):
> -        all_machines = [self.__dummy_machine__] + self.builder.parameters.all_machines
> +        all_machines = self.builder.parameters.all_machines
>
>           model = self.machine_combo.get_model()
>           model.clear()
>           for machine in all_machines:
>               self.machine_combo.append_text(machine)
> -        self.machine_combo.set_active(0)
> +        self.machine_combo.set_active(-1)
>
>       def switch_machine_combo(self):
>           model = self.machine_combo.get_model()
> @@ -261,7 +255,7 @@ class ImageConfigurationPage (HobPage):
>                   self.machine_combo.set_active(active)
>                   return
>               active += 1
> -        self.machine_combo.set_active(0)
> +        self.machine_combo.set_active(-1)
>
>       def image_combo_changed_idle_cb(self, selected_image, selected_recipes, selected_packages):
>           self.builder.update_recipe_model(selected_image, selected_recipes)
> @@ -302,7 +296,7 @@ class ImageConfigurationPage (HobPage):
>           # populate image combo
>           filter = {RecipeListModel.COL_TYPE : ['image']}
>           image_model = recipe_model.tree_model(filter)
> -        active = 0
> +        active = -1
>           cnt = 0
>
>           it = image_model.get_iter_first()

-- 
Joshua '贾詡' Lock
         Yocto Project "Johannes factotum"
         Intel Open Source Technology Centre



  reply	other threads:[~2012-03-14 19:47 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-14  9:26 [PATCH 00/11][PULL] Hob: Functionality and GUI fixes Dongxiao Xu
2012-03-14  9:26 ` [PATCH 01/11] Hob: add "Close" button to "BinbDialog" Dongxiao Xu
2012-03-14 19:38   ` Joshua Lock
2012-03-14  9:26 ` [PATCH 02/11] Hob: Disable the handling of "NoProvider" event Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-15  8:31     ` Xu, Dongxiao
2012-03-15 22:35       ` Joshua Lock
2012-03-14  9:26 ` [PATCH 03/11] cooker: add package rdepends and rrecommends info Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-14  9:26 ` [PATCH 04/11] Hob: Fix the image installation dependency Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-15  6:02     ` Xu, Dongxiao
2012-03-15 17:47       ` Joshua Lock
2012-03-14  9:26 ` [PATCH 05/11] Hob: Remove the reset button in recipe/package selection page Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-14  9:26 ` [PATCH 06/11] Hob: Remove the indication in machine/base image combobox Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock [this message]
2012-03-14  9:26 ` [PATCH 07/11] Hob: Remove the recipe/package populated signal Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-14  9:26 ` [PATCH 08/11] Hob: Show recipe/package editing button after base image is selected Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-14  9:26 ` [PATCH 09/11] Hob: Emit command-failed signal even if error msg is None Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-14  9:26 ` [PATCH 10/11] Hob: Add stop button for parsing progress Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-15  0:44     ` Xu, Dongxiao
2012-03-14  9:26 ` [PATCH 11/11] Hob: improve recipe/package selection performance Dongxiao Xu
2012-03-14 19:37   ` Joshua Lock
2012-03-14 23:54     ` Xu, Dongxiao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F60F386.9040004@linux.intel.com \
    --to=josh@linux.intel.com \
    --cc=bitbake-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.