Commit Graph

439 Commits

Author SHA1 Message Date
Dan Williams
182de3af1c Remove test code 2007-04-13 15:41:19 -04:00
Dan Williams
5015beaaa6 Clean up activity join/leave debug messages 2007-04-13 15:37:12 -04:00
Dan Williams
94431a66eb Ensure local activities emit ActivityAppeared signal when shared 2007-04-13 15:15:09 -04:00
Dan Williams
15febc6620 Correctly handle blank activity list 2007-04-13 15:05:21 -04:00
Dan Williams
02900bbfbb Fix traceback when sharing activity 2007-04-13 14:06:49 -04:00
Dan Williams
773ae4965e Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-04-13 13:12:04 -04:00
Dan Williams
31000f6c3e Asynchronize activity join/share in the PS 2007-04-13 13:11:59 -04:00
Guillaume Desmottes
6b6b72f9c9 implement org.laptop.Sugar.Presence.GetPreferredConnection 2007-04-13 18:29:50 +02:00
Dan Williams
7b40f9bf60 Asynchronize set_activity_properties 2007-04-12 17:03:30 -04:00
Dan Williams
118e039a8b Remove test activity sharing code 2007-04-12 17:03:14 -04:00
Dan Williams
6e070996c9 Asynchronize setting owner properties 2007-04-12 16:48:40 -04:00
Dan Williams
5970bb6e62 Convert print statements to logging.debug 2007-04-12 14:44:23 -04:00
Dan Williams
3d3dd23390 Randomness tweak 2007-04-12 00:14:29 -04:00
Dan Williams
3f2f609c4a Use different log file for test PS instances 2007-04-11 23:45:45 -04:00
Dan Williams
3d6bff9278 Ignore invalid handles on avatar updates 2007-04-11 23:45:20 -04:00
Dan Williams
162a87f882 Create test owner for presence service
This owner changes properties periodically so we can test out the PS's handling
of property changes.  To execute, run Sugar and then make sure that the D-Bus
address is the one sugar is using (get it from ~/.sugar/default/session.info).
Then run:

build/bin/sugar-presence-service X

