Hob: reset the selection if switch to a new base image

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Hob: Fix advanced setting reparse mechanism

When judging if reparse is needed when change values in advanced
setting, we need also include user's own defined variable pairs.

[YOCTO #2121]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Hob: save CONF_VERSION and LCONF_VERSION into template

To pass the sanity check, we need to define CONF_VERSION and
LCONF_VERSION in local.conf and bblayers.conf.

[YOCTO #2119]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Add bitbake-dumpsig to make it more obvious how to dump a signatures file

[YOCTO #2057]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ui/crumbs/hobwidget: add clear icon to search entries in HobNotebook

It's a common pattern on Gtk+ desktops to be able to clear a search/filter
entry using an icon in that entry.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
ui/crumbs/persistenttooltip: tweak borders

Change the layout and borders so that the close button is flush with the
edge of the tooltip window yet leave the contents with a small border such
that text isn't flush with the window edge.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
ui/crumbs/persistenttooltip: fix colours on darker themes

Darker gtk+ themes, such as the one used in Ubuntu Unity, revealed that the
PersistentTooltip styling wasn't setting the label colour correctly.

Set the label foreground colour to the tooltip_fg_colour value as read from
gtk-color-scheme property of the system settings.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
ui/crumbs/persistenttooltip: fix whitespace

We use 4 spaces, not a tab, in BitBake

Signed-off-by: Joshua Lock <josh@linux.intel.com>
lib/bb/ui/crumbs: Add HobAltButton and use it

This adds a gtk.Button subclass for secondary actions which unsets the
relief so that the user is aware that the button is clickable and yet it is
more subtle than the primary action (such that the primary action is the
most obvious one) - this is per the interaction design.

Further we replace all uses of gtk.LinkButton with the new HobAltButton

Partially addresses [YOCTO #2105], a follow on patch will theme the button
so that it matches the visual design.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
lib/ui/icons: autocrop images

Remove transparent border from the edge of the layers_display,
packages_display and recipe_display images.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
lib/bb/ui/crumbs: replace HobXpmLabelButtonBox with HobImageButton

HobImageButton is an HobAltButton subclass, and therefore behaves like a
button.

Further the HobImageButton uses a new module method soften_color() to make
the secondary text of the button a ligher colour, per the design.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
lib/bb/ui/crumbs: add icons for use in the layer dialogue

Signed-off-by: Joshua Lock <josh@linux.intel.com>
ui/crumbs/hig: make the layer selection dialogue more closely match design

The layer dialogue design includes in-line remove/delete widgets next to
the layer path in the tree view for all layers other than the meta layer as
well as an in-line notice that the meta layer cannot be removed.

This is achieved  in this patch through the use of custom cell_data_func's
for the treeview to render the meta layer differently and a custom
CellRenderer implementation, CellRendererPixbufActivatable, which renders a
pixbuf and emits a clicked signal when the user clicks on it.

Fixes [YOCTO #2083]

Signed-off-by: Joshua Lock <josh@linux.intel.com>
lib/bb/ui/crumbs/hig: disable removal of meta-hob layer

The Hob GUI requires the meta-hob layer to function so prevent its removal
as we do with the core meta layer.

Signed-off-by: Joshua Lock <josh@linux.intel.com>