Commit Graph

183 Commits

Author SHA1 Message Date
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
d4bd7a5d05 Do not index icons by activity id. Raw X windows does not have one. 2007-06-01 14:19:14 +02:00
Marco Pesenti Gritti
cd3efeba49 Fix raw X windows 2007-06-01 14:04:54 +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
Dan Williams
28e8b9025e Show activity title in mesh view 2007-05-15 16:21:40 -04:00
Dan Williams
02c99e2a0c Handle buddy nick changes 2007-05-14 01:21:22 -04:00
Dan Williams
b3a403c8f0 Fix more debug printout; print type not method itself 2007-05-02 23:16:14 -04:00
Dan Williams
886dbf288b Fix debug printout; print type not method itself 2007-05-02 23:13:09 -04:00
Dan Williams
3502c58c47 Remove unused import 2007-05-02 22:19:58 -04:00
Dan Williams
16162f74ff Fix shell for sugar.presence.activity API changes 2007-04-27 12:56:13 -04:00
Guillaume Desmottes
83b712bcb1 Fix properties bugs 2007-04-25 19:35:08 +02:00
Dan Williams
d450ea2dd6 Clean up buddy activity changed signals in MeshModel 2007-04-20 13:56:46 -04:00
Dan Williams
e46d31e0f4 Fix current-activity-changed signals in BuddyModel 2007-04-20 12:38:04 -04:00
Marco Pesenti Gritti
92416d1519 Fix typo in the fallback code path 2007-04-17 18:17:26 +02:00
Marco Pesenti Gritti
5bfc64d9be Always center the owner in the home views 2007-04-16 10:36:15 +02:00
Dan Williams
559c75a317 Fix friending somebody for real this time 2007-04-13 14:20:05 -04:00
Dan Williams
894fcea9fc Remove get_default_type() and bundle default types; obsolete 2007-04-11 15:08:40 -04:00
Dan Williams
6710618a43 Use public keys rather than nicknames to differentiate buddies 2007-04-10 15:55:55 -04:00
Dan Williams
bf9a375836 Send correct object in signal emission 2007-04-10 14:49:43 -04: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
508a59b99b More Shell fixes for new PS 2007-04-09 16:30:30 -04:00
Dan Williams
76a0f45aa8 More new PS fixes 2007-04-09 16:05:32 -04:00
Dan Williams
3eeec9bf07 Remove references to obsolete p2p.Stream classes 2007-04-09 15:07:40 -04:00
Dan Williams
bc083dae5a Cut over to new PresenceService 2007-04-09 14:40:56 -04:00
Marco Pesenti Gritti
2f2f756939 Forgot to add this 2007-04-08 19:24:02 +02:00
Marco Pesenti Gritti
09304e8e5a Accept raw X windows in the shell 2007-04-08 19:20:59 +02:00
Dan Williams
396ca0e64e Don't hiccup on NM start/stop 2007-04-05 00:22:13 -04:00
Dan Williams
4b4cf9673c Cleanup of sugar device handling code 2007-04-04 23:48:09 -04:00
Dan Williams
6c9eb64de3 Handle device addition and activation correctly 2007-03-29 15:02:36 -04:00
Dan Williams
d0fdf59486 Really add mesh device bits 2007-03-29 10:10:34 -04:00
Dan Williams
1352e5be94 Mesh network device support 2007-03-28 17:38:47 -04:00
Marco Pesenti Gritti
bf805bfa2f Disable the presence service. You can reenable it by just
changing the _ENABLE var to True.
2007-03-28 12:17:34 +02:00
Dan Williams
dee3953e34 Add property for mode 2007-03-15 22:00:35 -04:00
Dan Williams
902fcd069b Expose AP capabilities 2007-03-15 16:37:28 -04:00
Dan Williams
85f8ef218d Rearrange network device handling bits 2007-03-15 16:37:15 -04:00
Tomeu Vizoso
0fe529b78a Avoid multiple simultaneous launches of the same activity. 2007-03-15 16:21:37 +01:00
Eduardo Silva
84f6bdd0c9 Battery status update 2007-03-12 11:02:36 -04:00
Marco Pesenti Gritti
158d933a10 Complete the UI for the battery 2007-03-12 10:51:48 +01:00
Dan Williams
723bd21e77 Require jpeg format buddy icon
Since the intro screen ensures that a buddy icon exists and
is in jpg format, we can simplify the buddy icon code in the
ShellOwner object.
2007-03-09 10:18:23 -05:00
Dan Williams
8dc201bc5f Expose owner details through the Shell's DBus service
For security, we need the PresenceService to listen for changes to the
owner's attributes, like changed color, nickname, icon, and current activity,
rather than having D-Bus API in the PS itself that any process could call.

So, the shell provides signals when these attributes change, which the PS
listens to and pushes out over the network accordingly.
2007-03-08 22:17:33 -05:00
Marco Pesenti Gritti
655e4018f2 Do not show the battery device since it's not hooked up 2007-03-07 22:30:52 +01:00
Dan Williams
550fe95b5a Clean up sugar + NM client interaction
Change "init-failed" signal to 'initialized' so uninitialized
devices don't leak in the sugar model.