where X is a number 1 -> 9 inclusive.  It will generate fake buddy info for that
test buddy and then start up a presence service for that buddy, changing a random
property of the buddy every 10 seconds.
2007-04-11 22:49:14 -04:00
Marco Pesenti Gritti
eeb09294d8 Revert "Start reworking the cliboard services to use the types registry."
This reverts commit fcb57779a2.
2007-04-11 18:22:52 +02:00
Marco Pesenti Gritti
fcb57779a2 Start reworking the cliboard services to use the types registry. 2007-04-11 16:14:58 +02:00
Dan Williams
133a718f28 Really fix cache code this time; revert to previous code plus ensure directory exists 2007-04-10 15:22:28 -04:00
Dan Williams
a4792552f4 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-04-10 15:15:30 -04:00
Dan Williams
e49b36c0f5 Cleanup new cache code 2007-04-10 15:15:21 -04:00
Dan Williams
3e862d517c Ensure icon cache directory exists 2007-04-10 15:14:19 -04:00
Marco Pesenti Gritti
f134efbb6f Swap class order here too, to fix FC7 2007-04-10 21:12:33 +02:00
Dan Williams
8d4d87a081 Make contact-online handler async; print -> logging.debug 2007-04-10 15:00:49 -04:00
Marco Pesenti Gritti
3350d5772a Swap the classes order, which for some reason make it work on FC7 2007-04-10 20:29:34 +02:00
Dan Williams
dba902bd15 Fix unknown variable bug 2007-04-10 14:12:12 -04:00
Dan Williams
48cab08b33 PS fixes; use correct type on public keys and hide invalid buddies 2007-04-10 10:59:35 -04:00
Dan Williams
c9310c2220 PS fixes; use correct type on public keys and hide invalid buddies 2007-04-10 10:59:31 -04:00
Dan Williams
76a0f45aa8 More new PS fixes 2007-04-09 16:05:32 -04:00
Dan Williams
bc083dae5a Cut over to new PresenceService 2007-04-09 14:40:56 -04:00
Dan Williams
2509d990e4 Cut over to new PresenceService 2007-04-09 14:40:50 -04:00
Dan Williams
fc12f73fba Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-04-06 15:29:14 -04:00
Dan Williams
e37bba0094 PresenceService fixes; don't traceback on avahi errors 2007-04-06 15:29:11 -04:00
Marco Pesenti Gritti
c9c1117872 Remove the threadframe stuff which went unused. 2007-04-06 20:13:37 +02:00
Dan Williams
de46d81828 Disable buddy icon request for trial 1 2007-03-29 11:48:21 -04:00
Tomeu Vizoso
10735e597a Add application/x-pdf mime type. 2007-03-29 12:25:47 +02:00
Eduardo Silva
b36af52f52 Console: new label with XO Firmware version 2007-03-28 21:50:25 -04:00
Marco Pesenti Gritti
01056ee823 Handle abw files 2007-03-22 18:22:37 +01:00
Marco Pesenti Gritti
1f61c5f65e Hook up etoys projects 2007-03-22 15:34:05 +01:00
Dan Williams
5b20b05cc8 Current activity has its own signal now 2007-03-16 12:24:20 -04:00
Dan Williams
ad5110f8df Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-16 12:19:29 -04:00
Dan Williams
5955f17197 Hook up current activity bits 2007-03-16 12:19:24 -04:00
Dan Williams
831c4c6828 Fix get of current-activity property; should be a string 2007-03-16 12:18:54 -04:00
Guillaume Desmottes
f4b7233255 trivial cosmetic changes 2007-03-16 16:43:20 +01:00
Dan Williams
d196fb89a7 Ignore owner property updates from the network; handled locally 2007-03-16 10:43:15 -04:00
Dan Williams
bd2ff74be4 Trivial debug message cleanups 2007-03-16 10:12:50 -04:00
Guillaume Desmottes
b025ddde67 use new activity properties changed signal name 2007-03-15 20:38:11 +01:00
Guillaume Desmottes
41bb49f6f6 Merge branch 'master' of git+ssh://guillaume@dev.laptop.org/git/sugar 2007-03-15 10:54:21 +01:00
Dan Williams
653191806f Copy interesting files to /home/dcbw after download 2007-03-14 13:04:10 -04:00
Guillaume Desmottes
a16484bc7b rename some signals to avoid confusions
use activity properties API
2007-03-14 15:59:30 +01:00
Dan Williams
6ab478c6cd Validate percentage before setting it 2007-03-14 10:09:41 -04:00
Tomeu Vizoso
6227b96215 Support selection of the clipboard object to be pasted. 2007-03-14 13:32:05 +01:00
Dan Williams
8b4ccf3eb1 Cleanup clipboard D-Bus API
- The clipboard now determines each objects unique id and
    returns it from add_object()
- The ID is opaque to the client and should not be used/accessed
    other than with the clipboard service
- Add object type hints for dbus-python
- Sugar clipboard bindings for get_object() now return a dict rather
    than a tuple
- ClipboardIcon now retrieves the real file path and uses that
    to open the file
- Adapt sugar bits to clipboard changes
2007-03-14 00:50:06 -04:00
Dan Williams
3ffaa06220 Fix uninitialized variable tracebacks 2007-03-12 11:31:34 -04:00
Eduardo Silva
b5ced20ca4 Console: battery box improves 2007-03-10 19:37:44 -03:00
Eduardo Silva
f8a3daa2b6 Console: logviewer font changes 2007-03-10 19:30:44 -03:00
Eduardo Silva
29d23cbe77 Console: new battery status box 2007-03-10 19:16:40 -03:00
Eduardo Silva
361581c0d1 Console: fix cpu usage, new kernel version, font changes... 2007-03-10 00:39:55 -03:00
Dan Williams
9d837710f5 Listen for and respond to Owner property changes
Pass the PS's owner object to each plugin.  Make the server plugin
listen to property changes and push those changes to the Jabber
server when they occur.
2007-03-09 16:29:49 -05:00
Dan Williams
d299cd4032 Update Owner properties on signals from the Shell
Listen to the shell's D-Bus service for property updates
of the Owner, and push those into the presence service.

