6107 Commits (master)
 

Author SHA1 Message Date
James Cameron 72a34528f2 Bundlebuilder - accept repository for AppStream metadata
AppStream metadata generator was looking for key repository_url, but
Wiki and common usage has adopted repository.
7 years ago
James Cameron ae62708a7f Documentation - small typos 7 years ago
James Cameron 351143a857 Documentation - introduction
- update the copyright date,

- add an introduction to the documentation.
7 years ago
James Cameron 73df533b06 README - add build and install 7 years ago
James Cameron 002349f290 NormalizedVersion - accept ~ as version separator
Bundle versions are often described as being decimal floats e.g. 1.2,
but they also accept more than one dot, and a suffix after a dash,
e.g. 1.2.3-peru

Debian project and Ubuntu often use ~ for modified sources to comply
with distribution policy (~dfsg), or developer builds.

The dist_source target for setup.py does not work with
a version suffix like ~dfsg, requiring a manual step to rename the
file.

Adjust the regular expression to accept the ~ form.
7 years ago
James Cameron 2f3c47ffb0 translate.sugarlabs.org synchronisation 7 years ago
James Cameron 2265623933 Fix Python GI API version warning in datastore
When the datastore process begins on Fedora 26, the import of mime.py
causes a version warning to the system journal.

```
Jun 09 10:28:01 localhost-live org.laptop.sugar.DataStore[2197]: /usr/lib/python2.7/site-packages/sugar3/mime.py:29: PyGIWarning: GdkPixbuf was imported without specifying a version first. Use gi.require_version('GdkPixbuf', '2.0') before import to ensure that the right version gets loaded.
Jun 09 10:28:01 localhost-live org.laptop.sugar.DataStore[2197]:   from gi.repository import GdkPixbuf
```

Accidental finding on #4989.
7 years ago
James Cameron 12de9f0412 Remove noisy output from sugar-activity 7 years ago
leonardcj 49a703b93b Update translations for ach, da, hr, pt_BR 7 years ago
leonardcj 98ab73dc9f Delete Dari (fa_AF) from LINGUAS file
This will need to go back in when we get the Dari project fixed on Pootle,
7 years ago
Utkarsh Tiwari ba6993d705 Save As - show a save-as alert on stop
When an activity is to stop, and the save-as setting is enabled, and the
journal entry has not been named, show an alert asking for a name, with
keyboard focus in the name entry with the name selected.

Return key commits the save with the name as shown.

Escape key cancels the alert and the stop.

While the alert is shown, the activity stop button(s) will be
insensitive.

As a side-effect, when an entry is resumed, switching to the journal
will show a clone entry with the same name.  When the activity is
stopped, the clone entry will be removed or renamed.  Forced power down
and reboot will show the clone entry.

https://wiki.sugarlabs.org/go/Features/Save-As

Signed-off-by: James Cameron <quozl@laptop.org>
7 years ago
James Cameron 3a574ae778 Save As - add busy cursor methods
Add methods for use by activity for showing and removing a busy cursor.
7 years ago
James Cameron 6bcd664289 Save As - track stop buttons in Activity instance
Track the stop buttons for the activity, so that they can be set
insensitive or not in a later patch.

Our API allows for more than one stop button, though the use of more
than one is very rare.
7 years ago
James Cameron b1d1129759 Save As - document keep failure
- add a comment to explain the causes of keep failure,

- rename the keep failure response callback to fit convention,

- fix typo and whitespace nearby.
7 years ago
James Cameron 286387b22e Save As - return copied datastore object
When a datastore object is copied, return the new object to the caller.
7 years ago
James Cameron 83697d21f9 Save As - add an optional Gtk.Entry to Alert
An Alert may have a Gtk.Entry, which is placed between the title and the
buttons.  It is for when text is to be input during the alert.
7 years ago
James Cameron 926a262306 Save As - add profile.get_save_as
Add a method for reading the save-as setting.
7 years ago
James Cameron 7d5abe2684 Predictable POT file ordering
Every time an activity maintainer uses the `python setup.py genpot`
command the resulting po/Activity.pot file has changes caused by random
ordering of filesystem inodes.

This makes the output unpredictable.

Sort the list of source files.
7 years ago
James Cameron c26c902dc7 Remove Python GI API version warnings
- reported in Clock-19 testing.
7 years ago
James Cameron 2c3d1d0707 Specify library version prior to import
- web activities caused two warnings every time they were started,

- warnings cost disk write wait time.
7 years ago
leonardcj d557234d8e Pootle push 7 years ago
György Balló 281e56c442 Allow to disable installing .desktop files 7 years ago
Sam Parkinson f17e1a66b4 Write docs for constants in sugar3.graphics.style
The constants must be documented, because otherwise they are hidden
from the generated online documentation.

[changes arising from review comments and flake8 compliance]
Signed-off-by: James Cameron <quozl@laptop.org>
7 years ago
Walter Bender 17f99a2dbd Merge branch 'quozl-2017-086-path' 7 years ago
Walter Bender 8d49e02103 Merge branch '2017-086-path' of https://github.com/quozl/sugar-toolkit-gtk3 into quozl-2017-086-path 7 years ago
Walter Bender 076096203c Merge branch 'leonardcj-master' 7 years ago
leonardcj 70766d94a0 Update LINGUAS 7 years ago
leonardcj 3a3ca58737 LINGUAS update, Pootle push 7 years ago
James Cameron 495eed8737 Prepend instead of append to path
When an activity is launched, an import should first search the activity
bundle source rather than /usr/bin