Get rid of 'ssid-changed' signal on Network objects, makes no
sense conceptually, plus new 'initialized' signal replaces
what it was used for.
2007-03-07 11:40:04 -05:00
Marco Pesenti Gritti
eefad0aeed Do not try to add access points on model removed signal!
Some fixes to access point state.
2007-03-07 14:23:44 +01:00
Marco Pesenti Gritti
e62fcbd296 Call remove access point with the right signature 2007-03-05 20:32:39 +01:00
Marco Pesenti Gritti
8f57bf7c9d Support running without network manager service.
Rework code to run without hardware manager service.
2007-02-26 14:42:39 +01:00
Marco Pesenti Gritti
4c23a821ef Missing file 2007-02-26 14:11:55 +01:00
Marco Pesenti Gritti
6fadbde8bc Fix up propagation of the state property changes 2007-02-26 13:20:36 +01:00
Marco Pesenti Gritti
fa1d25d441 Add a device-added signal 2007-02-26 12:26:10 +01:00
Marco Pesenti Gritti
89a91954c9 More work on network devices, getting there 2007-02-26 12:23:00 +01:00
Marco Pesenti Gritti
69b48ade35 s/essid/ssid 2007-02-25 21:19:18 +01:00
Marco Pesenti Gritti
4299dd6765 Cleanups 2007-02-25 17:51:30 +01:00
Marco Pesenti Gritti
66f26e4b8b Fixup tooltips. Still not working for the home page case, since
the active device logic is pretty broken.
2007-02-25 17:34:15 +01:00
Marco Pesenti Gritti
e803f6534f Add ssid tooltip to the home too. Not working yet. 2007-02-25 15:24:04 +01:00
Marco Pesenti Gritti
10bfe004a8 Fix strength propagation 2007-02-25 15:05:56 +01:00
Marco Pesenti Gritti
f907ceeae6 Display strength of wireless device/networks 2007-02-25 14:30:17 +01:00
Marco Pesenti Gritti
7c135804bc Handle device removal 2007-02-25 12:36:44 +01:00
Marco Pesenti Gritti
38ac42d665 Activate the network on click 2007-02-25 12:17:45 +01:00
Marco Pesenti Gritti
06e0923687 First go at access points on the mesh view 2007-02-25 11:39:35 +01:00
Marco Pesenti Gritti
6a4170a51e Get the wireless device to show. 2007-02-25 02:28:14 +01:00
Marco Pesenti Gritti
755250947a Some work on the network devices 2007-02-25 02:00:40 +01:00
Tomeu Vizoso
cb0d75eb59 Rename IconColor to XoColor. 2007-02-23 13:09:33 +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
fc805d3a88 Adapt to activity api change 2007-02-22 17:27:00 +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
e0dd1f5232 Infrastructure for the home page devices 2007-02-20 11:48:03 +01:00
Marco Pesenti Gritti
892caab0d8 Give precendence to user dir over system dir 2007-02-13 13:01:58 +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
Tomeu Vizoso
9d13a9836d Added new tool sugar-install-bundle. 2007-01-27 12:54:56 +01:00
Owen Williams
f2c3505f7e Fix homemodel to return properly-ordered activities (based on timestamp) 2007-01-25 21:30:37 -05:00
Dan Williams
0c66dd5fa2 Re-enable buddy streams now that XMLRPC is fixed for python 2.5 2007-01-24 14:25:31 -05:00
Marco Pesenti Gritti
d36e20159e Our xmlrpc implementation does not work with python 2.5.
Try/except it and log an error.
2007-01-20 13:46:32 +01:00
Marco Pesenti Gritti
297381cad7 Basic implementation of the shutdown graphics 2007-01-11 11:20:08 +01:00
John (J5) Palmieri
b2bf400b67 add import for sugar.graphics.IconColor 2007-01-10 16:55:12 -05:00
Dan Williams
e14c928640 Increase launch timeout to 20s 2007-01-09 14:21:40 -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
Marco Pesenti Gritti
e023d1c345 Get back mesh view to work. It got broken when refactoring bundles. 2006-12-20 13:58:29 +01:00
Justin Gallardo
b9f9ef0fe9 Changed all tabs to 4 spaces for python style 2006-12-04 11:12:24 -08:00
Marco Pesenti Gritti
518d2d61d0 Remove unused old registry code 2006-12-01 23:09:02 +01:00
Marco Pesenti Gritti
ba5d1b4804 Finish up porting to the new registry 2006-12-01 23:04:14 +01:00
Marco Pesenti Gritti
ee62ed69b4 Pick up system bundles even if xdg dir env is undefined 2006-11-05 18:14:00 +01:00
Marco Pesenti Gritti
8571920734 Tweak activity search path. Use ~/Activities and XDG_DATA_DIRS/activities 2006-10-31 13:10:34 +01:00
Marco Pesenti Gritti
d150ac40cc More work on bundles support 2006-10-29 19:05:09 +01:00
Marco Pesenti Gritti
077bc6a4f1 Do not return the whole dict, just the values! 2006-10-20 18:24:17 +02:00
Dan Williams
d784a906e4 Add initial buddies, protect against buddies we don't know about before using them 2006-10-19 15:07:21 -04:00
Marco Pesenti Gritti
4f81f305b2 Fix a race in the spread box. Adapt to api change. 2006-10-19 16:49:53 +02:00