Add test code to randomly change the properties, useful
when running the PS standalone without a shell.
2007-03-09 16:28:35 -05:00
Marco Pesenti Gritti
57c928916c Refactor sugar.env and paths 2007-03-09 14:57:54 +01:00
Marco Pesenti Gritti
2d9a06ec9a Add the root path of the services to python path, not services/.
Get rid of the now useless env.get_services_dir
2007-03-09 12:32:32 +01:00
Dan Williams
d46382921a Convert Activity objects to gobjects and ensure validity before using 2007-03-08 12:51:10 -05:00
Guillaume Desmottes
afcfdaa239 add GetType() method on Activity 2007-03-08 16:16:06 +01:00
Guillaume Desmottes
2312aa6a99 Merge branch 'master' of git+ssh://guillaume@dev.laptop.org/git/sugar 2007-03-08 15:47:40 +01:00
Guillaume Desmottes
2262b5fd49 update nick when receive AliasChanged signal 2007-03-08 15:45:12 +01:00
Dan Williams
4c05c4247c Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-07 14:22:16 -05:00
Guillaume Desmottes
abf60c1c89 add GetName method 2007-03-07 20:09:40 +01:00
Dan Williams
9fa72e4cba Remove some erroneous error handler code 2007-03-07 13:56:22 -05:00
Guillaume Desmottes
cb2489bff6 implement ActivityInvitation and PrivateInvitation signals 2007-03-07 19:46:48 +01:00
Guillaume Desmottes
139b190650 catch invitations request 2007-03-07 15:27:47 +01:00
Guillaume Desmottes
6f19b10222 catch the closed signal
check if icon exists
2007-03-07 13:15:38 +01:00
Guillaume Desmottes
1480ff8440 add a leave method 2007-03-06 18:22:43 +01:00
Guillaume Desmottes
2eedfd3d90 implement activity GetChannels 2007-03-06 17:50:49 +01:00
Guillaume Desmottes
7e1c8ef31f declare _icon in Buddy constructor 2007-03-06 17:26:21 +01:00
Guillaume Desmottes
a0230ba784 move dirty hacks to declare interfaces in init_connections to avoid warnings 2007-03-06 17:22:33 +01:00
Guillaume Desmottes
f716f20191 start to implement join and share activities 2007-03-06 17:15:55 +01:00
Guillaume Desmottes
42609e447c Merge branch 'master' of git+ssh://guillaume@dev.laptop.org/git/sugar 2007-03-05 18:56:34 +01:00
Guillaume Desmottes
148c93968b create/remove activities according to ActivitiesChanged signal 2007-03-05 18:56:17 +01:00
Tomeu Vizoso
39a009056d Order journal entries and fix filtering. 2007-03-05 16:56:39 +01:00
Guillaume Desmottes
39c6542e40 Merge branch 'master' of git+ssh://guillaume@dev.laptop.org/git/sugar 2007-03-05 12:52:45 +01:00
Guillaume Desmottes
9ce78f6100 upload our avatar only if needed 2007-03-05 12:52:29 +01:00
Marco Pesenti Gritti
52ca451a05 More fake entries improvements 2007-03-05 12:05:13 +01:00
Marco Pesenti Gritti
583ea4214d Improve the demo entries 2007-03-05 12:00:51 +01:00
Tomeu Vizoso
a585221b16 Added object update to the datastore. 2007-03-04 11:27:33 +01:00
Tomeu Vizoso
559d21d4d2 Merge branch 'master' of git://dev.laptop.org/sugar 2007-03-04 10:53:14 +01:00
Dan Williams
7b11487995 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-03 12:05:08 -05:00
Dan Williams
fc7f62359f Don't traceback on cleanup when disconnected already 2007-03-03 03:51:27 -05:00
Dan Williams
fc970ccf3d Attempt periodic reconnection on connect error, traceback less on server problems 2007-03-03 03:15:18 -05:00
Dan Williams
7da177a054 color is required for a valid buddy 2007-03-03 03:12:52 -05:00
Dan Williams
6428fdc9a4 Give dbus-python a hint to icon return type 2007-03-03 03:12:27 -05:00
Tomeu Vizoso
33739f1c0f Some more examples for the journal. 2007-03-02 22:21:45 +01:00
Tomeu Vizoso
d504124cc2 Hack Dan's DataStore for doing what we need for 6th March demo. 2007-03-02 21:17:03 +01:00
Dan Williams
08c791849f Convert buddies to GObjects; ensure signals don't emit before buddy is valid 2007-03-02 11:10:44 -05:00
Tomeu Vizoso
47b8ad2496 Stop sqlite3.decoding the data from the db. 2007-03-01 19:23:55 +01:00
Dan Williams
a3e2803eb8 Clue dbus-python into the return type of get_data() 2007-03-01 13:23:29 -05:00
Tomeu Vizoso
97d719f795 Use sqlite3.Row in the datastore. 2007-03-01 18:59:36 +01:00
Dan Williams
dbf2c0c1a2 get object path correctly 2007-03-01 12:52:42 -05:00
Tomeu Vizoso
f2af1ae219 Use cursor parameters instead of SQL injection. 2007-03-01 18:42:53 +01:00
Dan Williams
7ab0b60b10 Update data store to new dbus-python bindings API and sqlite3 2007-03-01 11:53:43 -05:00
Guillaume Desmottes
bfbcedbcec Don't use the _alias_changed_cb while we use vcard to store the alias 2007-03-01 13:30:42 +01:00
Dan Williams
57b887df30 PresenceService fixes; request buddy presence when using existing connection 2007-02-28 22:13:27 -05:00
Dan Williams
748275ca00 Add fixme for avatar optimization 2007-02-28 11:47:19 -05:00
Guillaume Desmottes
065cd6bc20 start to use aliasing interface for nick 2007-02-28 17:02:43 +01:00
Dan Williams
403c2abc5c Upload avatar; try to get and set BuddyInfo properties 2007-02-27 22:38:28 -05:00
Guillaume Desmottes
7cf6fd2640 explicitely set the BuddyInfo interface 2007-02-28 00:05:00 +01:00
Guillaume Desmottes
a840be0c01 Merge branch 'master' of git+ssh://guillaume@dev.laptop.org/git/sugar 2007-02-27 23:52:02 +01:00
Guillaume Desmottes
81b636c8e1 start of support of the org.freedesktop.Telepathy.Connection.Interface.OLPC.BuddyInfo interface 2007-02-27 23:51:53 +01:00
Dan Williams
aeb162ae08 Remove a bit of debugging code 2007-02-27 13:19:04 -05:00
Guillaume Desmottes
5535aefc75 Add a Server section in the config file and use it to register only when needed 2007-02-27 19:08:17 +01:00
Dan Williams
abf84970b5 always register the jid when connecting 2007-02-26 15:38:50 -05:00
Dan Williams
ca8f3a0484 minor connection setup cleanups 2007-02-26 13:18:06 -05:00
Guillaume Desmottes
4c0352e9bc new icon cache system 2007-02-26 17:18:52 +01:00
Guillaume Desmottes
d49a3b52ab only remove the buddy if we don't see it using all CM 2007-02-26 12:28:50 +01:00
Dan Williams
500bd702b1 First pass at attempting registration on failure 2007-02-25 22:45:16 -05:00
Dan Williams
0cad068bf4 Merge 2007-02-25 19:27:37 -05:00
Dan Williams
bf98a5d064 Add link local plugin 2007-02-25 19:25:24 -05:00
Dan Williams
a72175ff68 Create separate plugins for connection methods 2007-02-25 19:24:48 -05:00
Marco Pesenti Gritti
81e2e9ed8d Get rid of the old nm applet 2007-02-25 13:40:24 +01:00
Guillaume Desmottes
4200f1edeb replace _connect_to_server with a protocol/cm independent equivalent 2007-02-24 00:39:54 +01:00
Dan Williams
32a92a8c11 Clarify comment 2007-02-23 14:15:49 -05:00
Dan Williams
bcc67dfb10 Clarify comment 2007-02-23 12:37:01 -05:00
Dan Williams
93386a4d8a Handle contact approval and request presence when using existing connection 2007-02-23 12:34:35 -05:00
Dan Williams
03747e2c6c Find and use an existing gabble connection, if any 2007-02-23 12:04:16 -05:00
Guillaume Desmottes
162167b7f3 Announce appear/disappear buddies according their jabber status 2007-02-23 17:30:25 +01:00
Guillaume Desmottes
dcbacb1bba Merge branch 'master' of git+ssh://guillaume@dev.laptop.org/git/sugar 2007-02-23 14:16:25 +01:00
Guillaume Desmottes
5ae3e292ca create buddy when connecting 2007-02-23 14:15:51 +01:00
Tomeu Vizoso
cb0d75eb59 Rename IconColor to XoColor. 2007-02-23 13:09:33 +01:00
Dan Williams
7ef6283ac4 Add telepathy glue bits (guilllaume) 2007-02-22 14:53:33 -05:00
Dan Williams
4037fc56ee Revert "Fix presence service starter script"
Wrong commit message

