Commit Graph

16 Commits

Author SHA1 Message Date
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
Marco Pesenti Gritti
09304e8e5a Accept raw X windows in the shell 2007-04-08 19:20:59 +02:00
Tomeu Vizoso
0fe529b78a Avoid multiple simultaneous launches of the same activity. 2007-03-15 16:21:37 +01:00
Marco Pesenti Gritti
2c896e35b1 Pass the right parameters to HomeActivity 2007-02-22 17:55:46 +01:00
Tomeu Vizoso
8679737d86 Rename for new API. 2007-02-22 17:39:06 +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
Owen Williams
165bb9213f Update look of activities donut to match wiki
If we remove current activity, set _current_activity to None
2007-01-31 11:16:33 -05:00
Owen Williams
f2c3505f7e Fix homemodel to return properly-ordered activities (based on timestamp) 2007-01-25 21:30:37 -05:00
Marco Pesenti Gritti
429a7ff970 Ensure to emit an activity changed signal when closing the last window. Fix #690. 2007-01-09 17:55:35 +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
8cea4c5fc6 Track activities while they launch
HomeModel now uses the activity ID to track activities, and creates
the HomeActivity object when the activity is launched, not when
its window appears.
2007-01-06 19:31:19 -05:00
Marco Pesenti Gritti
a4e1b6b3ff Fix handling of the no activities case 2006-12-24 15:58:53 +01:00
Marco Pesenti Gritti
b3c2368eac Complete the shell model/view split, finally 2006-12-24 15:39:00 +01:00
Marco Pesenti Gritti
0d1e07d9c3 Split ActivityHost in model/view. Refactor accordingly. 2006-12-24 14:35:02 +01:00
Marco Pesenti Gritti
2db2ae5312 Split model/view in the activities donut.
Provide some infrastructure for Alt+Tab implementation.
2006-12-24 12:19:24 +01:00