Commit Graph

40 Commits

Author SHA1 Message Date
Reinier Heeres
188a68ba1f Timeout function for #4612 should return False 2007-11-22 12:02:14 +01:00
Reinier Heeres
b876648bd6 Remove activities from donut after not succesfully launched after 1.5min, #4612 2007-11-22 11:57:44 +01:00
Reinier Heeres
efeaa73779 Fix alt-tab and ctrl-alt-tab behavior, #4570 2007-11-09 10:56:43 +01:00
Marco Pesenti Gritti
1879b9d140 Snapshot 3e491c2dc7. 2007-11-08 21:18:38 +01:00
Marco Pesenti Gritti
f300006b76 Move window management keybindings inside sugar.
Add a TakeScreenshot dbus method and have the shell
call it when the activity can safely take a screenshot
to use as a preview.
2007-10-23 15:19:17 +02:00
Guillaume Desmottes
297d107ee2 Update libwnck "active-window-changed" callback due to API changes 2007-09-11 11:02:07 +02:00
Marco Pesenti Gritti
d1b5fb8dc5 Handle activating windows which are transient to the activity. 2007-09-10 11:12:05 +02:00
Simon Schampijer
5766522f53 Fix for removing activity from donut when not the active and the last one 2007-09-07 17:39:42 +02:00
Marco Pesenti Gritti
1c06a44a7d Use CamelCase for the activity service methods. 2007-08-20 15:18:46 +02:00
Tomeu Vizoso
cff8ffc328 Complete move to external bundle registry. 2007-08-09 18:10:16 +02:00
Dan Winship
c85c89ce83 Make Journal active at startup. #2159
Also distinguish between "active" in the sense of "the user is actually
using this activity" and "active" in the sense of "the activity would
be active *if* the user switched to Activity view". It's the latter sense,
now called "pending" that the Journal is in at startup. Pending is also
used for the next-up activity when you quit the current active activity.
2007-08-08 09:30:45 -04:00
Bert Freudenberg
b87b375bf7 make set_active() asynchronous (fix for 2230) 2007-07-17 07:34:03 +02:00
Marco Pesenti Gritti
ddecddcb42 Remove unused methods from the activity services. Cleanups. 2007-07-03 20:55:46 +02:00
Marco Pesenti Gritti
8505a18652 Fix copyright year 2007-06-24 14:45:05 +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
2b7ffe41d9 Make bundle_id and activity_id window properties to
avoid races.
2007-06-01 21:21:30 +02:00
Marco Pesenti Gritti
b1a62c2fc0 Refactor part of the Home model. Should be much
cleaner and reliable. If you find bugs with it
please let me know.
2007-06-01 13:38:34 +02:00
Marco Pesenti Gritti
2f6790105d Make launching a property of the activity model 2007-06-01 11:03:18 +02:00
Marco Pesenti Gritti
38c0cf411c Remove our custom launch timeout. The dbus timeout
is enough.
2007-06-01 10:24:13 +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
Bert Freudenberg
c89de594d3 Use proper "org.laptop.Activity" interface when talking to activities 2007-05-23 18:38:22 +02:00
Bert Freudenberg
677c4bc199 Reliably detect activity launch (fix for #1560) 2007-05-23 18:33:30 +02:00
Tomeu Vizoso
3a1d514e9f Save to the journal when switching to another activity. 2007-05-16 21:30:49 +02:00
Marco Pesenti Gritti
92416d1519 Fix typo in the fallback code path 2007-04-17 18:17:26 +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
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