Commit Graph

336 Commits

Author SHA1 Message Date
Marco Pesenti Gritti
0926382f69 Typo 2007-07-02 16:50:05 +02:00
Marco Pesenti Gritti
983d494d38 Include NEWS in the xo 2007-06-29 22:52:25 +02:00
Marco Pesenti Gritti
1d4112a882 Set glib program name and application name.
Better way of importing ltihooks.
Several cleanups.
2007-06-29 22:11:28 +02:00
Tomeu Vizoso
a609da166b Don't create so many objects until we have differential versioning support in the datastore. 2007-06-29 20:24:22 +02:00
Marco Pesenti Gritti
d7a8c5430e Make notification work from outside the shell process 2007-06-29 19:05:10 +02:00
Marco Pesenti Gritti
c1ecedeb79 Add a command to automatically do releases. 2007-06-29 01:53:57 +02:00
Marco Pesenti Gritti
0d6760b194 Do not fail is lang is not set 2007-06-28 22:40:37 +02:00
Marco Pesenti Gritti
03ef9c034e Translate the default activity toolbar 2007-06-28 15:55:33 +02:00
Marco Pesenti Gritti
51c66de817 Do not allow to close the journal 2007-06-28 12:03:12 +02:00
John (J5) Palmieri
9cdd9058da add process title setting to activities
* they now will show up as Activity Name <id> in the process list
     truncated to 15 characters though