This reverts commit 1d304b939c.
2007-02-22 14:52:55 -05:00
Dan Williams
e80f21ed25 Fix presence service starter script 2007-02-22 14:51:36 -05:00
Dan Williams
1d304b939c Fix presence service starter script 2007-02-22 14:51:26 -05:00
Dan Williams
1dcb9e9088 Add buddy and activity classes (guillaume) 2007-02-22 14:11:31 -05:00
Tomeu Vizoso
228908b36e Use the new icons for object types. 2007-02-22 13:21:09 +01:00
Dan Williams
e9abbcc152 Add owner bits and fill out GetOwner, GetBuddies, GetActivities 2007-02-21 07:58:16 -05:00
Dan Williams
44ce0a03a4 Add buddy icon cache 2007-02-21 07:20:59 -05:00
Dan Williams
eb16219265 raise errors, not return them 2007-02-21 07:08:40 -05:00
Dan Williams
e52ce9de93 Stub out more of the PS object 2007-02-21 07:06:45 -05:00
Dan Williams
6946369ba5 Skeleton PS class 2007-02-21 06:41:26 -05:00
Dan Williams
548e2983dd Start on new presence service 2007-02-21 06:37:04 -05:00
Marco Pesenti Gritti
3de915db96 Completely drop stylesheets. Move some of it inside the nm service, don't want to touch that code because it will be rewritten. 2007-02-20 15:10:18 +01:00
Marco Pesenti Gritti
4cdf88f31d Do not hardcode /usr/bin/python 2007-01-20 13:38:58 +01:00
Tomeu Vizoso
93e030216c Update to new icon API. 2007-01-16 19:22:50 +01:00
Dan Williams
d42e4af65a Don't show WPA-enabled APs in the NM applet menu
We don't support WPA configuration yet, so don't show those access points
in the dropdown menu.
2007-01-16 09:59:31 -05:00
Tomeu Vizoso
334be3331b Some more usability fixes for the clipboard. 2007-01-11 23:57:06 +01:00
Eduardo Silva
7a185a51f4 [devconsole] XO interface updates: new build number and internal changes 2007-01-10 18:19:05 -03:00
Marco Pesenti Gritti
6e599ead06 Toggle console visibility 2007-01-10 17:12:23 +01:00
Eduardo Silva
fe9642586e [devconsole] - XO interface expose event fixes 2007-01-09 11:43:21 -03:00
Marco Pesenti Gritti
5d192d40a8 Fix running from source directory 2007-01-08 23:42:11 +01:00
Marco Pesenti Gritti
4b739f4a83 Fix distcheck 2007-01-08 18:22:56 +01:00
Marco Pesenti Gritti
c854d9272d Fix makefiles 2007-01-08 18:19:22 +01:00
Marco Pesenti Gritti
cae78d7041 Rework the console to use autoactivation, move it in services/ 2007-01-08 18:06:59 +01:00
Tomeu Vizoso
1ee6b7faf0 Some clipboard fixes. 2007-01-07 23:38:33 +01:00
Tomeu Vizoso
f50d9f5f9a Added icon, title and preview for clipboard objects. Also allow for opening docs and rtfs from the web. 2007-01-05 21:13:46 +01:00
Dan Williams
e586cd66c0 Add activity objects to the data store 2006-12-20 14:04:52 -05:00
Dan Williams
5aedeae62f Validate colors; ensure that Owner's color is a string 2006-12-19 17:50:13 -05:00
Marco Pesenti Gritti
fc6ad660f1 Remove debug code, as requested by j5 2006-12-19 21:57:08 +01:00
Marco Pesenti Gritti
2402d0461d Release 0.60 2006-12-18 21:27:46 +01:00
Dan Williams
461b5ae2a9 Fix name so imports work 2006-12-14 17:21:04 -05:00
Dan Williams
cb38a2c1fa Install a service file for activating the datastore upon demand 2006-12-14 13:45:13 -05:00
Tomeu Vizoso
e68f0e00e9 Added c&v and dnd support to the clipboard. 2006-12-13 22:36:05 +01:00
Dan Williams
039ac19432 datastore fixes 2006-12-11 17:25:48 -05:00
Dan Williams
dbca112368 don't allow blank property values in find(); handle property deletion 2006-12-11 10:59:30 -05:00
Dan Williams
74d9555796 Remove useless dbus service file; the datastore is a session service and doesn't need one 2006-12-11 08:02:09 -05:00
Dan Williams
ff53fdc185 Add a simple prototype data store 2006-12-11 07:55:01 -05:00
Marco Pesenti Gritti
37853ad836 Fix up service installation path 2006-12-04 14:32:48 -05:00
Marco Pesenti Gritti
bd906334ea Fix a few indentation screw ups 2006-12-04 14:27:08 -05:00
Justin Gallardo
b9f9ef0fe9 Changed all tabs to 4 spaces for python style 2006-12-04 11:12:24 -08:00
Tomeu Vizoso
59d57a03d9 First implementation of ClipboardService. Implement pdf viewing and downloading via ClipboardService. 2006-11-15 13:56:19 +01:00
Dan Williams
a6aaff912b NM applet: store and return allowed networks correctly 2006-11-13 12:56:12 -05:00
Dan Williams
0ed4d028e2 Remove debugging code 2006-11-12 23:24:27 -05:00
Dan Williams
08bde38ebf Make the WEP key dialog work in async mode 2006-11-12 23:16:31 -05:00
Dan Williams
9c1f76b042 Fix returned dbus args so the applet works with WEP 2006-11-12 19:21:13 -05:00
Dan Williams
5e4d972f40 Fix more key dialog interaction 2006-11-12 19:12:17 -05:00
Dan Williams
9e6f1b6619 Fix icon update on NM going away 2006-11-12 18:37:25 -05:00
Dan Williams
fa94236b78 Add wepkeydialog to the makefile 2006-11-12 18:37:03 -05:00
Marco Pesenti Gritti
a3d9a93d82 More fixes, nearly there but not quite yet. 2006-11-13 00:10:49 +01:00
Marco Pesenti Gritti
4cd09ed5f8 Add a simple dialog to enter the web hex key. Several typo fixed.
Merged a patch from Dan.
2006-11-12 22:44:28 +01:00
Dan Williams
f5d2fd969c Hook up more of the key dialog bits 2006-11-12 14:42:30 -05:00
Tomeu Vizoso
61f24de748 Reverting clipboard changes pushed by mistake. These are commits 23565cfd48 and a7e4092b0e. 2006-11-10 14:14:15 +01:00
Tomeu Vizoso
a7e4092b0e Created SugarDownloadManager and ClipboardService's wrapper. Show and hide the frame when adding an object to the clipboard. 2006-11-05 19:52:46 +01:00
Tomeu Vizoso
a6503b8bd8 Merge branch 'master' of git://dev.laptop.org/sugar 2006-11-02 17:21:00 +01:00
Dan Williams
823f1cf6f7 Work around non-bound HippoCanvas 'clickable' property by using button-press-event instead 2006-11-01 16:55:24 -05:00
Dan Williams
a6ff123ffe Do rollovers on menu items and stub code for activating a connection 2006-11-01 15:43:30 -05:00
Dan Williams
9ef18ffe99 Rollovers in NM applet menu 2006-11-01 14:25:47 -05:00
Dan Williams
a8fda48c72 Don't draw progress bar when % is 0 2006-11-01 14:25:31 -05:00
Tomeu Vizoso
23565cfd48 First version of the ClipboardService. Added support for showing the progress of a pdf download in the clipboard. 2006-11-01 19:43:59 +01:00
Marco Pesenti Gritti
cf508c1d22 Do not resize the icon, use the original icon size. 2006-10-31 23:18:43 +01:00
Dan Williams
1088013f92 Fix active device handling 2006-10-30 14:28:28 -05:00
Dan Williams
37b4d2bb05 Switch back to 75x75 icons 2006-10-30 14:27:23 -05:00
Dan Williams
710c225e64 Organize menu items to conform with Eben's mockups 2006-10-30 13:16:40 -05:00
Dan Williams
b241defcb2 Make the Hippo-fied menu much prettier 2006-10-30 12:40:33 -05:00
Dan Williams
72832e0174 Convert to an ugly Hippo menu 2006-10-29 22:42:51 -05:00
Dan Williams
ce107c30f6 Load icons at start and scale to 25x25 2006-10-29 16:21:00 -05:00
Marco Pesenti Gritti
546dc26bea Activate the logger before importing the ps, so that we
show meaningful errors if avahi is missing.
2006-10-29 22:43:52 +01:00
Dan Williams
4071b1970e Change to /usr/bin/python instead of /bin/env python 2006-10-29 11:06:21 -05:00
Dan Williams
f679b4b3cc Add copyright header 2006-10-29 11:05:50 -05:00
Marco Pesenti Gritti
de7c2bba5e Import pygtk 2006-10-29 11:50:47 +01:00
Dan Williams
b2983ac763 Better working nm-applet
- Start nm-applet when the shell starts
- Use the artwork
- Respond to signals and get initial states
2006-10-29 01:33:42 -04:00
Dan Williams
5ff6ba45d4 Build up a network menu
Build up the networks menu of wired and wireless devices, using
GtkMenu for now.  Doesn't respond to interaction yet.
2006-10-26 15:48:27 -04:00
Dan Williams
b148a0a6aa Install the nm-applet dbus config file in the right place 2006-10-26 14:12:03 -04:00
Dan Williams
88ddaab1c7 Add (slightly) sugarized NetworkManager applet
An implementation of the NetworkManagerInfo service (for storing local
networking config) and GUI bits for discovering network status and
controlling networking, written in Python.
2006-10-26 13:04:39 -04:00
Dan Williams
6290a5fae9 Retry resolution of a buddy presence service up to 3 times 2006-10-20 15:01:08 -04:00
Dan Williams
1226b0b6b9 Fix Buddy object's get_service_of_type() method
This call would always fail for activity services because the
dbus bindings for it did not pass in the activity at all.  Fix
that.
2006-10-20 13:15:23 -04:00
Dan Williams
f7f1455b46 Revert to IP4 only since Avahi mixes up IP4 and IP6 when using PROTO_UNSPEC 2006-10-20 12:29:11 -04:00
Marco Pesenti Gritti
54941c542b Do not traceback on properties containing = 2006-10-19 17:09:42 +02:00
Marco Pesenti Gritti
dc0de1d35d Let the presence service set his own path 2006-10-17 09:57:00 +02:00
Marco Pesenti Gritti
4e88e927fb Remove the old dbus stuff, use one log file per process 2006-10-16 15:56:22 +02:00
Marco Pesenti Gritti
bc0ee6d34c Refactor startup. In progress, give me a couple hours.
For now start sugar with "sugar-emulator shell/sugar-shell"
2006-10-16 13:34:43 +02:00
Marco Pesenti Gritti
a3be4492b2 Delete unused p2p model code. Fix distcheck. 2006-10-15 02:03:58 +02:00
Marco Pesenti Gritti
94dcfa8a94 Add GPL headers 2006-10-15 01:25:50 +02:00
Marco Pesenti Gritti
cbd3a52a68 Do not set up the owner of the presence service if there
is no nick name in the env. I'm not sure this is the best
approach, we need to figure it out.

