Commit Graph

5883 Commits

Author SHA1 Message Date
Sebastian Silva
2f2b2d20d8 Allow to run activities without Sugar shell.
- Handle lack of GSettings gracefully.
- Still requires sugar-datastore.
- Supports avoiding X11 docks/panels.
- Provides icons for Activity windows.

Try it outside Sugar. Go to an Activity directory and run 'sugar-activity'.
Tested it with Terminal, Finance, Write, Browse, Memorize under XFCE4.
Tested in Gnome under OLPC-OS.
Also works from Sugar Terminal Activity.
Does not affect regular Sugar operation.

This is patch v.2 -
    Addresses most concerns:
    - Removed commented code, sorry.
    - Changed code to use profile.get_nickname and get_color where possible.

    Couldn't the launcher just pass this info?
    Maybe the launcher could set the activity root as well?
        - It is intended to be usable from the command line also.
    Should put sugar version in the environment
        - It is intended to work even without Sugar Shell installed.
    Why don't we always set the icon?
        - On XO it might use some memory. I was concerned to degrade
        performance.
    Also, imports should be at the top of the file?
        - Also a concern about performance on XO.
        This way it is only loaded in this use case.
        Maybe it is insignificant -moved as requested.
    It would be nice if the changes to the POT for sugar-toolkit-gtk3
    could be incorporated in this pull request, please.
        - There were no changes to POT files as part of this patch. Maybe
        it is worth translating low level command line tools, not sure.
    Suggest packaged activities might also provide .desktop files.
        - Intriguing but not sure within scope of this patch. You mean generate
        a .desktop file automatically as an option? Sounds nice!
    Suggest sugar-activity might also accept path to unpacked bundle.
        - Implemented!
2016-04-21 03:10:30 -05:00
Sam Parkinson
ab0f5a18aa Merge branch 'doc-combobox' of https://github.com/samdroid-apps/sugar-toolkit-gtk3 2016-04-06 07:15:21 +10:00
Sam Parkinson
79e0dd44c6 Merge branch 'master' of github.com:sugarlabs/sugar-toolkit-gtk3 2016-04-05 21:32:00 +10:00
Sam Parkinson
a62ddb1d87 Merge branch 'xocolor-docs' of https://github.com/ndefilippis/sugar-toolkit-gtk3 2016-04-05 21:30:32 +10:00
Gonzalo Odiard
7432bbf2a7 Merge pull request #312 from leonardcj/master
Update speech.py
2016-04-05 13:27:41 +02:00
leonardcj
1b9da5b1d6 Update speech.py
Improve the i18n of speech strings with wiki links
2016-03-26 17:11:07 -04:00
Sam Parkinson
ebe0e633fa Merge branch 'master' of github.com:sugarlabs/sugar-toolkit-gtk3 2016-03-26 13:19:47 +11:00
Sam Parkinson
57fe093886 Merge branch 'ellipsize' of https://github.com/AbrahmAB/sugar-toolkit-gtk3 2016-03-26 13:18:44 +11:00
translation server
6bd3c6a1f7 New files added from Sugar Labs based on templates 2016-03-25 02:18:35 +00:00
cjl
6b17658e99 Commit from Sugar Labs by user cjl.: 109 of 109 strings translated (0 need review). 2016-03-07 17:58:51 +00:00
translation server
b3008a68c4 New files added from Sugar Labs based on templates 2016-03-05 03:51:20 +00:00
cjl
e542fe6c90 Commit from Sugar Labs by user cjl.: 0 of 109 strings translated (0 need review). 2016-03-04 20:31:59 +00:00
cjl
4e351b2eb7 Commit from Sugar Labs by user cjl.: 0 of 0 strings translated (0 need review). 2016-03-04 20:11:11 +00:00
translation server
270d7bbd86 Merge branch 'master' of github.com:sugarlabs/sugar-toolkit-gtk3 2016-03-04 20:10:35 +00:00
translation server
6f075b317a New files added from Sugar Labs based on templates 2016-03-04 02:31:08 +00:00
translation server
63e36a74de New files added from Sugar Labs based on templates 2016-03-04 02:30:21 +00:00
Sam Parkinson
d3fbecf110 Merge branch 'gtk-3-20' of https://github.com/samdroid-apps/sugar-toolkit-gtk3 2016-03-03 20:00:18 +11:00
AbrahmAB
cd449e7149 Ellipsis in title and msg of alert 2016-02-27 06:06:26 +05:30
translation server
f98bb5d57d New files added from Sugar Labs based on templates 2016-02-24 06:36:06 +00:00
translation server
fadcc064ba New files added from Sugar Labs based on templates 2016-02-23 21:29:13 +00:00
translation server
c105e5fd15 New files added from Sugar Labs based on templates 2016-02-23 21:28:10 +00:00
translation server
f182b26a78 New files added from Sugar Labs based on templates 2016-02-23 21:24:42 +00:00
translation server
96e13bc90d New files added from Sugar Labs based on templates 2016-02-23 21:24:28 +00:00
translation server
271fe3e0df New files added from Sugar Labs based on templates 2016-02-23 21:23:40 +00:00
translation server
32fc62b660 New files added from Sugar Labs based on templates 2016-02-23 06:54:46 +00:00
translation server
1d9e1dd00c New files added from Sugar Labs based on templates 2016-02-23 06:48:43 +00:00
translation server
f89da1bfef New files added from Sugar Labs based on templates 2016-02-23 06:48:24 +00:00
translation server
352f0f2bcb New files added from Sugar Labs based on templates 2016-02-22 03:40:30 +00:00
Sam Parkinson
824e6dcb69 Set css class on toolitems when a palette or toolbar popsdown 2016-02-19 07:18:45 +11:00
James Cameron
8d4298ee9e Remove Rainbow, avoid race in creating directories
Sugar depended on Rainbow for clearing the activity instance/ and tmp/
directories.  But Rainbow is no longer used downstream.