2007-06-27 17:12:32 -04:00
Marco Pesenti Gritti
2b463a2013 Merge new translations when updating the .pot. 2007-06-26 10:43:49 +02:00
Marco Pesenti Gritti
537556b605 Typo 2007-06-25 11:29:46 +02:00
Marco Pesenti Gritti
2fcca4d656 Add a bunch of copyrights 2007-06-24 14:52:46 +02:00
Marco Pesenti Gritti
99e8077f59 Implement fix-copyright and fix some of them 2007-06-24 14:43:48 +02:00
Marco Pesenti Gritti
90c0ace5c0 Add a license checker.
Remove obsolete testint infrastructure.
2007-06-24 12:05:52 +02:00
Tomeu Vizoso
c1d4f3ce7a Add keep-in-journal button to the activity toolbar. 2007-06-22 14:11:39 +02:00
Marco Pesenti Gritti
c94995148e Refactor translation system a bit 2007-06-21 17:23:32 +02:00
Marco Pesenti Gritti
6f4af67856 Default to the source directory name as bundle name,
allow to override in setup.py.
2007-06-21 14:54:09 +02:00
Marco Pesenti Gritti
61314c9705 Don't make all .py executable please... 2007-06-20 12:31:54 +02:00
Bert Freudenberg
bd86aee0d4 use activity_id in service name
- construct service name from activity id instead of X window id
- cleanup unused declarations in activityfactory.py
- remove obsolete _dbus_name_owner_changed_cb()
- see http://dev.laptop.org/ticket/1767
- cleared by marcopg
2007-06-20 11:52:29 +02:00
Marco Pesenti Gritti
f7b6a0c0af Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-06-19 15:54:05 +02:00
Marco Pesenti Gritti
737a8b3932 Cleanup activity closing 2007-06-19 15:51:56 +02:00
Tomeu Vizoso
99369114cb Set title on change. Fixes #1715. 2007-06-18 20:38:20 +02:00
Marco Pesenti Gritti
3552b92428 Create the locale dir if it does not exist. 2007-06-18 10:05:11 +02:00
Tomeu Vizoso
d4323957a1 Change preview image size. 2007-06-17 14:25:13 +02:00
Tomeu Vizoso
f0e18ba785 Support for previews in the journal. 2007-06-15 18:03:17 +02:00
Tomeu Vizoso
6c0885b490 Check type of bundle path by os.path.isdir(). 2007-06-15 16:48:53 +02:00
Tomeu Vizoso
cb9dd212e9 Add to Bundle facilities for dealing with not-yet-installed bundles. 2007-06-15 11:36:08 +02:00
Tomeu Vizoso
b320ea36cf Some activity registry fixes. Thanks cjb. 2007-06-13 11:50:05 +02:00
Tomeu Vizoso
22689ed1da Several fixes for the object type registry and the activity registry. 2007-06-12 21:57:49 +02:00
Tomeu Vizoso
a9600516fb Take screenshot and save it to the journal (<alt>1). 2007-06-04 18:35:05 +01:00
Marco Pesenti Gritti
b2980d7bd6 Restore get_id/get_service_name, didn't realize they was used by subclasses. 2007-06-03 22:12:47 +02:00
Marco Pesenti Gritti
2b7ffe41d9 Make bundle_id and activity_id window properties to
avoid races.
2007-06-01 21:21:30 +02:00
Marco Pesenti Gritti
fc53bf8667 Support icons inside the activity 2007-05-31 11:30:16 +02:00
Tomeu Vizoso
c35db7acf8 Some refactoring of the DataStore API. 2007-05-29 15:53:58 +02:00
Marco Pesenti Gritti
11437e3484 Add mime matching to the registry. 2007-05-27 20:43:31 +02:00
Marco Pesenti Gritti
42fef182f4 Refactor the bundle registry. Move it inside
the shell and expose the parts that should be
public to the shell dbus service.
2007-05-27 20:24:10 +02:00
Marco Pesenti Gritti
5f912f0330 Avoid to reparse the activity registry on each activity start, hrm! 2007-05-24 19:50:17 +02:00
Marco Pesenti Gritti
98c5c0734e Add API to get the mime types 2007-05-24 17:53:57 +02:00
Marco Pesenti Gritti
1cb7700136 Rename interface name to org.laptop 2007-05-22 14:49:28 +02:00
Tomeu Vizoso
11c89d86c9 Put dates to work correctly on the journal, create a new journal entry when resuming a past entry. 2007-05-20 12:38:08 +02:00
Tomeu Vizoso
5d4b9b1dfa Set the activity icon on new journal entries. 2007-05-19 20:06:36 +02:00
Bert Freudenberg
6dd2f7109c Find executable in bundle (approved by marcopg, fix for #1362) 2007-05-17 13:18:56 +02:00
Tomeu Vizoso
3a1d514e9f Save to the journal when switching to another activity. 2007-05-16 21:30:49 +02:00
Tomeu Vizoso
1d31c51ecc Don't save to the journal on focus-out. 2007-05-16 17:55:56 +02:00
Dan Williams
e659d15384 Make datastore find & update operations async 2007-05-16 00:41:45 -04:00
Marco Pesenti Gritti
9fa0790c2b Do not assume we are packing an ActivityToolbox inside the activity 2007-05-15 11:23:46 +02:00
Marco Pesenti Gritti
141072c9e9 Set a default title for the activity 2007-05-14 19:56:06 +02:00
Marco Pesenti Gritti
820e739a0f Improve the layout of the activity toolbar 2007-05-14 19:27:35 +02:00
Tomeu
f3289d2e59 Implement setting the journal entry title from the toolbar. 2007-05-13 18:21:35 +02:00
Tomeu Vizoso
d6850279a8 Temporary fix while we stabilize the new datastore. 2007-05-10 14:34:10 +02:00
Tomeu Vizoso
30114f9545 Temporary try..excepts while we stabilize the new datastore. 2007-05-10 14:16:48 +02:00
Tomeu Vizoso
929dabd165 Use the new DataStore and remove the old one. 2007-05-10 11:01:32 +02:00
Simon McVittie
00e8348c73 Set _shared_activity correctly when we share an activity successfully 2007-05-09 16:32:16 +01:00
Simon McVittie
5fc1cdefeb When joining an activity that's already been joined, call a callback which exists 2007-05-09 15:05:17 +01:00
Dan Williams
28637c098e Fix activity creation ID collisions 2007-05-08 11:19:30 -04:00
Dan Williams
44e8393bde Fix type 2007-05-03 15:06:00 -04:00
Tomeu Vizoso
694e30aa76 Expose the buttons contained by the activity toolbar. 2007-05-03 16:30:32 +02:00
Dan Williams
7774073276 Make joining asynchronous on the activity side 2007-05-02 23:25:15 -04:00
Tomeu Vizoso
bb8417f57b Added sugar.activity.activity.EditToolbar. 2007-04-30 18:59:55 +02:00
Dan Williams
01be59b84f Re-enable activity sharing 2007-04-27 16:07:38 -04:00
Marco Pesenti Gritti
9ccda70199 Refactor the window API a bit to make it more flexible. 2007-04-27 10:51:19 +02:00
Marco Pesenti Gritti
9dcfcf89e9 Close the window when clicking the toolbar button 2007-04-27 01:09:00 +02:00
Marco Pesenti Gritti
c256958a9a Ensure the window is realized before getting his xid 2007-04-27 00:55:23 +02:00
Marco Pesenti Gritti
e49146752f More work on the new graphics API. 2007-04-26 11:31:41 +02:00
Marco Pesenti Gritti
d49b0ed6fb Use sys.path.append, not insert 2007-04-15 12:26:50 +02:00
Mike C. Fletcher
2ca12e9da2 Overall roles and operation of the activity classes.
Note on return value for factory service.
2007-04-14 01:17:59 -04:00
Dan Williams
99737f8273 Clear share signal ID after disconnecting it 2007-04-13 16:58:32 -04:00
Dan Williams
3abe79353a Asynchronize activity sharing on the client side 2007-04-13 16:27:58 -04:00
Dan Williams
894fcea9fc Remove get_default_type() and bundle default types; obsolete 2007-04-11 15:08:40 -04:00
Marco Pesenti Gritti
73f2577397 First go at the new type registry. 2007-04-11 14:06:27 +02:00
Mike C. Fletcher
3f10890319 Docstrings for modules all over sugar and shell.
These are just the doc strings I created as I was spelunking
through to see how Sugar manages launching applications.  The
resulting auto-documentation is neither polished or finished,
but it should help people reading the code somewhat.

There are a few minor code cleanups:

  * activityhandle (replacing C idiom for initialisation with
    a Python one)
  * bundle registry (using a parameterised directory name so
    that it shows up in the documentation)
  * validate_activity_id function, use isinstance( item, (str,unicode))
    for the query, rather than two separate checks with isinstance
2007-04-09 22:47:37 -04:00
Dan Williams
4cf8f321f0 Fix activity ID generation logic 2007-04-09 15:08:04 -04:00
Dan Williams
bc083dae5a Cut over to new PresenceService 2007-04-09 14:40:56 -04:00
Marco Pesenti Gritti
5343752c35 Make browser a modules inside sugar library 2007-04-07 13:17:36 +02:00
Marco Pesenti Gritti
4828870afd Use gtk to detect dpi. 2007-04-07 03:42:51 +02:00
Marco Pesenti Gritti
2a36387ad7 Remove some unused imports 2007-03-28 11:42:50 +02:00
Marco Pesenti Gritti
b5e4aa43a9 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-26 12:42:17 +02:00
Marco Pesenti Gritti
7267047ce6 Strip the MANIFEST lines 2007-03-26 12:38:34 +02:00
Tomeu Vizoso
ad23ceac8d Fix last fix. 2007-03-25 19:34:11 +02:00
Tomeu Vizoso
318439ab27 Fix for #1157. Thanks to leejc. 2007-03-25 11:42:26 +02:00
Tomeu Vizoso
01edb130c1 Compile and include .mo in ./setup.py dist. 2007-03-23 20:13:41 +01:00
Marco Pesenti Gritti
aa8debb4cb Fix up translations support 2007-03-23 18:18:42 +01:00
Marco Pesenti Gritti
e25c95ebaf My brain is dead, it really is. Actually setup gettext on the server... 2007-03-23 17:57:36 +01:00
Marco Pesenti Gritti
dd6b0c0b7e Remove debug code 2007-03-23 17:46:55 +01:00
Marco Pesenti Gritti
6352ea9e20 Unused 2007-03-23 17:45:48 +01:00
Marco Pesenti Gritti
ba242f34b7 Fix locale path handling 2007-03-23 17:43:40 +01:00
Marco Pesenti Gritti
ca9199e994 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-23 17:27:47 +01:00
Marco Pesenti Gritti
d17e733677 Add support to read linfo.
Refactor locale to actually use gettext.
2007-03-23 17:27:31 +01:00
Tomeu Vizoso
5881121ad4 Added operations genpot and genmo to bundlebuilder.py for localization. 2007-03-23 15:26:37 +01:00
Tomeu Vizoso
c820ca1aa6 First step at activities localization. 2007-03-23 10:35:48 +01:00
Marco Pesenti Gritti
08b378e5f8 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-19 15:19:56 +01:00
Tomeu Vizoso
07b8cad5b9 Set the DPI on activity startup. In the future we should have a xsetting for this. 2007-03-19 14:24:35 +01:00
Marco Pesenti Gritti
154a0e91ff Create ~/Activities only when necessary 2007-03-18 13:48:34 +01:00
Tomeu Vizoso
4fbfd1625c Make create_activity_id() a public function. 2007-03-15 12:47:10 +01:00
Marco Pesenti Gritti
a5d303f9ff Smarter bundle name matching 2007-03-09 16:55:18 +01:00
Marco Pesenti Gritti
d3493aea9e Smarter sugar-activity which can make itself the factory and open
one instance.
2007-03-09 16:35:53 +01:00
Marco Pesenti Gritti
57c928916c Refactor sugar.env and paths 2007-03-09 14:57:54 +01:00
Marco Pesenti Gritti
dacf05fcd9 Intialize the service to None, we are freeing it later. 2007-03-07 10:59:48 +01:00
Owen Williams
2c7a22b157 Fix bug for activities with spaces in the name 2007-03-06 08:01:46 -05:00
John (J5) Palmieri
b21f1a3b80 workaround to fix blocking when launching activities
* set follow_name_owner_changes to true when creating a proxy for an activity
  which causes proxies to be late bound and not make a blocking call to
  start a service
2007-03-05 16:14:11 -05:00
Tomeu Vizoso
d027761209 Added create_with_object_id() func. 2007-03-02 22:22:19 +01:00
Marco Pesenti Gritti
8763d9d5e2 Typo 2007-03-02 22:22:20 +01:00
Marco Pesenti Gritti
1cadd9c1ce Add object_id 2007-03-02 21:58:36 +01:00
Marco Pesenti Gritti
5f288b68c9 Typo 2007-02-27 23:19:02 +01:00
Marco Pesenti Gritti
e478de4224 Use Window, add a compatibility hack to not break API 2007-02-27 15:05:44 +01:00
Marco Pesenti Gritti
3b7670a364 Don't present from inside the Activity constructor 2007-02-24 17:40:18 +01:00
Tomeu Vizoso
a2e5b9308e Rename color property in CanvasIcon to xo-color and added properties fill-color and stroke-color. 2007-02-23 17:08:37 +01:00
Marco Pesenti Gritti
fc805d3a88 Adapt to activity api change 2007-02-22 17:27:00 +01:00
Marco Pesenti Gritti
c4435397fc Remove bundle specific stuff from env.
Move get_bundle_path to activity.
2007-02-22 15:55:07 +01:00
Marco Pesenti Gritti
02f375b710 Add a class attribute as per the updated spec.
Cleanups.
2007-02-22 15:46:13 +01:00
Marco Pesenti Gritti
995c59cb3e Make sugar-activity-factory just a wrapper. 2007-02-22 14:11:50 +01:00
Marco Pesenti Gritti
1b5ac988d7 Put exec back, I forgot it was used by the camera.
Helper method to create an activity with an uri.
2007-02-22 01:23:58 +01:00
Marco Pesenti Gritti
0b6b6cd6ac Cleanup the Activity API, code needs more love. 2007-02-22 00:57:49 +01:00
Marco Pesenti Gritti
0d7bdeb20a Improve handle marshalling. Add an uri to the handle. 2007-02-22 00:41:26 +01:00
Marco Pesenti Gritti
0556d5f51f Fix caps 2007-02-22 00:14:00 +01:00
Marco Pesenti Gritti
5cf2b49cc1 Add an handle argument to the factory and to the activity constructor. 2007-02-22 00:07:08 +01:00
Marco Pesenti Gritti
9ba487fa1f Generate the id in ActivityFactory. I want it to be easy to
run activities without using the shell. Some regression in
the debug messages, which I'll fix as part of further
refactoring.
2007-02-21 20:56:14 +01:00
Marco Pesenti Gritti
ef3f861954 Fix caps 2007-02-21 20:20:36 +01:00
Marco Pesenti Gritti
70da5fa7bd More cleanups 2007-02-21 20:15:39 +01:00
Marco Pesenti Gritti
3fa653ed63 Split out Activity client/server 2007-02-21 19:39:11 +01:00
Marco Pesenti Gritti
3d3c730f22 Rename the class 2007-02-21 18:09:02 +01:00
Marco Pesenti Gritti
11264b48b2 Split factory client and server 2007-02-21 18:06:39 +01:00
Marco Pesenti Gritti
7db372cc1c Make bundle registry a singleton. Get the object path from the registry. 2007-02-21 17:53:44 +01:00
Marco Pesenti Gritti
f5b13b716e Do not expose the service names from Activity.
This create quite a bit of duplication, but I have to start somewhere cleaning this mess :/
2007-02-21 17:28:49 +01:00
Marco Pesenti Gritti
7e96b1afb7 Get rid of the old grid. Never use absolute positioning. 2007-02-20 16:23:49 +01:00
Marco Pesenti Gritti
39678b8bb8 Patch by Owen Williams to accept custom MANIFEST filename. 2007-02-08 22:27:03 +01:00
Marco Pesenti Gritti
c44084df09 Make the icon colors list private 2007-02-07 16:55:22 +01:00
Marco Pesenti Gritti
292c648612 Use MANIFEST instead of MANIFEST-OLPC.
Package activity/ and setup.py stuff by default.
2007-02-07 11:33:24 +01:00
Tomeu Vizoso
9b6d7c6292 Simple fix for getting the activities dir. 2007-02-03 11:10:49 +01:00
Marco Pesenti Gritti
6527077928 Do not look in the icon theme for activity icons 2007-01-31 15:00:13 -05:00
Tomeu Vizoso
9d13a9836d Added new tool sugar-install-bundle. 2007-01-27 12:54:56 +01:00
Marco Pesenti Gritti
4cdf88f31d Do not hardcode /usr/bin/python 2007-01-20 13:38:58 +01:00
Marco Pesenti Gritti
4c07e090fa Get the icon from activity not root 2007-01-12 21:48:06 +01:00
Marco Pesenti Gritti
6971ddb9a4 Support for activity icons inside the bundle.
Patch by Gonzalo Odiard <godiard@gmail.com>
Modified by me to allow icon theme to override the bundle one.
2007-01-12 21:35:53 +01:00
Dan Williams
fb716ae046 Make activity launching asynchronous
The ActivityFactory create() method now returns a handler GObject,
which callers may attach signals to to receive success and error
signals from the result of the activity launch request.
2007-01-07 00:04:30 -05:00
Dan Williams
b27257fadb Make shell responsible for activity ID generation
Enables tracking of activity launch throughout the whole process, so that
the shell can be aware of the activity ID from the moment the activity
is started by the shell, until the activity becomes active.  Previously,
the activity itself generated its own ID and told the shell what it was.
2007-01-06 16:29:13 -05:00
Marco Pesenti Gritti
e8b8e0e367 Do not try to connect to notify::title, for some reason it breaks the browser.
It was only used for the journal anyway.
2007-01-05 11:18:24 +01:00
Marco Pesenti Gritti
53b14ad081 Comment out the journal stuff for now. 2007-01-05 10:58:29 +01:00
Marco Pesenti Gritti
0d1e07d9c3 Split ActivityHost in model/view. Refactor accordingly. 2006-12-24 14:35:02 +01:00
Marco Pesenti Gritti
db6f615198 Start the journal activity by default 2006-12-24 02:59:20 +01:00
Marco Pesenti Gritti
dce69ef995 Refactor a bit to simply __init__ 2006-12-24 02:51:37 +01:00
Marco Pesenti Gritti
d56ccc60e7 Update help message, thanks again to erikos 2006-12-21 14:21:58 +01:00
Marco Pesenti Gritti
95a878036c Typo, thanks to erikos! 2006-12-21 14:17:44 +01:00
Marco Pesenti Gritti
5623c8a3b1 Change the Activity execute method to add a result boolean (handle/not handled).
When the camera key is pressed the Shell send and command to the active activity,
if that's not handled than it startup org.laptop.CameraActivity.
2006-12-21 12:37:02 +01:00
Marco Pesenti Gritti
e023d1c345 Get back mesh view to work. It got broken when refactoring bundles. 2006-12-20 13:58:29 +01:00
Marco Pesenti Gritti
99cce220cd Get the default type from env, clean stuff a bit 2006-12-20 13:43:54 +01:00
Marco Pesenti Gritti
ab3535e6fd Guard against multiple activities start 2006-12-20 13:24:37 +01:00
Marco Pesenti Gritti
1c1fd35541 Present the window only after start/join 2006-12-20 00:53:27 +01:00
Marco Pesenti Gritti
6b09475b99 Add a start method to the activity. It's parallel/alternative to join. 2006-12-18 14:24:28 +01:00