First go at the new simulator.
2006-10-09 15:11:15 +02:00
Dan Williams
75fb1a33de Send empty lists rather than NotFoundError exceptions where appropriate; compact some code 2006-10-06 11:05:27 -04:00
Dan Williams
022c183016 Fix wrong conversion of typechecking to isinstance 2006-10-06 10:46:17 -04:00
John (J5) Palmieri
6f337e0b14 Changed all type checking to use isinstance 2006-10-03 17:06:48 -04:00
John (J5) Palmieri
7c342e75bf s/type(val) == type({})/isinstance(val, dict)
This needs to be changed everwhere in the code because
isinstance will match derived types where == will not
2006-10-03 14:32:29 -04:00
Dan Williams
3919643c7d Expose local name collision errors (ie, somebody else registered that service) 2006-10-02 17:11:20 -04:00
Dan Williams
fc9c923da9 Ignore local name collisions again 2006-09-29 16:53:42 -04:00
Dan Williams
22be6cb0da Work around bug where Avahi passes back a blank service type; and don't traceback on invalid service types 2006-09-27 16:47:23 -04:00
Dan Williams
9ce768ca39 Add and remove activities to/from Buddy objects at appropriate times 2006-09-27 11:35:34 -04:00
Dan Williams
38e85f3987 Ignore duplicate activity additions 2006-09-27 11:35:15 -04:00
Dan Williams
ce577a6376 Refactor current activity handling to be top-level attributes and D-Bus signals, not stuck in the property dict 2006-09-26 13:31:14 -04:00
Dan Williams
31c69ed167 Hook up Buddy.add_activity() and Buddy.remove_activity() 2006-09-26 13:23:12 -04:00
Dan Williams
0e67d939a8 Set icon cache earlier 2006-09-25 14:15:42 -04:00
Dan Williams
7ba30ea0d2 Clean up debug messages 2006-09-25 13:42:37 -04:00
Dan Williams
e89c88b191 Fix location of cache debug prints 2006-09-25 13:24:27 -04:00
Dan Williams
5e3d56fe77 Rename function to match previous _request_buddy_icon->_get_buddy_icon 2006-09-25 13:15:36 -04:00
Dan Williams
85d70f2383 Use the buddy icon cache 2006-09-25 10:57:21 -04:00
Dan Williams
f6c043b204 Add a buddy icon cache 2006-09-25 10:56:31 -04:00
Dan Williams
b67c0a6b3d Don't print EntryGroup messages for now 2006-09-24 21:30:48 -04:00
Dan Williams
d2e235838e Only print out service resolutions, not updates 2006-09-24 21:30:28 -04:00
Dan Williams
7268d8803d Ensure owner validity before using 2006-09-24 21:29:11 -04:00
Dan Williams
6473444e09 Add a 'Disappeared' signal on the buddy object 2006-09-22 17:21:34 -04:00
Dan Williams
fcef47181b Don't hardcode property key names; protect against spurious _presence_olpc services; watch for changes on the _presence_olpc service, like current activity updates 2006-09-22 15:47:12 -04:00
Dan Williams
1ab8089457 Make Service a GObject subclass, and add a property-changed signal
Also fix bug where all property keys were sent in the property-changed signal
because the properties dict was cleared too early.
2006-09-22 15:44:25 -04:00
Dan Williams
d0f23744f0 Use asynchronous service resolution to capture service updates too 2006-09-19 13:54:32 -04:00
Dan Williams
14763c0f5c Fix up registered service type checking code 2006-09-15 18:37:54 -04:00
Dan Williams
922b7238b9 Merge 2006-09-15 16:50:06 -04:00
Marco Pesenti Gritti
5f99dcf9a5 Move the presence service out of the shell 2006-09-15 13:54:16 +02:00