- remove support for Rainbow,

- avoid race when creating directories; don't check they exist before we
  create.
2016-02-15 11:41:31 +11:00
Martin Abente Lahaye
a1371b5f94 Release 0.108.0 2016-02-13 10:09:28 -03:00
Martin Abente Lahaye
d612da8db7 Merge pull request #308 from rbuj/catalan-20160201
Push Catalan translation
2016-02-06 09:51:36 -03:00
Robert Antoni Buj Gelonch
2ac8704021 Push Catalan translation 2016-02-01 14:07:43 +01:00
Martin Abente Lahaye
e048f6c3e8 Release 0.107.2 2016-01-23 09:22:57 -03:00
Martin Abente Lahaye
0494f704fb collaboration: handle tubes channel failure gracefully
CHANNEL_TYPE_TUBES was deprecated since telepathy-gabble 0.17.25 and
is no longer present on modern distributions. This breaks collaboration
for _all_ activities, regardless if they use tubes or not.

Therefore, check if the channel creation failed due to support and allow
channel creation process to continue.

This patch fixes collaboration for the activities that do not use tubes
channel in modern distributions, but also allow to use tubes when running
on older distributions.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
2016-01-04 18:08:32 -03:00
radicalonion
79d11c3a28 Write docs for sugar3.graphics.xocolor 2016-01-03 20:16:43 -05:00
Sam Parkinson
c374b63990 Merge branch 'scrolldetector-docs' of https://github.com/ndefilippis/sugar-toolkit-gtk3 2016-01-03 16:47:12 +11:00
Sam Parkinson
37d3b63a90 Merge branch 'notebook-docs' of https://github.com/ndefilippis/sugar-toolkit-gtk3 2016-01-03 16:45:10 +11:00
radicalonion
8b947ed02f Write docs for sugar3.graphics.scrollingdetector 2016-01-02 23:42:55 -05:00
radicalonion
486988035a Write docs for sugar3.graphics.notebook 2016-01-02 23:35:44 -05:00
Sam Parkinson
8d66786a31 Merge branch 'radiotoolbutton-docs' of https://github.com/ndefilippis/sugar-toolkit-gtk3 2016-01-03 15:12:26 +11:00
radicalonion
db89aca86a Write docs for sugar3.graphics.radiotoolbutton 2016-01-02 23:08:17 -05:00
Sam Parkinson
8d0cc98e43 Set css name for widgets
In Gtk+ 3.20, you need to use the css name to select elements,
rather than the gtype name.  Therefore, these must be added.

The css name must be set before the class instances are created, as
it effects the class rather than the instance.  This is why it must
be places after the class definition.
2016-01-01 12:28:42 +11:00
radicalonion
ec2dca92f1 Write docs for sugar3.graphics.toolbox 2015-12-31 09:19:05 -05:00
Martin Abente Lahaye
0af1ce7b97 Release 0.107.1 2015-12-28 13:01:17 -03:00
mandarj7
51057baef5 Add usage example to sugar3.graphics.objectchooser 2015-12-23 16:59:26 +05:30
mandarj7
c95d74eab4 Improve docstrings in sugar3.graphics.objectchooser 2015-12-23 16:55:25 +05:30
mandarj7
264ee2b5a3 Add and improve docs for sugar3.graphics.objectchooser 2015-12-23 15:31:58 +05:30
James Cameron
7ba120fe25 Fix persistent tree view palettes
A rework of the TreeViewInvoker used by the journal and activity list.

Fixes a persistent journal entry palette that reappears in journal or
home view.  https://bugs.sugarlabs.org/ticket/4918

Also fixes an over-sensitive journal icon; with the journal mostly
empty, rapidly move the mouse from the bottom of the screen into the
lowest icon and then out again.  Before this patch, the palette was
shown.  After this patch, the mouse must rest in the icon.

Changes made:

- override _ensure_palette_exists in parent class Invoker,

- remove reference to MouseSpeedDetector, it is no longer required,

- remove enter and leave events; they are for the TreeView as a whole,
  and are not required,

- properly detect that None is returned by get_path_at_pos, when the
  coordinates are outside the TreeView cells.

Not fixed:

- moving the mouse out of the journal icon invoker does not popdown the
  palette, but it does when moving the mouse out of the activity icon in
  the activity list; so this is a problem beyond the invoker,

Tested on Fedora 18 and Ubuntu 15.10.

Test cases:

- check a click will activate item,

- check a right-click will show palette,

- check a mouse hover will show palette,

- check a brief mouse passing will not show palette,

- check if mouse leaving palette will popdown.
2015-12-22 09:49:16 +11:00
Sam Parkinson
b1386665b1 Merge branch 'master' of https://github.com/mjuvekar7/sugar-toolkit-gtk3 2015-12-20 17:21:01 +11:00