Commit Graph

1324 Commits

Author SHA1 Message Date
Marco Pesenti Gritti
daa95aadd7 Place palettes at cursor for free views. 2007-07-18 16:59:47 +02:00
Dan Williams
c16c07e954 Keep owner in the center in mesh view 2007-07-18 02:05:09 -04:00
Dan Williams
326126cbd7 Suppress annoying warnings about unknown activities from the PS 2007-07-18 02:04:01 -04:00
Marco Pesenti Gritti
e781da2336 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-07-17 19:04:06 +02:00
Marco Pesenti Gritti
5e655deb5a Eben specification and the new B3 keyboard (marco) 2007-07-17 19:03:52 +02:00
Bert Freudenberg
b87b375bf7 make set_active() asynchronous (fix for 2230) 2007-07-17 07:34:03 +02:00
Tomeu Vizoso
501022c88d #775 Show the activity's creator colors in the donut. (Patch from Dan Winship) 2007-07-15 12:51:06 +02:00
Marco Pesenti Gritti
66ea9997cb Do not shutdown on power button. 2007-07-15 02:14:00 +02:00
Tomeu Vizoso
1d2f84d0af #1888 Choose the correct mime type when adding text from Write to the clipboard. 2007-07-14 13:53:49 +02:00
Tomeu Vizoso
614d9336cc #2149, #2150: fixes for the clipboard palette. 2007-07-14 13:11:59 +02:00
Marco Pesenti Gritti
fcb888b74c Arrow icons in the intro screen buttons. 2007-07-14 10:29:45 +02:00
Marco Pesenti Gritti
b01dbc5e75 Integrate new colors from Walter.
Add a little parser to xocolor.py.
2007-07-11 14:15:58 +02:00
Marco Pesenti Gritti
a61d2c2542 Make the color picker just use XoColor dict, that's what I got from Walter anyway. 2007-07-11 12:50:57 +02:00
Marco Pesenti Gritti
85cac7c071 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-07-11 12:35:34 +02:00
Tomeu Vizoso
0c1a017932 #1720 nmclient.Device was not returning the ssid of the active network. 2007-07-11 12:40:23 +02:00
Marco Pesenti Gritti
d59cd5af83 Fix intro colors 2007-07-11 12:35:13 +02:00
Marco Pesenti Gritti
dde018a63e Implement nick name validation 2007-07-11 12:20:36 +02:00
Marco Pesenti Gritti
d2059c1baa Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-07-11 11:45:43 +02:00
Marco Pesenti Gritti
9dab5fffaf First go at the new intro screen, work in progress. 2007-07-11 11:45:27 +02:00
Tomeu Vizoso
bb71cd61cf #1888 Fix opening items from the clipboard. 2007-07-11 11:39:40 +02:00
Tomeu Vizoso
e4bce9271a #1984 Fix removing items from the clipboard. 2007-07-10 20:35:51 +02:00
Marco Pesenti Gritti
c3c0810def Implement tooltips for the zoom levels. 2007-07-10 15:37:04 +02:00
Marco Pesenti Gritti
6a49f11d5e Fix broken import 2007-07-10 13:31:58 +02:00
Marco Pesenti Gritti
dae54f34ae Do not fail if cannot access the HAL battery properties. 2007-07-10 12:35:00 +02:00
Tomeu Vizoso
7900e6c486 #1720: Show the owner's buddy menu in the Groups view. 2007-07-09 22:22:41 +02:00
Tomeu Vizoso
f0c8fe19fe #1953: Retrieve friends' nicks from the profile. 2007-07-09 21:34:28 +02:00
Tomeu Vizoso
ecca1dca00 Add caching to the activity and object type registries. 2007-07-09 20:14:24 +02:00
Eduardo Silva
aa6a024368 Move code to use style instead font.py (removed) 2007-07-09 10:09:24 -04:00
Dan Williams
68e40429fb Ignore errors when trying to display buddy pictures 2007-07-07 20:41:58 -04:00
Eduardo Silva
6ee5fca9f9 Fix battery var II, thanks to RWH 2007-07-06 16:41:14 -04:00
Eduardo Silva
9d860bd5b1 Fix battery var, thanks to RWH 2007-07-06 16:26:59 -04:00
Tomeu Vizoso
b4c8ac13f3 Some clipboard fixes. 2007-07-06 18:24:23 +02:00
Eduardo Silva
3680dcdaa9 Push frameinvoker.py 2007-07-06 11:27:19 -04:00
Eduardo Silva
ec929eb0ad New frameinvoker 2007-07-06 10:51:18 -04:00
Marco Pesenti Gritti
922456e4d5 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-07-06 14:37:23 +02:00
Marco Pesenti Gritti
7468faa840 Implement palette groups. Use them to not popdown frame when hover a palette. 2007-07-06 14:36:59 +02:00
Eduardo Silva
27adefdcd2 Refactor battery palette methods 2007-07-06 07:38:59 -04:00
Marco Pesenti Gritti
a1b6625a6a Fix some style nitpicks 2007-07-06 03:48:03 +02:00
Eduardo Silva
05379e85c1 Battery palette 2007-07-05 21:46:48 -04:00
Marco Pesenti Gritti
4024ef1d0b Use a custom layout to center the icon 2007-07-06 01:14:52 +02:00
Marco Pesenti Gritti
f1ecb99207 Complete transition to new spread layout. 2007-07-06 00:46:12 +02:00
Marco Pesenti Gritti
290a053892 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-07-05 21:24:50 +02:00
Marco Pesenti Gritti
61b8811a42 Switch to the new layout manager for the mesh view 2007-07-05 21:22:37 +02:00
Eduardo Silva
90b469e6db Add icon to buddy menu items 2007-07-05 10:56:17 -04:00
Marco Pesenti Gritti
20ea0d7bcc Add a spread layout manager. Work in progress. 2007-07-05 13:33:29 +02:00
Marco Pesenti Gritti
91654729bf Refactor the snowflake layout to use the new hippo layout managers.
Cleanup the logic.
Better test.
Make it internal.
2007-07-05 11:22:09 +02:00
Tomeu Vizoso
2164f22197 Show generic icon for objects of unknown type. 2007-07-04 20:24:35 +02:00
Tomeu Vizoso
49b94a7f28 Revert "Hide active palette if zoom level changes."
Pushed by mistake.

