Commit from Sugar Labs: Translation System by user aputsiaq.: 391 of 391 messages translated (0 fuzzy).
Pass a widget to _create_scrollable so method can be reused
Make a separate method for _write_entry so method can be reused
Add CommentView widget to expanded entry
Add comment box to expanded entry
Add a check target

This is what sugar-build expects. It will not only run unit
tests but also code checking tools like pep8 and pyflakes.
Remove unused imports

Acked-by: Manuel Quiñones <manuq@dev.laptop.org>
Merge pull request #16 from dnarvaez/check-target

Check target
Bring back dragging of elements from the activities to the frame clipboard - SL #3819

TestCase:

- open an activity like Browse, Read, Log (not Write, is a special case)
- bring up the frame
- drag things to the left side panel of the frame (images, links, or selected text)

The elements should be added to the clipboard which is inside the
panel.  They should have the proper icon and they should popup a
palette to act on them.

Note: if the dragged object is a link from Browse, Sugar tries to copy
the html to the disk.  But the current implementation looks wrong.  I
have opened #4477 to track it: http://bugs.sugarlabs.org/ticket/4477

Note: this doesn't solve the inverse operation: drag from the
clipboard to the activity.  This will be done in another patch.

API fixes:

- gtk.SelectionData.type  ->  Gtk.SelectionData.get_data_type().name() [1]
- gtk.SelectionData.data  ->  Gtk.SelectionData.get_data() [2]
- gtk.SelectionData.target  ->  Gtk.SelectionData.get_target() [3]
- context.targets  ->  context.list_targets() [4]
- context.drop_finish(...)  ->  Gdk.drop_finish(context, ...) [5]
- context.drag_status(...)  ->  Gdk.drag_status(context, ...) [6]
- context.get_source_widget()  ->  Gdk.drag_get_source_widget(context) [7]

[1] https://developer.gnome.org/gtk3/3.5/gtk3-Selections.html#gtk-selection-data-get-data-type
[2] https://developer.gnome.org/gtk3/3.5/gtk3-Selections.html#gtk-selection-data-get-data
[3] https://developer.gnome.org/gtk3/3.5/gtk3-Selections.html#gtk-selection-data-get-target
[4] https://developer.gnome.org/gdk/stable/gdk-Drag-and-Drop.html#gdk-drag-context-list-targets
[5] https://developer.gnome.org/gdk/stable/gdk-Drag-and-Drop.html#gdk-drop-finish
[6] https://developer.gnome.org/gdk/stable/gdk-Drag-and-Drop.html#gdk-drag-status
[7] https://developer.gnome.org/gtk3/stable/gtk3-Drag-and-Drop.html#gtk-drag-get-source-widget

The type of Gtk.SelectionData now comes as a Gdk.Atom instead of
string.  We use the name of the type to keep our code working.

The data for the type 'text/uri-list' comes with a character '\x00' at
the end now.  But using SelectionData.get_uris() returns a proper list
(thanks to Flavio Danesse for the recommendation).  So we can use that
list instead of doing selection.get_data().split('\n') or
sugar3.mime.split_uri_list (which could be obsolete now).  In fact,
this change was made a while ago in clipboardpanelwindow.py, but not
in clipboardtray.py.  See commit f0d194f3 .

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Journal details: fix label of Comments box

Use a label like the other boxes, not the header of the treeview.

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Bring back dragging of elements from the clipboard to the activities - SL #4485

This is another API fix for code not yet ported to GTK+3, similar
to #3819:

- gtk.SelectionData.type  ->  Gtk.SelectionData.get_data_type()
- context.set_icon_pixbuf(...)  ->  Gtk.drag_set_icon_pixbuf(context, ...) [2]

[1] https://developer.gnome.org/gtk3/3.5/gtk3-Selections.html#gtk-selection-data-get-data-type
[2] https://developer.gnome.org/gtk3/stable/gtk3-Drag-and-Drop.html#gtk-drag-set-icon-pixbuf

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Journal: fix the API for drag and drop - SL #3999

TestCase:

- open Paint activity, draw something
- go to the Journal
- drag the Paint entry to the Documents drive
- insert a USB stick
- drag the Paint entry to the USB drive

The paint should be in Documents and in the stick

Note: this needs the upstream fix
https://bugzilla.gnome.org/show_bug.cgi?id=692844 which is not in GTK+
3.6 but is added in current olpc builds as gtk3-3.6.4.1.fc18.olpc2.
So it can be tested on an XO.

Note: this does not fix the unwanted palette popup as described in the
ticket.  That will be a separate patch.

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
More frame drag and drop fixes - SL #3819

- Errors introduced in recent commit 0aca8e59,
  jarabe.frame.clipboardobject.Format class doesn't have get_uri()
  method.

- jarabe.frame.clipboardobject.ClipboardObject: if format is
  'text/uri-list', Format.get_data() will contain only one URL.

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Merge pull request #21 from manuq/3819-3

More frame drag and drop fixes - SL #3819
Merge pull request #20 from manuq/3999

Journal: fix the API for drag and drop - SL #3999
Move from simplejson to standard library json - SL #3816

We should only use one json implementatin, see
http://bugs.sugarlabs.org/ticket/3142

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Merge pull request #23 from manuq/3816

Move from simplejson to standard library json - SL #3816
Reviewed by Walter (and tested on the latest sugar bits)
Use the GLib.MAXINT32 instead of GObject.G_MAXINT32

G_MIN/MAX constants had been moved into GObject overrides
(See pygobject c2aa6f0d0ed4c4e60f081b106dc7a65513963fce) but
it is recommended to use the constants from GLib as those
are pulled in directly from GI.

Acked-by: Manuel Quiñones <manuq@laptop.org>
Update outdated readme to point to the sugar-build building instructions

For now do not copy the instructions from the online source, if
agreed on we can copy the basic steps.
Better description