Commit Graph

945 Commits

Author SHA1 Message Date
Dan Williams
bf9a375836 Send correct object in signal emission 2007-04-10 14:49:43 -04:00
Mike C. Fletcher
8302be4544 A few more docstrings 2007-04-09 23:56:14 -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
Marco Pesenti Gritti
5343752c35 Make browser a modules inside sugar library 2007-04-07 13:17:36 +02:00
Marco Pesenti Gritti
2d08ff0163 Move private extensions out of the lib, inside the shell. 2007-04-07 00:08:54 +02:00
Dan Williams
1d25366c4f Don't show Ad-Hoc mode networks in mesh view 2007-04-06 15:50:57 -04:00
Marco Pesenti Gritti
c9c1117872 Remove the threadframe stuff which went unused. 2007-04-06 20:13:37 +02:00
Dan Williams
9c0e0783db Fix execute command when using the new dbus-python 2007-04-06 10:27:14 -04:00
Marco Pesenti Gritti
49ff2f86de Move not shell specific scripts in bin 2007-04-06 15:22:22 +02:00
Tomeu
5990e5bfd1 Return TRUE again in drag_motion_cb for accepting dnd drops. 2007-04-05 17:22:27 +02:00
Marco Pesenti Gritti
bd3e084805 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-04-05 12:45:57 +02:00
Marco Pesenti Gritti
3a90cef5b6 Rework corner detection to use 1 pixel window. 2007-04-05 12:44:03 +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
Marco Pesenti Gritti
e179dbae14 Increase timeouts a bit 2007-03-30 01:40:05 +02:00
Marco Pesenti Gritti
87f1e9bcc9 Suspend the mesh view when it's not active so that
we don't keep blinking the icon in the background.
2007-03-30 01:08:44 +02:00
Dan Williams
6c9eb64de3 Handle device addition and activation correctly 2007-03-29 15:02:36 -04:00
Dan Williams
83a86e0ea1 Add a 'device activating' signal 2007-03-29 15:01:46 -04:00
Dan Williams
40f4c81d06 Make the mesh icon pulse when activated and activating 2007-03-29 15:00:27 -04:00
Dan Williams
d5826d1934 fix typo 2007-03-29 14:41:41 -04:00
Dan Williams
552af8aa56 Fix deprecation warning 2007-03-29 11:48:35 -04:00
Marco Pesenti Gritti
f59fab783f Change the feedback for connected/connecting/disconnected access point,
using two different types of pulsing.
2007-03-29 17:25:47 +02: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
Dan Williams
a24dd155b4 Make activating non-802-11-wireless devices work 2007-03-28 17:37:46 -04:00
Dan Williams
32fa3dc65b Fixup for mesh devices
- Understand mesh devices
- Don't send device signals unless device is fully initialized
2007-03-28 16:39:28 -04:00
Tomeu Vizoso
1d493919a2 Fix old variable name. 2007-03-28 17:33:50 +02: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
Marco Pesenti Gritti
1037fe6ca4 Disable invites 2007-03-28 11:58:47 +02:00
Marco Pesenti Gritti
2a36387ad7 Remove some unused imports 2007-03-28 11:42:50 +02:00
Marco Pesenti Gritti
b6a1445573 Kill a lot of old old unused code 2007-03-28 11:40:22 +02:00
Marco Pesenti Gritti
56b97575a9 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-26 16:40:29 +02:00
Marco Pesenti Gritti
0896b90fd4 Fix function signature 2007-03-26 16:38:19 +02:00
Dan Williams
824cec3910 Fix typo in Server config section name 2007-03-26 07:49:46 -04:00
Marco Pesenti Gritti
a11809cccc Actually setup translations in the shell.
Fix the it translation to use utf8.
2007-03-23 15:05:42 +01:00
Marco Pesenti Gritti
27414754a1 Pass an uri to the activity 2007-03-22 16:55:07 +01:00
Marco Pesenti Gritti
2ab9cd04dc Remove the overlay chat button since it doesn't really work. 2007-03-22 16:34:33 +01:00
Marco Pesenti Gritti
1420265d06 Autolaunch etoys projects 2007-03-22 15:46:11 +01:00
Tomeu Vizoso
0bf1d579e2 Fix for removing items from the clipboard. 2007-03-20 12:58:52 +01:00
Tomeu Vizoso
5104e24ffa Hack for detecting an onDisk format. Need to improve the clipboard API for the right fix. 2007-03-18 13:16:09 +01:00
Tomeu Vizoso
440baae7d9 Show and hide the frame when an object is added to the clipboard. 2007-03-18 12:56:11 +01:00
Tomeu Vizoso
57b617ef25 Don't grab the keyboard on press and only react to presses (temporary until trial1). 2007-03-17 20:46:44 +01:00
Tomeu Vizoso
ebe043a4d2 Refactored global key handling and frame logic. 2007-03-17 14:30:23 +01:00
Owen Williams
de80cf06de Set mode to black and white when brightness is zero.
Also, reverse Alt-F5 and Alt-F8 to make them more sensible
2007-03-16 16:42:43 -04:00
Marco Pesenti Gritti
c9f28b7317 Rework the emulator. Move matchbox in the shell. 2007-03-16 18:12:47 +01:00
Dan Williams
64a67e28f6 Disable sharing for trial1 2007-03-16 10:00:16 -04:00
Tomeu Vizoso
c0cd2cf9a6 Prevent activity launching being locked by error during launch. 2007-03-16 14:04:49 +01:00
Tomeu Vizoso
e8a21bf6a0 Use color.HTMLColor instead of the color string. 2007-03-16 11:53:22 +01:00
Dan Williams
b45c810ca1 Make access points have persistent colors 2007-03-15 22:03:42 -04:00
Dan Williams
dee3953e34 Add property for mode 2007-03-15 22:00:35 -04:00
Dan Williams
0e1ec97663 Add accessor for mode 2007-03-15 22:00:22 -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
Dan Williams
672d06d85e Add accessor for AP capabilties 2007-03-15 16:17:08 -04:00
Tomeu Vizoso
d001c70443 Tweaked sizes of home xo icon, donut radius and device icons. 2007-03-15 19:19:38 +01:00
Tomeu Vizoso
0fe529b78a Avoid multiple simultaneous launches of the same activity. 2007-03-15 16:21:37 +01:00
Dan Williams
b4e4b3875a Better removal of intro video chooser 2007-03-14 14:44:58 -04:00
Dan Williams
f2dcadaff5 Revert "Remove picture selection from intro screen for now"
This reverts commit b97edec4db.
2007-03-14 14:43:53 -04:00
Dan Williams
93e9d164c0 Auto-open some downloaded files 2007-03-14 14:43:42 -04:00
Dan Williams
b97edec4db Remove picture selection from intro screen for now 2007-03-14 10:06:45 -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
bfe04c2073 Add copyright header 2007-03-13 23:57:29 -04:00
Marco Pesenti Gritti
4960ddae25 Adapt to the new hippo canvas sizing API 2007-03-14 03:19:24 +01:00
Marco Pesenti Gritti
d041eadf92 Give up on the save/restore logic, it seem too unpredictable to be clear to the user.
Try a simpler logic where the frame state is reset when switching zoom levels.
2007-03-13 00:19:21 +01:00
Marco Pesenti Gritti
2c468110ba Go back to the home page when all activities are closed. 2007-03-12 22:47:17 +01:00
Marco Pesenti Gritti
3bfd94899a Bunch of fixes 2007-03-12 22:29:11 +01:00
Marco Pesenti Gritti
bf80cb55b9 Some cleanups in the Shell. Add a way to save/restore the frame state. 2007-03-12 20:18:55 +01:00
Marco Pesenti Gritti
2bd609e5fd Cleanup 2007-03-12 19:14:02 +01:00
Marco Pesenti Gritti
ed454220e6 Cleanup 2007-03-12 19:13:09 +01:00
Marco Pesenti Gritti
ce91f2df99 Force hiding when running an activity even if the user hover the frame again. 2007-03-12 16:57:52 +01:00
Marco Pesenti Gritti
978965bfa8 Fix a race 2007-03-12 16:30:53 +01:00
Marco Pesenti Gritti
0d90a7b4e7 More fixes to the hover logic.. 2007-03-12 16:22:03 +01:00
Marco Pesenti Gritti
49b0db642e Fix hover checking logic 2007-03-12 16:09:41 +01:00
Eduardo Silva
84f6bdd0c9 Battery status update 2007-03-12 11:02:36 -04:00
Marco Pesenti Gritti
acaac29906 Add the frame when starting an activity 2007-03-12 14:54:55 +01:00
Marco Pesenti Gritti
540cef4b0d Implement modes, some fixes 2007-03-12 14:48:02 +01:00
Marco Pesenti Gritti
a3a6d0cd89 Implement mouse logic 2007-03-12 14:05:50 +01:00
Marco Pesenti Gritti
c4fbb41bcd Complete the key logic 2007-03-12 13:35:07 +01:00
Marco Pesenti Gritti
0984938f95 New animation API. Start rewriting the frame slidein slideout logic.
(Use the keys for now, mouse is not working)
2007-03-12 12:39:29 +01:00
Marco Pesenti Gritti
158d933a10 Complete the UI for the battery 2007-03-12 10:51:48 +01:00
Dan Williams
a1411040f1 Make frame animation faster and smoother 2007-03-11 21:39:00 -04:00
Dan Williams
f5c60b44c1 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-09 15:36:20 -05:00
Marco Pesenti Gritti
cc7ad2d42b Missing imports 2007-03-09 17:43:55 +01:00
Marco Pesenti Gritti
b8cc8ec68f Drop support for running from source dir. As it is now it's just confusing.
Will have to figure out the exact needs and rewrite in a better way.
2007-03-09 17:38:05 +01:00
Marco Pesenti Gritti
6c5d28ecf5 Save also the sugar session display and use it in sugar-activity. 2007-03-09 17:29:03 +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
Dan Williams
f1aa2cf11a Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-09 10:18:37 -05: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
Marco Pesenti Gritti
57c928916c Refactor sugar.env and paths 2007-03-09 14:57:54 +01:00
Marco Pesenti Gritti
a380b7f915 Move data to be relative to the code. 2007-03-09 14:07:17 +01:00
Marco Pesenti Gritti
73c1dbe4a7 CLeanup emulator shutdown 2007-03-09 13:53:26 +01: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