This reverts commit 70e6d08f8d.
2007-07-04 12:49:21 +02:00
Tomeu Vizoso
70e6d08f8d Hide active palette if zoom level changes. 2007-07-04 12:33:12 +02:00
Marco Pesenti Gritti
1796cbc0c7 Remove print 2007-07-04 11:24:06 +02:00
Marco Pesenti Gritti
ab370bd04e Make the battery device use HAL 2007-07-04 11:12:22 +02:00
Tomeu Vizoso
cc2b8884c0 Be smarter when choosing one mime type from the targets offered. 2007-07-03 22:42:17 +02:00
Marco Pesenti Gritti
ddecddcb42 Remove unused methods from the activity services. Cleanups. 2007-07-03 20:55:46 +02:00
Tomeu Vizoso
6b90f192a2 Remove framepopupcontext.py. 2007-07-02 19:36:54 +02:00
Tomeu Vizoso
7191f44ff1 Add tooltips to the mesh icon in the mesh view. 2007-07-02 19:35:34 +02:00
Tomeu Vizoso
fdc97518f7 Add tooltips to APs in the mesh view. 2007-07-02 19:34:03 +02:00
Tomeu Vizoso
c314368da5 Add tooltips to APs in the mesh view. 2007-07-02 19:30:17 +02:00
Tomeu Vizoso
8849e289ba Add tooltips to activities icons in the mesh view. 2007-07-02 19:16:52 +02:00
Marco Pesenti Gritti
ebcd104448 Restore some code which tomeu seem to have dropped by mistake. 2007-07-02 15:55:30 +02:00
Marco Pesenti Gritti
71ca9cb8bc Cleanups 2007-07-02 15:49:29 +02:00
Marco Pesenti Gritti
778e65f610 Notify zoom level change 2007-07-02 15:00:55 +02:00
Marco Pesenti Gritti
41af921826 Cleanup zoom level management 2007-07-02 14:53:50 +02:00
Marco Pesenti Gritti
7024f93a43 Move the zoom levels inside the model 2007-07-02 14:34:41 +02:00
Marco Pesenti Gritti
42e67edab2 Evil tricks to not always show the XO palette at startup. 2007-07-02 12:00:05 +02:00
Tomeu Vizoso
11ac82143a Corrected some formatting issues with imports. 2007-07-02 10:21:58 +02:00
Tomeu Vizoso
4aee850af7 Replace Menu for Palette. 2007-07-01 12:55:10 +02:00
Tomeu Vizoso
e9145f0724 Fix typo. 2007-07-01 11:54:20 +02:00
Tomeu Vizoso
84c94ecabe Restrict palette positioning to screen height/width - 1 grid cell. 2007-07-01 11:25:35 +02:00
Marco Pesenti Gritti
1d4112a882 Set glib program name and application name.
Better way of importing ltihooks.
Several cleanups.
2007-06-29 22:11:28 +02:00
Marco Pesenti Gritti
d7a8c5430e Make notification work from outside the shell process 2007-06-29 19:05:10 +02:00
Marco Pesenti Gritti
64812c7d67 Pass in shell to the service not just model 2007-06-29 18:31:35 +02:00
Owen Williams
500f5d8093 Fix for 1846. Strip whitespace from nicks and reject if blank 2007-06-29 11:08:06 -04:00
Marco Pesenti Gritti
84127380dc Get rid of bitrotten shutdown stuff 2007-06-26 15:09:03 +02:00
Marco Pesenti Gritti
3eaeebc60e Lots of palette refactoring. 2007-06-26 14:55:16 +02:00
Marco Pesenti Gritti
f85142bdc4 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
Conflicts:

	shell/view/home/HomeBox.py
