ObjectChooser: preserve filter type

When the ObjectChooser is called with the filter_type=FILTER_TYPE_MIME_BY_ACTIVITY
the filter_type was replaced by FILTER_TYPE_ACTIVITY.
This patch preserve the value used, if not filter type was selected,
use FILTER_TYPE_ACTIVITY.

Signd-off-by: Gonzalo Odiard <godiard@sugarlabs.org>
Fix MetadataLookup signal definition

When The updater is looking up remotely for activity metadata
such as size and icon, the bundle can become unavailable because
of network or server issues.

Then, the MetadataLookup size attribute is never set and remains
as a None, therefore when the lookup is completed it emits the
complete signal sending a NoneType when a int type is expected,
crashing the updater.

This commit fixes the signal definition to allow NoneType values,
because these are actually valid cases.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Fix missing confirm button in Sugar Backup restore

Restore of a Sugar journal backup provided an Accept radio button but
the Confirm button was missing.

This was caused by not calling the show method on the button.

Reported-by: Niraj Nakrani <niraj@laptop.org.au>
Signed-off-by: James Cameron <quozl@laptop.org>
Fix extra blanks in Sugar Backup restore

The restore warning had an extra blank at the start, and an extra blank
before "my journal."

May impact translations.

Signed-off-by: James Cameron <quozl@laptop.org>
Parse olpc-activity-optional field

To mark an activity as optional in the microformat file, set
this field to 1. Anything different from 1 will be treated as
non-optional, which is the previous behaviour. Thus, this is
backwards compatible.

Extend _UpdateHTMLParser class so it can extract the
new optional field.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Support olpc-activity-optional field in BundleUpdate

Extend BundleUpdate class to support this new field, so other
components of the updater can access this information.

Use this new field in MicroformatUpdater class by passing it
to BundleUpdate initializer.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Filter optional activities in automatic updates

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Do not select optional activities in updater UI

All activities that have not been explicitly marked as optional
will be treated as non-optional. Therefore, these activities will
be selected in UI by default.

This peserves the previous behaviour, thus this is backwards
compatible.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Make ad-hoc autoconnnect optional

Add a gsettings value to determine whether or not
ad-hoc networks should autoconnect.

This value will be ignored if the user explicitly connects
to a ad-hoc network, for the rest of the session. It will be taken
into account again, if the user explicitly disconnect from the
ad-hoc network.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Merge branch 'tchx84-optional-autoconnect-try2'
Merge branch 'optional-updates-try1' of https://github.com/tchx84/sugar into tchx84-optional-updates-try1
Merge branch 'tchx84-optional-updates-try1'
Release 0.103.0