Fixes the need to change activity sources every time a system package
conflicts with an import.

May impact any activity that relies on a system package being in search
path before the bundle source.  Forty activities were tested, and none
relied on this.
7 years ago
Ignacio Rodríguez b6d449681d Example fixes
- replaced Gtk.HBox/Gtk.VBox by GtkBox as seen in [1] and [2]
GtkHbox and GtkVBox are deprecated
- use delete-event instead of destroy event in GtkWindow
- replaced icon_size for pixel_size where used
it's also deprecated as seen in commit [3]
- use sugar_theme in all examples; set it manually not by just
importing common module
- fixed GtkBox.pack_start arguments
- flake/pep8 fixes

[1] https://developer.gnome.org/gtk3/stable/GtkHBox.html
[2] https://developer.gnome.org/gtk3/stable/GtkVBox.html
[3] 5802d67ee1
7 years ago
Hrishi f4fc8c0d1f
Write documentation for sugar3.graphics.ColorToolButton
- add one example,

- part of feature Sugar3 Docs,
  https://wiki.sugarlabs.org/go/Features/Sugar3_Docs

Added documentation and example for Colorbutton
7 years ago
Ignacio Rodríguez a735c7a6ce fixed the flake8 errors for examples
doesn't affect that much the code, it just remove
unused modules and make it look better.
7 years ago
Hrishi 4f7ab56c3e Write documentation for sugar3.graphics.ProgressIcon
- add one example,

- part of feature Sugar3 Docs,
  https://wiki.sugarlabs.org/go/Features/Sugar3_Docs
7 years ago
James Cameron a6e62a52b6
Fix screen resize race
When an external monitor is connected or disconnected, about 25% of the
time an activity does not resize correctly; a size-changed signal occurs
but the workarea geometry has not changed.

Underlying problem is an update race in get_monitor_workarea, so the fix
is to call get_monitor_geometry for obtaining the width and height.

Can be reproduced easily without an external monitor by switching
display panel resolution repeatedly;

    xrandr --output eDP1 --mode 1024x768
    xrandr --output eDP1 --mode 1366x768

Part of a fix for https://bugs.sugarlabs.org/ticket/4968
7 years ago
James Cameron 99130b0263
Write documentation for sugar3.power 7 years ago
Eduard Sanou 05a18a2dc6
[PATCH] Sort translation files
Sort translation files when generating the .desktop file to output
reproducible results.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848633

Reviewed-by: James Cameron <quozl@laptop.org>
7 years ago
Ignacio Rodríguez 290202d385 Merge pull request #356 from quozl/2017-002-typo
Fix documentation typo, SPCAING
7 years ago
James Cameron a71a011496 Fix documentation typo, SPCAING 7 years ago
Ignacio Rodríguez 67120db593
Merge branch 'quozl-2016-365-hrishi' 7 years ago
Hrishi c7d1c7acfb Write documentation for sugar3.graphics.ToggleToolButton
- add one example,

- part of feature Sugar3 Docs,
  https://wiki.sugarlabs.org/go/Features/Sugar3_Docs

Signed-off-by: James Cameron <quozl@laptop.org>
7 years ago
Ignacio Rodríguez 53c5058da0 Merge pull request #349 from quozl/2016-347-toolbutton
Write documentation for sugar3.graphics.ToolButton
7 years ago
James Cameron c92d0009df Write documentation for sugar3.graphics.ToolButton
- add two examples,

- document critical properties as keyword arguments in the class init,

- ensure documentation is consistent between RadioToolButton and
  ToolButton, (as some of the text is similar),

- part of feature Sugar3 Docs,
  https://wiki.sugarlabs.org/go/Features/Sugar3_Docs

- follow How To Guide
  https://wiki.sugarlabs.org/go/Features/Sugar3_Docs/How_To_Write

Derived from work by

- Hrishi <hrishipatel99@gmail.com> (31176ea) and

- radicalonion <ndefilippis98@gmail.com> (db89aca).
7 years ago
Ignacio Rodríguez 5efba3eb7d Disabled aym language due to missing po files. 7 years ago
Ignacio Rodríguez 338f150114 Merge pull request #341 from leonardcj/master
Albanian strings and delete aym.po
7 years ago
Ignacio Rodríguez 750a4406b1 Merge pull request #342 from quozl/2016-314-require-versions
Further gi.require_version calls
7 years ago
James Cameron ee93ad3bef Further gi.require_version calls
Activity logs have continued to report GObject Introspection version
warnings.
7 years ago
leonardcj 3b6456c850 Delete aym.po 8 years ago
leonardcj 54b5bd74ea Albanian strings 8 years ago
Gonzalo Odiard 3b3c3310a9 Merge pull request #340 from quozl/2016-282-typo
sugar-activity: typo
8 years ago
James Cameron 4b6d8751b3 sugar-activity: typo 8 years ago