2007-06-25 14:33:54 +02:00
Marco Pesenti Gritti
e0793ef199 Heavy refactoring of palette activation. Not fully
implemented yet.
2007-06-25 14:31:43 +02:00
Tomeu Vizoso
0baac89a61 Use gtk progress bar. 2007-06-25 12:49:53 +02:00
Tomeu Vizoso
811a7d8411 Implement shutdown. 2007-06-25 12:48:21 +02:00
Marco Pesenti Gritti
d92bb7a4ef Some palette code cleanups. 2007-06-25 11:39:51 +02:00
Marco Pesenti Gritti
e3e69f42a2 Add a bunch of GPL headers 2007-06-24 15:01:30 +02:00
Marco Pesenti Gritti
8505a18652 Fix copyright year 2007-06-24 14:45:05 +02:00
Tomeu Vizoso
dfd16d155a Add palette to XO icon in Home View. 2007-06-24 14:37:53 +02:00
Tomeu Vizoso
4c24cde923 Added/corrected some license headers. 2007-06-24 13:10:53 +02:00
Tomeu Vizoso
6af3c44893 Use xo colors in clipboard icons. 2007-06-23 20:07:25 +02:00
Tomeu Vizoso
c3da64561f Move stock-save to document-save. 2007-06-22 14:08:14 +02:00
Tomeu Vizoso
427e9a00d7 Add extension to files that come into the clipboard without one. 2007-06-21 13:07:11 +02:00
Marco Pesenti Gritti
c91bbd18cc Move SugarKeyGrabber in the lib. Keep it private.
We can't install libraries in datadir.
2007-06-20 15:22:12 +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
Tomeu Vizoso
1afe9273a1 Add an option for saving clipboard objects to the Journal. 2007-06-17 20:55:16 +02:00
Tomeu Vizoso
130f59efdc Clipboard fixes. 2007-06-17 14:24:46 +02:00
Tomeu Vizoso
f0e18ba785 Support for previews in the journal. 2007-06-15 18:03:17 +02:00
Marco Pesenti Gritti
a1e3dbaf9e Adapt to hwmanager api change 2007-06-14 17:27:24 +02:00
Marco Pesenti Gritti
0bb8704683 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-06-14 17:25:44 +02:00
Bernardo Innocenti
5c884c1435 unfreeze DCON when Sugar UI is (almost) ready to show
Marco Pesenti Gritti wrote:

