sugar-toolkit-gtk3/src/sugar3/graphics
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
..
__init__.py
alert.py Merge branch 'ellipsize' of https://github.com/AbrahmAB/sugar-toolkit-gtk3 2016-03-26 13:18:44 +11:00
animator.py Write docs for graphics.animator 2015-08-11 08:05:44 -03:00
colorbutton.py Fix remaining icon_size references 2015-12-16 10:22:21 +11:00
combobox.py Write documentation for sugar3.graphics.combobox 2015-11-15 07:03:59 +11:00
icon.py Set css name for widgets 2016-01-01 12:28:42 +11:00
iconentry.py
Makefile.am Detect scrolling in treviews and optimize drawing 2015-05-14 12:04:07 -03:00
menuitem.py demote warning to debug for sugar_accel_group 2015-12-08 15:11:17 +11:00
notebook.py Write docs for sugar3.graphics.notebook 2016-01-02 23:35:44 -05:00
objectchooser.py Add usage example to sugar3.graphics.objectchooser 2015-12-23 16:59:26 +05:30
palette.py Remove _HeaderSeparator 2015-06-30 16:27:12 -04:00
palettegroup.py Fixes for pep8 1.5 2014-03-29 19:25:34 +00:00
palettemenu.py Only activate menu items if the mouse releases in them - fixes #4863 2015-07-24 21:32:05 +10:00
palettewindow.py Set css class on toolitems when a palette or toolbar popsdown 2016-02-19 07:18:45 +11:00
panel.py
progressicon.py Fixup for previous commit, 693eaab9 - SL #4384 2013-01-17 14:28:52 -03:00
radiopalette.py
radiotoolbutton.py Write docs for sugar3.graphics.radiotoolbutton 2016-01-02 23:08:17 -05:00
scrollingdetector.py Write docs for sugar3.graphics.scrollingdetector 2016-01-02 23:42:55 -05:00
style.py Allow to run activities without Sugar shell. 2016-04-21 03:10:30 -05:00
toggletoolbutton.py demote warning to debug for sugar_accel_group 2015-12-08 15:11:17 +11:00
toolbarbox.py Set css class on toolitems when a palette or toolbar popsdown 2016-02-19 07:18:45 +11:00
toolbox.py Write docs for sugar3.graphics.toolbox 2015-12-31 09:19:05 -05:00
toolbutton.py demote warning to debug for sugar_accel_group 2015-12-08 15:11:17 +11:00
toolcombobox.py
tray.py Set css name for widgets 2016-01-01 12:28:42 +11:00
window.py Add documentation for sugar3.graphics.window module 2015-12-12 17:00:08 +05:30
xocolor.py Allow to run activities without Sugar shell. 2016-04-21 03:10:30 -05:00