Commit Graph

5993 Commits

Author SHA1 Message Date
James Cameron
286387b22e Save As - return copied datastore object
When a datastore object is copied, return the new object to the caller.
2017-06-01 12:57:34 +10:00
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.
2017-06-01 12:50:29 +10:00
James Cameron
926a262306 Save As - add profile.get_save_as
Add a method for reading the save-as setting.
2017-06-01 12:49:10 +10:00
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.
2017-06-01 08:09:53 +10:00
James Cameron
c26c902dc7 Remove Python GI API version warnings
- reported in Clock-19 testing.
2017-05-30 14:10:30 +10:00
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.
2017-05-19 14:22:28 +10:00
leonardcj
d557234d8e Pootle push 2017-05-08 11:40:31 +10:00
György Balló
281e56c442 Allow to disable installing .desktop files 2017-04-22 08:29:58 +10:00
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>
2017-04-22 08:26:41 +10:00
Walter Bender
17f99a2dbd Merge branch 'quozl-2017-086-path' 2017-04-17 11:04:50 -04:00
Walter Bender
8d49e02103 Merge branch '2017-086-path' of https://github.com/quozl/sugar-toolkit-gtk3 into quozl-2017-086-path 2017-04-17 11:04:43 -04:00
Walter Bender
076096203c Merge branch 'leonardcj-master' 2017-04-17 11:03:52 -04:00
leonardcj
70766d94a0 Update LINGUAS 2017-04-17 03:11:02 -04:00
leonardcj
3a3ca58737 LINGUAS update, Pootle push 2017-04-15 00:33:25 -04:00
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.
2017-03-27 19:07:37 +11:00
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
2017-01-14 13:02:50 -03:00
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
2017-01-09 04:02:19 -03:00
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.
2017-01-05 03:44:33 -03:00
Hrishi
4f7ab56c3e Write documentation for sugar3.graphics.ProgressIcon
- add one example,

- part of feature Sugar3 Docs,
  https://wiki.sugarlabs.org/go/Features/Sugar3_Docs
2017-01-04 20:52:16 -03:00
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
2017-01-02 04:38:37 -03:00
James Cameron
99130b0263
Write documentation for sugar3.power 2017-01-02 02:48:48 -03:00
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>
2017-01-02 02:25:29 -03:00
Ignacio Rodríguez
290202d385 Merge pull request #356 from quozl/2017-002-typo
Fix documentation typo, SPCAING
2017-01-02 02:05:49 -03:00
James Cameron
a71a011496 Fix documentation typo, SPCAING 2017-01-02 15:22:51 +11:00
Ignacio Rodríguez
67120db593
Merge branch 'quozl-2016-365-hrishi' 2017-01-01 12:00:32 -03:00
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>
2016-12-31 07:57:52 +11:00
Ignacio Rodríguez
53c5058da0 Merge pull request #349 from quozl/2016-347-toolbutton
Write documentation for sugar3.graphics.ToolButton
2016-12-12 01:58:14 -03:00
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).
2016-12-12 15:51:49 +11:00
Ignacio Rodríguez
5efba3eb7d Disabled aym language due to missing po files. 2016-12-03 03:19:32 -03:00
Ignacio Rodríguez
338f150114 Merge pull request #341 from leonardcj/master
Albanian strings and delete aym.po
2016-12-03 03:18:27 -03:00
Ignacio Rodríguez
750a4406b1 Merge pull request #342 from quozl/2016-314-require-versions
Further gi.require_version calls
2016-11-14 23:51:02 -03:00
James Cameron
ee93ad3bef Further gi.require_version calls
Activity logs have continued to report GObject Introspection version
warnings.
2016-11-09 13:32:49 +11:00
leonardcj
3b6456c850 Delete aym.po 2016-10-28 00:09:34 -04:00
leonardcj
54b5bd74ea Albanian strings 2016-10-28 00:08:38 -04:00
Gonzalo Odiard
3b3c3310a9 Merge pull request #340 from quozl/2016-282-typo
sugar-activity: typo
2016-10-08 18:03:39 +02:00
James Cameron
4b6d8751b3 sugar-activity: typo 2016-10-08 11:06:57 +11:00
Sam Parkinson
aca21a2b43
Release Sugar 0.110.0 stable 2016-10-07 21:49:00 +11:00
Sam Parkinson
d0a25acc64
Merge branch 'master' of https://github.com/leonardcj/sugar-toolkit-gtk3 2016-10-07 21:34:37 +11:00
leonardcj
84382e1008 Pootle push N-Z 2016-10-06 09:08:52 -04:00
leonardcj
ae3731b22d Pootle push A-M 2016-10-06 09:06:45 -04:00
leonardcj
21ec8a75ff New Yoruba L10n 2016-09-25 14:15:19 -04:00
Sam Parkinson
b442184b58
Release Sugar 0.109.2 2016-09-04 21:50:53 +10:00
Sam Parkinson
2330ef8ebc
Proper deprecation of Palette.popdown state argument
The popdown state argument was removed in 90cec5b, as the palette
popdowns were unified.  However, this is a public api.  Removing
the argument caused exceptions to be raised, breaking applications.
Most uses of the state argument were for the SECONDARY state, which
is now the default behaviour.

This commit re-adds the argument with a deprecation notice.
2016-09-04 21:48:51 +10:00
Sam Parkinson
1f7937749c
Release 0.109.0.3 unstable 2016-08-03 15:59:34 +10:00
Sam Parkinson
f06d510eba
Merge branch 'animator-do-stop' of https://github.com/samdroid-apps/sugar-toolkit-gtk3 2016-08-02 08:27:30 +10:00
Sebastian Silva
4f3f32fd5a Assign icon to window regardless of environment.
Makes Sugar Activities more standard.
2016-07-27 01:52:05 -05:00
Sam Parkinson
92ea35d724
Fix typos in sugar3.graphics.animator docs 2016-07-26 21:14:10 +10:00
Sam Parkinson
d37da7ee88
Add do_stop method for animations
This adds a explicit method for cleaning up the animation.  Previously,
animations expected the next_frame to be called where frame=end.

That guarantee was never provided by the api.  This resulted in
animations sometimes being in odd states.  For example, Browse activity
had an animation that overrode the Gtk "draw" signal.  If the signal
was not unbound, the animated object was mistakenly rendered after
the completion of the animation, obstructing the user's view.

This api is explicit and allows cleaner code in the animation
implementation.  The clean up code goes in do_stop rather than in a
conditional of next_frame.
2016-07-26 21:06:44 +10:00
Sam Parkinson
61bc42f2c2
Merge branch 'bundlebuilder' of https://github.com/samdroid-apps/sugar-toolkit-gtk3 2016-07-26 08:10:40 +10:00
Sam Parkinson
4d770fef01
Merge branch 'fix-4965' of https://github.com/samdroid-apps/sugar-toolkit-gtk3 2016-07-26 08:09:25 +10:00