> we need to get the hardware-manager part of this in before, otherwise we
> will traceback on startup.

Sorry, I sent the patches in reverse order.  Did you get
the next one?

>> +        # Unfreeze the display when it's stable
>> +        get_hardware_manager().set_dcon_freeze(0)
>> +
>
> Is this actually working? You need something like:
>
> from hardware import hardwaremanager
> ....

Oh, and actually I had that part too, but I've lost this hunk
while copying them to the sandbox.  That's what you get for
editing code right on the target.

Updated patch attached.

From b7bfbb7cc628afe29734557f56d92044d2d336d4 Mon Sep 17 00:00:00 2001
From: Bernardo Innocenti <bernie@codewiz.org>
Date: Wed, 13 Jun 2007 19:56:22 -0400
Subject: [PATCH] unfreeze DCON when Sugar UI is (almost) ready to show
Organization: One Laptop Per Child

This is part of a masterplan to implement #621 .
2007-06-14 17:25:28 +02:00
Tomeu Vizoso
42e2b95379 Misc dnd fixes. 2007-06-14 12:27:46 +02:00
Marco Pesenti Gritti
361b8372b6 s/get_hardware_manager/get_manager.
It was redundant.
2007-06-14 10:25:58 +02:00
Marco Pesenti Gritti
d3e8ddb278 Mute the channel when setting the volume to minimum. 2007-06-13 16:32:26 +02:00
Marco Pesenti Gritti
42385b069f Set volume directly from python (requires gst-python).
Cleanups.
2007-06-13 16:22:49 +02:00
Marco Pesenti Gritti
705eb8119a Always show frame on the homepage even when activating from the frame. 2007-06-13 14:39:16 +02:00
Tomeu Vizoso
22689ed1da Several fixes for the object type registry and the activity registry. 2007-06-12 21:57:49 +02:00
Tomeu Vizoso
7e8160871a Fix typo. 2007-06-12 12:40:54 +02:00
Tomeu Vizoso
c9cd87b142 Percent should be 100% only when we have already added all the targets. 2007-06-07 19:49:17 +01:00
Tomeu Vizoso
340fcc271d set_state() could be called when there are still no formats. 2007-06-07 12:07:25 +01:00
Tomeu Vizoso
a9600516fb Take screenshot and save it to the journal (<alt>1). 2007-06-04 18:35:05 +01: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
f98cebd13a Cleanups 2007-05-27 21:16:37 +02:00
Marco Pesenti Gritti
11437e3484 Add mime matching to the registry. 2007-05-27 20:43:31 +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
Marco Pesenti Gritti
0ddbf7e9ab Add the AddressEntry object to sugar 2007-05-21 17:36:08 +02:00
Marco Pesenti Gritti
17b3142776 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
Conflicts:

	configure.ac
2007-05-21 12:47:28 +02:00
Marco Pesenti Gritti
42f7eeedc8 Drop the browser stuff, it will be replaced by hulahop. 2007-05-21 11:06:52 +02:00
Tomeu Vizoso
04fc7047c2 Don't autolaunch downloaded docs, this will be done from the Web activity. 2007-05-20 12:36:55 +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
b99e149d23 Fix Friends view buddy removal 2007-05-14 13:04:59 -04:00
Dan Williams
02c99e2a0c Handle buddy nick changes 2007-05-14 01:21:22 -04:00
Tomeu
f3289d2e59 Implement setting the journal entry title from the toolbar. 2007-05-13 18:21:35 +02:00
Marco Pesenti Gritti
d319ac192d Use sugar theme for matchbox 2007-05-11 20:31:44 +02:00
Marco Pesenti Gritti
0087f41fb4 Remove obsolete files 2007-05-11 11:19:03 +02:00
Marco Pesenti Gritti
e5a586fe69 More distcheck fixes 2007-05-11 11:18:17 +02:00
Marco Pesenti Gritti
85a4c4adb3 More distcheck fixes 2007-05-10 19:16:27 +02:00
Marco Pesenti Gritti
cb1119a647 Fix several distcheck issues 2007-05-10 18:55:29 +02:00
Dan Williams
c89bc07e0b Fix nickname encoding and length issues 2007-05-07 00:18:42 -04:00
Tomeu Vizoso
7fbcf08242 Fix for Python 2.4 compatibility. 2007-05-05 10:59:21 +02:00
Tomeu Vizoso
0573e56d2c Use standard icon name. 2007-05-05 10:58:55 +02: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
e392680f3e Log activity launch failures with error info; fix typo 2007-05-02 22:31:26 -04:00
Dan Williams
e4be6fc1ba Fix ps buddy object usage 2007-05-02 22:30:59 -04:00
Dan Williams
587bc3be19 More verbose debug messages when starting activities 2007-05-02 22:22:02 -04:00
Dan Williams
65998a10c6 Use bundle registry correctly 2007-05-02 22:21:15 -04:00
Dan Williams
3502c58c47 Remove unused import 2007-05-02 22:19:58 -04:00
Marco Pesenti Gritti
bc4b051af2 Some refactoring to get styles right 2007-05-01 18:26:26 +02:00
Tomeu Vizoso
b4f2016844 Launch the journal activity on startup again. 2007-04-29 21:12:35 +02:00
Dan Williams
d5d9c1fa0f Fix activity join from mesh view 2007-04-27 17:48:35 -04:00
Dan Williams
e785bbe2a7 Turn off wifi new AP log messages 2007-04-27 13:08:40 -04:00
Dan Williams
16162f74ff Fix shell for sugar.presence.activity API changes 2007-04-27 12:56:13 -04:00
Marco Pesenti Gritti
a9f26a1faa Use the gtk entry 2007-04-27 12:05:17 +02:00
Marco Pesenti Gritti
4346a50e6f Remove all the bubbles from the public API, yay ;) 2007-04-27 11:43:40 +02:00
Marco Pesenti Gritti
46d3c1b9c9 Get rid of the activity menu. 2007-04-27 11:33:18 +02:00
Marco Pesenti Gritti
9ccda70199 Refactor the window API a bit to make it more flexible. 2007-04-27 10:51:19 +02:00
Marco Pesenti Gritti
e49146752f More work on the new graphics API. 2007-04-26 11:31:41 +02:00
Guillaume Desmottes
83b712bcb1 Fix properties bugs 2007-04-25 19:35:08 +02:00
Tomeu Vizoso
ec8bb21936 Implement installation of downloaded activities. 2007-04-20 20:12:49 +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
Tomeu Vizoso
d223579f22 Recognize images dropped into the clipboard as such. 2007-04-18 18:52:46 -03:00
Tomeu Vizoso
b7030a74dd Drag images out of mozilla. 2007-04-17 16:53:34 -03:00
Marco Pesenti Gritti
92416d1519 Fix typo in the fallback code path 2007-04-17 18:17:26 +02:00
Marco Pesenti Gritti
231ea23981 Fix includes 2007-04-16 18:07:52 +02:00
Marco Pesenti Gritti
f67a243653 Get rid of the notebook which was causing strange flickering. 2007-04-16 12:26:17 +02:00
Marco Pesenti Gritti
1b84784d26 Fix initial scale 2007-04-16 12:01:35 +02:00
Marco Pesenti Gritti
9ffd050302 Update the makefile 2007-04-16 11:40:56 +02:00
Marco Pesenti Gritti
f55a19b73c Implement the transition between zoom view. 2007-04-16 11:40:28 +02:00
Marco Pesenti Gritti
5bfc64d9be Always center the owner in the home views 2007-04-16 10:36:15 +02:00
Dan Williams
b2e0f257ce Fix buddy icon rollovers; wasn't getting activity ID correctly from HomeActivity object 2007-04-15 16:51:01 -04:00
Marco Pesenti Gritti
218f9e10ae Load the modules from .la if the normal import fails 2007-04-15 15:06:04 +02:00
Marco Pesenti Gritti
2910d23716 Delay importing the sugar module 2007-04-15 14:49:24 +02:00
Marco Pesenti Gritti
f78b23cf82 Fix messed up paths 2007-04-15 12:16:06 +02:00
Dan Williams
66bbe56df9 Ignore reply from share() (hack to quiet traceback, but unused anyway) 2007-04-13 16:58:12 -04:00
Dan Williams
559c75a317 Fix friending somebody for real this time 2007-04-13 14:20:05 -04:00
Dan Williams
982c112155 Make debugging tp-gabble easier
When the environment variable TP_DEBUG is set, the sugar shell
will print out the session bus address it's using, then poll that bus
every 5 seconds waiting for a gabble instance to appear.  This allows
you to launch gabble in another window for debugging with LM_DEBUG and
gdb, which wasn't possible before because the sugar emulator uses
a custom session bus.
2007-04-13 13:46:07 -04:00
Dan Williams
924650750e Re-enable the Share action in the frame 2007-04-12 14:44:38 -04:00
Dan Williams
894fcea9fc Remove get_default_type() and bundle default types; obsolete 2007-04-11 15:08:40 -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
defd9f76e3 Convert icon data to python string before exposing it 2007-04-10 22:24:31 -04:00
Dan Williams
117934f709 Fix making someone your friend 2007-04-10 22:22:58 -04:00
Dan Williams
c85985b55b Deal with no NetworkManager 2007-04-10 21:06:29 -04:00
Marco Pesenti Gritti
8c391386d7 Fix the buddy picture 2007-04-10 22:45:36 +02:00
Dan Williams
6710618a43 Use public keys rather than nicknames to differentiate buddies 2007-04-10 15:55:55 -04:00
Dan Williams
89ec9195e9 Fix for GObject-based PS buddy objects 2007-04-10 14:56:34 -04:00
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
Marco Pesenti Gritti
8ddaa516b3 Add a default picture, so that we don't force people to find one.
Implementation is ugly but the cleanest I could come with :(
2007-03-08 01:33:55 +01: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
44f00a9cd8 Fix traceback due to bad merge 2007-03-07 16:24:21 -05:00
Dan Williams
a2bd1194f3 Work around bus-python bug with named exceptions 2007-03-07 16:23:52 -05:00
Dan Williams
11320e8883 Ensure entry can accept input 2007-03-07 16:23:33 -05: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
Owen Williams
195e18d7b0 Merge branch 'master' of git+ssh://ywwg@dev.laptop.org/git/sugar 2007-03-05 21:24:59 -05:00
Owen Williams
3d32c9aaa6 Fix corner and edge frame activation 2007-03-05 21:24:42 -05:00
Marco Pesenti Gritti
1992a8a2d8 Disable journal automatic startup for now 2007-03-06 03:03:28 +01:00
John (J5) Palmieri
05081b3fa5 use hal to detect the presence of a v4l device
* right now we check for anything with the capability of 'video4linux' and
  for info.linux.driver = 'cafe1000-ccic' which is the olpc's webcam
2007-03-05 16:10:14 -05:00
Marco Pesenti Gritti
e62fcbd296 Call remove access point with the right signature 2007-03-05 20:32:39 +01:00
Marco Pesenti Gritti
4d0c540f85 Fix bw/color switch. Patch by Owen Williams. 2007-03-04 00:54:50 +01:00
Marco Pesenti Gritti
b4836718de Fix signal signature 2007-03-03 21:25:34 +01:00
Marco Pesenti Gritti
921bccd48c Tweak video size. People report it's too big on the olpc too.
Dan feel free to tweak this, I'm changing it to get a functional
build in for tonight compose.
2007-03-02 21:02:18 +01:00
Marco Pesenti Gritti
69f8d84663 Make video size resolution dependent at least in the emulator. 2007-03-02 20:39:29 +01:00
Marco Pesenti Gritti
7b89672604 Catch GetActiveNetwork exceptions.
Listen for activation failures.
2007-03-02 16:45:09 +01:00
Marco Pesenti Gritti
d748682ef7 Handle the case where we get an Activating event
but we don't have an active device yet.
2007-03-02 15:56:06 +01:00
Marco Pesenti Gritti
baad778406 Improve logging 2007-03-02 15:11:59 +01:00
Dan Williams
48e9887d92 Fix key release in keyhandler 2007-02-28 15:49:33 -05:00
Dan Williams
9333af3d07 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-02-28 15:48:48 -05:00