Commit Graph

1469 Commits

Author SHA1 Message Date
Tomeu Vizoso
f9d03b698f Add delete method to the datastore wrapper. 2007-06-22 17:01:13 +02:00
Tomeu Vizoso
c1d4f3ce7a Add keep-in-journal button to the activity toolbar. 2007-06-22 14:11:39 +02:00
Marco Pesenti Gritti
9a77a6e251 Kill old hippo canvas toolbar impl 2007-06-21 22:53:26 +02:00
Marco Pesenti Gritti
c94995148e Refactor translation system a bit 2007-06-21 17:23:32 +02:00
Marco Pesenti Gritti
6f4af67856 Default to the source directory name as bundle name,
allow to override in setup.py.
2007-06-21 14:54:09 +02:00
Marco Pesenti Gritti
3892764634 Add a CanvasEntry which allows to set the background color. 2007-06-21 13:45:35 +02:00
Tomeu Vizoso
427e9a00d7 Add extension to files that come into the clipboard without one. 2007-06-21 13:07:11 +02:00
Eduardo Silva
5616aface3 Toolbutton: don't try to show the palette when it doesn't exist 2007-06-20 20:33:09 -04: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
Marco Pesenti Gritti
61314c9705 Don't make all .py executable please... 2007-06-20 12:31:54 +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
Eduardo Silva
9283a5cc80 Palette: widget and canvas invoker support 2007-06-19 16:02:25 -04:00
Marco Pesenti Gritti
f7b6a0c0af Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-06-19 15:54:05 +02:00
Marco Pesenti Gritti
737a8b3932 Cleanup activity closing 2007-06-19 15:51:56 +02:00
Tomeu Vizoso
99369114cb Set title on change. Fixes #1715. 2007-06-18 20:38:20 +02:00
Marco Pesenti Gritti
3552b92428 Create the locale dir if it does not exist. 2007-06-18 10:05:11 +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
d4323957a1 Change preview image size. 2007-06-17 14:25:13 +02:00
Tomeu Vizoso
f0e18ba785 Support for previews in the journal. 2007-06-15 18:03:17 +02:00
Tomeu Vizoso
6c0885b490 Check type of bundle path by os.path.isdir(). 2007-06-15 16:48:53 +02:00
Tomeu Vizoso
cb9dd212e9 Add to Bundle facilities for dealing with not-yet-installed bundles. 2007-06-15 11:36:08 +02:00
Eduardo Silva
a3fb02bc95 moving graphics/notebook.py to LGPL 2007-06-14 16:04:55 -04:00
Eduardo Silva
72d81af716 moving graphics/palette.py to LGPL 2007-06-14 16:04:25 -04:00
Eduardo Silva
a590186e78 Fix missed objecttype makefile entry 2007-06-13 17:59:31 -04:00
Tomeu Vizoso
8e9c0b640b Change from GPL to LGPL. 2007-06-13 12:21:49 +02:00
Tomeu Vizoso
b320ea36cf Some activity registry fixes. Thanks cjb. 2007-06-13 11:50:05 +02:00
Marco Pesenti Gritti
5cf263537f Put some border around the combo 2007-06-13 00:43:30 +02:00
Marco Pesenti Gritti
f5bb269849 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-06-13 00:37:10 +02:00
Marco Pesenti Gritti
4e8bacc009 Really add it 2007-06-13 00:36:35 +02:00
Marco Pesenti Gritti
9645d31f1b Add a toolcombobox 2007-06-13 00:35:53 +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
29e68376e9 Tell git to ignore sugar/_sugarext.c. 2007-06-10 12:12:47 +02:00
Eduardo Silva
fde3159002 Palette positioning/closing fixes 2007-06-06 17:21:33 -04:00
Eduardo Silva
dee7537462 Palette: speed up 2007-06-06 00:51:01 -04:00
Eduardo Silva
f79d5a63db Palette: tooltip fix 2007-06-05 22:43:42 -04:00
Dan Williams
d849f573c5 Add network.py to makefile 2007-06-05 07:53:07 -04:00
Marc Maurer
88011ed22d Add set_current_toolbar 2007-06-04 23:53:40 +02: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
283a3f4c97 Better snapshot script 2007-06-04 13:09:41 +02:00
Marco Pesenti Gritti
b2980d7bd6 Restore get_id/get_service_name, didn't realize they was used by subclasses. 2007-06-03 22:12:47 +02:00
Eduardo Silva
aab18a866d Palette: Tooltip support 2007-06-02 00:33:41 -04:00
Marco Pesenti Gritti
e707f1b1cc Hrm how my icon name changes did get reverted... 2007-06-01 21:26:18 +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
5cc9a8c424 Bindings to set activity_id and bundle_id hints 2007-06-01 20:38:30 +02:00
Eduardo Silva
0014ea0da0 Palette: Automatic positioning 2007-06-01 00:08:24 -04:00
Marco Pesenti Gritti
fc53bf8667 Support icons inside the activity 2007-05-31 11:30:16 +02:00
Eduardo Silva
dd00dda41f Palette fixes 2007-05-30 13:29:29 -04:00
Tomeu Vizoso
527e22ba5d Get one line back :) 2007-05-29 23:25:47 +02:00
Konrad Kleine
7b4333dc4e Bug 590# fixed (codestyle issues) 2007-05-29 21:29:14 +02:00
Konrad Kleine
76d3e78302 Bug #590 fixed.
All logfiles will be backed up to ~./sugar/default/logs/old .
You can adjust the backup directory and the number of backup
versions.

You can also adjust the file suffix for the backup files.

Konrad Kleine
2007-05-29 21:28:59 +02:00
Eduardo Silva
b1ed24498c Palette: event improves 2007-05-29 12:27:54 -04:00
Tomeu Vizoso
c35db7acf8 Some refactoring of the DataStore API. 2007-05-29 15:53:58 +02:00
Marco Pesenti Gritti
53d64a0536 Use the commit id for the snapshot name 2007-05-29 14:16:49 +02:00
Tomeu Vizoso
8915657a08 Take out one try..except block. 2007-05-28 16:25:36 +02:00
Eduardo Silva
d2aaebac38 Palette updates 2007-05-28 01:05:31 -04: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
Simon McVittie
cb84d5f8fd Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-05-24 19:05:58 +01:00
Simon McVittie
b33dd7cfab sugar.presence.presenceservice: Add get_buddy_by_telepathy_handle() 2007-05-24 19:04:35 +01:00
Marco Pesenti Gritti
46e957ee7d Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-05-24 19:50:33 +02:00
Dan Williams
8b33ad68be re-add network.py; it's deletion was unintentional 2007-05-24 13:57:11 -04:00
Marco Pesenti Gritti
5f912f0330 Avoid to reparse the activity registry on each activity start, hrm! 2007-05-24 19:50:17 +02:00
Eduardo Silva
c40a12a136 New Palette widget 2007-05-24 13:37:48 -04:00
Simon McVittie
2b9cb92953 Revert "sugar.presence.presenceservice: Add get_buddy_by_telepathy_handle()"
This reverts commit c6ac2873c8 because
the necessary API isn't committed in PS yet.
2007-05-24 17:48:43 +01:00
Marco Pesenti Gritti
9786385baa Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-05-24 17:54:15 +02:00
Marco Pesenti Gritti
98c5c0734e Add API to get the mime types 2007-05-24 17:53:57 +02:00
Simon McVittie
677eb1629c Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-05-24 12:26:28 +01:00
Marco Pesenti Gritti
27a3644dab Hook up mime.get_for_file 2007-05-24 12:30:42 +02:00
Marco Pesenti Gritti
2145de1039 Hook up get_from_file_name 2007-05-24 12:08:05 +02:00
Marco Pesenti Gritti
f3d9d5e334 Remove the obsolete p2p code 2007-05-23 12:37:15 +02:00
Marco Pesenti Gritti
c202b6be43 Import xdgmime and start hooking it up 2007-05-23 11:55:21 +02:00
Tomeu Vizoso
ffebebcd7d Set icon size on the combobox. 2007-05-22 18:25:29 +02:00
Tomeu Vizoso
87d59ae13b Avoid crashing in atexit. 2007-05-22 18:24:56 +02:00
Marco Pesenti Gritti
1cb7700136 Rename interface name to org.laptop 2007-05-22 14:49:28 +02:00
Tomeu Vizoso
1dc104126d Adapt to new DataStore API. 2007-05-22 14:03:31 +02:00
Marco Pesenti Gritti
490b939eb9 Import the AddressEntry 2007-05-21 17:53:47 +02:00
Marco Pesenti Gritti
0ddbf7e9ab Add the AddressEntry object to sugar 2007-05-21 17:36:08 +02:00
Marco Pesenti Gritti
d560489d0f Browser leftover 2007-05-21 12:58:05 +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
Simon McVittie
66c5e882f3 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-05-21 11:30:38 +01:00
Simon McVittie
8c8dffe662 Merge commit 'origin' into submit 2007-05-21 11:27:47 +01: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
11c89d86c9 Put dates to work correctly on the journal, create a new journal entry when resuming a past entry. 2007-05-20 12:38:08 +02:00
Tomeu Vizoso
5d4b9b1dfa Set the activity icon on new journal entries. 2007-05-19 20:06:36 +02:00
Tomeu Vizoso
abec4df66e Don't try to display an icon without file name. 2007-05-19 11:19:56 +02:00
Simon McVittie
ccc224e76f sugar.presence.presenceservice: Use absolute imports 2007-05-18 15:33:21 +01:00
Simon McVittie
29cc39968d Don't rely on dbus importing the exceptions module - import it explicitly.
Also divide up imports in a PEP8-compliant way.
2007-05-18 15:31:32 +01:00
Simon McVittie
c6ac2873c8 sugar.presence.presenceservice: Add get_buddy_by_telepathy_handle() 2007-05-18 15:24:58 +01:00
Marco Pesenti Gritti
6c671fb7fe Size the toolbox to 1 grid cell 2007-05-18 14:00:29 +02:00
Marco Pesenti Gritti
b958a515d5 Draw the background of the toolbox hbox 2007-05-18 13:32:50 +02:00
Bert Freudenberg
6dd2f7109c Find executable in bundle (approved by marcopg, fix for #1362) 2007-05-17 13:18:56 +02:00
Simon McVittie
cd0a2b3ecd Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-05-17 11:31:57 +01:00
Tomeu Vizoso
3a1d514e9f Save to the journal when switching to another activity. 2007-05-16 21:30:49 +02:00
Tomeu Vizoso
1d31c51ecc Don't save to the journal on focus-out. 2007-05-16 17:55:56 +02:00
Tomeu Vizoso
7314d5a8c8 Improve logging. 2007-05-16 17:01:59 +02:00
Tomeu
79fdfc5fb7 Don't set_active(0) on realize, as it would trigger 'changed'. 2007-05-16 15:02:41 +02:00
Simon McVittie
531321740c Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
Conflicts:

	services/presence/server_plugin.py
2007-05-16 12:30:49 +01:00
Dan Williams
e659d15384 Make datastore find & update operations async 2007-05-16 00:41:45 -04:00
Simon McVittie
4b26840333 sugar.presence.presenceservice, services/presence: Use named loggers.
This causes events in the log to be annotated with the module that emitted the
message.

Before: DEBUG - root: Starting up...
After: DEBUG - s-p-s.server_plugin: Starting up...

I've used a log domain of "sugar.presence..." for the client library and
e.g. "s-p-s.activity" for the service internals.
2007-05-15 14:58:15 +01:00
Marco Pesenti Gritti
4a8493f95e Fix mozilla components loading when sugar is running from source.
We don't attempt to load components from source, since that would
be insanely complicated.
2007-05-15 11:50:21 +02:00
Marco Pesenti Gritti
9fa0790c2b Do not assume we are packing an ActivityToolbox inside the activity 2007-05-15 11:23:46 +02:00
Marco Pesenti Gritti
141072c9e9 Set a default title for the activity 2007-05-14 19:56:06 +02:00
Marco Pesenti Gritti
820e739a0f Improve the layout of the activity toolbar 2007-05-14 19:27:35 +02:00
Marco Pesenti Gritti
c84e21aa9e Hide the tabs bar when there is only one toolbar.
Fix sugar.Browser
2007-05-14 15:48:36 +02:00
Marco Pesenti Gritti
9e10d15c21 More work on pyxpcom integration 2007-05-13 22:49:27 +02:00
Tomeu
f3289d2e59 Implement setting the journal entry title from the toolbar. 2007-05-13 18:21:35 +02:00
Marco Pesenti Gritti
d8446e25ae Cleanup 2007-05-11 23:11:02 +02:00
Marco Pesenti Gritti
b0c2f0313f Check the grid exists before trying to remove weight when removing items. 2007-05-11 23:10:07 +02:00
Marco Pesenti Gritti
f0e5523cd0 gtk thinks the xo dpi is 200.0 2007-05-11 12:36:07 +02:00
Marco Pesenti Gritti
e5a586fe69 More distcheck fixes 2007-05-11 11:18:17 +02:00
Tomeu Vizoso
133b96b4f0 Typo. 2007-05-10 17:04:40 +02:00
Tomeu Vizoso
d6850279a8 Temporary fix while we stabilize the new datastore. 2007-05-10 14:34:10 +02:00
Tomeu Vizoso
30114f9545 Temporary try..excepts while we stabilize the new datastore. 2007-05-10 14:16:48 +02:00
Tomeu Vizoso
929dabd165 Use the new DataStore and remove the old one. 2007-05-10 11:01:32 +02:00
Marco Pesenti Gritti
ac4338e3c0 Add an ItemInfo object associated with each item.
Remove weight from the grid when removing items.
2007-05-10 10:42:56 +02:00
Eduardo Silva
5d14daf44b Notebook class now use **kwargs to set properties 2007-05-09 14:38:38 -04:00
Simon McVittie
00e8348c73 Set _shared_activity correctly when we share an activity successfully 2007-05-09 16:32:16 +01:00
Simon McVittie
5fc1cdefeb When joining an activity that's already been joined, call a callback which exists 2007-05-09 15:05:17 +01:00
Eduardo Silva
c34a264168 Add some comments in the notebook class 2007-05-08 22:38:56 -04:00
Simon McVittie
0d1b2bef13 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-05-08 17:07:44 +01:00
Simon McVittie
1f024ff6e4 sugar.logger: Use formatters properly when interfacing with logging.
This fixes display of tracebacks in the logs, and adds logger names
2007-05-08 16:24:48 +01:00
Simon McVittie
05d7ed5084 sugar.presence.presenceservice: don't mix up local variable 'activity' and imported module 'activity' 2007-05-08 16:23:07 +01:00
Dan Williams
28637c098e Fix activity creation ID collisions 2007-05-08 11:19:30 -04:00
Dan Williams
1994b5e6a9 Fix file closing 2007-05-08 11:07:27 -04:00
Eduardo Silva
6a685d38b4 Merge branch 'master' of git://dev.laptop.org/sugar 2007-05-08 09:33:58 -04:00
Eduardo Silva
9180388a76 Notebook widget class: new 'can-close-tabs' property 2007-05-08 09:32:32 -04:00
Simon McVittie
60d6dcd618 sugar/logger.py: interpolate %x parameters in messages from the logging framework 2007-05-08 11:49:52 +01:00
Marco Pesenti Gritti
6d5bc75092 Tweak the test to use realistic numbers. Some fixes 2007-05-07 16:59:28 +02:00
Marco Pesenti Gritti
fb019bc9f5 Better spread algorhytm, work in progress 2007-05-07 16:24:41 +02:00
Dan Williams
c89bc07e0b Fix nickname encoding and length issues 2007-05-07 00:18:42 -04:00
Eduardo Silva
110fa5f354 New notebook control 2007-05-06 11:03:43 -04:00
Tomeu Vizoso
a2660195bd Initial support for icon-only combo boxes. 2007-05-05 12:13:23 +02:00
Tomeu Vizoso
50d2b66501 Take out the HAVE_GECKO_1_9 ifdefs, we only support Gecko 1.9 now. 2007-05-04 19:51:15 +02:00
Tomeu Vizoso
bbb96e9c89 Implemented saving web history to the journal. Ifdefed by now while we wait for a patch to be applied to mozilla upstream. 2007-05-04 19:32:25 +02:00
Tomeu Vizoso
54c8c009ef Fixed typo. 2007-05-04 14:47:30 +02:00
Tomeu Vizoso
eff6c1a7c1 Add ToggleToolButton to the Makefile. 2007-05-04 09:56:01 +02:00
Dan Williams
44e8393bde Fix type 2007-05-03 15:06:00 -04:00
Tomeu Vizoso
694e30aa76 Expose the buttons contained by the activity toolbar. 2007-05-03 16:30:32 +02:00
Tomeu Vizoso
1f60139e09 Added WebSession datastore object. 2007-05-03 16:07:19 +02:00
Dan Williams
a5154aa011 Misc fixes; better GlibURLDownloader error handling, fix GlibXMLRPCRequestHandler argument passing 2007-05-03 01:14:39 -04:00
Dan Williams
f0205fde5c Make XMLRPC proxy object callback semantics saner 2007-05-02 23:58:14 -04:00
Dan Williams
7774073276 Make joining asynchronous on the activity side 2007-05-02 23:25:15 -04:00
Dan Williams
3f480c1495 Chunked glib-integrated HTTP server and url downloader classes 2007-05-02 22:23:01 -04:00
Marco Pesenti Gritti
bc4b051af2 Some refactoring to get styles right 2007-05-01 18:26:26 +02:00
Marco Pesenti Gritti
152361c592 Do not fallback to SUGAR_PREFIX for the sugar path. Require SUGAR_PATH. 2007-05-01 16:42:43 +02:00
Marco Pesenti Gritti
f34e5fd36b One cell grid of space at toolbar borders 2007-05-01 13:50:18 +02:00
Marco Pesenti Gritti
c5f7f1d8af Make tabs fixed size 2007-05-01 12:41:22 +02:00
Marco Pesenti Gritti
63f5f55050 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-05-01 12:11:07 +02:00
Marco Pesenti Gritti
b476b13673 Add a set_named_icon method 2007-05-01 11:28:06 +02:00
Dan Williams
570c7e6052 Add buddy ip4-address property (temporary) 2007-04-30 23:44:39 -04:00
Marco Pesenti Gritti
0ebba0d454 Drop the old hippo based toggle 2007-05-01 01:07:08 +02:00
Marco Pesenti Gritti
b8e96d08ae Adjust named icons terminology a bit 2007-05-01 01:03:16 +02:00
Tomeu Vizoso
e78c9d21a9 Added ToggleToolButton control. 2007-04-30 19:00:34 +02:00
Tomeu Vizoso
bb8417f57b Added sugar.activity.activity.EditToolbar. 2007-04-30 18:59:55 +02:00
Marco Pesenti Gritti
8cb5170566 Add missing files 2007-04-30 17:30:55 +02:00
Marco Pesenti Gritti
12192e974f Tweaks for themability 2007-04-30 16:31:30 +02:00
Marco Pesenti Gritti
e936b1e1fc Forgot to add the icon 2007-04-30 14:04:50 +02:00
Marco Pesenti Gritti
afe90d3000 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-04-30 13:43:05 +02:00
Marco Pesenti Gritti
2321c9d5b4 Icon widget 2007-04-30 13:42:45 +02:00
Tomeu Vizoso
d6445af2c8 Add method Toolbox.remove_toolbar(). 2007-04-29 21:11:59 +02:00
Tomeu Vizoso
b097802fe6 Add ComboBox control. 2007-04-29 21:10:58 +02:00
Marco Pesenti Gritti
4ecb7e26f9 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-04-28 01:24:18 +02:00
Marco Pesenti Gritti
7c8ec7a845 Fix height request 2007-04-28 01:15:47 +02:00
Dan Williams
01be59b84f Re-enable activity sharing 2007-04-27 16:07:38 -04:00
Marco Pesenti Gritti
1412b984e0 Finish up deprecations 2007-04-27 12:00:30 +02:00
Marco Pesenti Gritti
b216135ed0 More removal and deprecations 2007-04-27 11:59:02 +02:00
Marco Pesenti Gritti
2baa2881e0 Kill more canvas items 2007-04-27 11:47:02 +02:00
Marco Pesenti Gritti
63f5ca099c Remove the canvas button 2007-04-27 11:45:14 +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
9ccda70199 Refactor the window API a bit to make it more flexible. 2007-04-27 10:51:19 +02:00
Marco Pesenti Gritti
9dcfcf89e9 Close the window when clicking the toolbar button 2007-04-27 01:09:00 +02:00
Marco Pesenti Gritti
c256958a9a Ensure the window is realized before getting his xid 2007-04-27 00:55:23 +02:00
Dan Williams
511c666a4a Fix current activity property; get activities when buddy is created 2007-04-26 16:51:37 -04:00
Marco Pesenti Gritti
2d2e1368fb Add missing files 2007-04-26 12:21:03 +02:00
Marco Pesenti Gritti
e49146752f More work on the new graphics API. 2007-04-26 11:31:41 +02:00
Guillaume Desmottes
a22d8a65f1 Fix logging.warn arguments 2007-04-25 12:47:29 +02:00
Dan Williams
5d11e7fdd9 Convert activity properties to gproperties 2007-04-24 11:49:43 -04:00
Dan Williams
86ab6ca36b Reconnect to the PS if it goes away and comes back 2007-04-23 13:11:21 -04:00
Dan Williams
30a50bd9fc Add test allow_offline_iface to get_instance() 2007-04-23 12:47:50 -04:00
Dan Williams
4ca4e5564e Add test code for Sugar PresenceService bindings 2007-04-23 12:06:41 -04:00
Dan Williams
6513fef6b2 Cleanups; replace ObjectCache with a straight dict; fix signal name; doc cleanups 2007-04-23 10:08:55 -04:00
Mike C. Fletcher
96ab3a10fe More code to handle service-offline cases and log messages to tell the
user/admin what's going on.
2007-04-22 00:31:32 -04:00
Mike C. Fletcher
a7af5b06cd Try to avoid Sugar's shell just crashing and leaving a blank X server
when the PresenceService isn't available on the back-end for whatever
reason, whether mis-configuration, corrupted installation, unexpected
circumstances, or what have you.

This patch makes as few changes as possible to the code,
simply replacing the _ps member with a property that re-attempts
connection on each access until an attempt is successful.
2007-04-22 00:23:19 -04:00
Mike C. Fletcher
df4919de2f Merge branch 'master' of git+ssh://mcfletch@dev.laptop.org/git/sugar 2007-04-21 14:05:08 -04:00
Marco Pesenti Gritti
76e375749a Add more toolbars and a text area 2007-04-20 15:38:34 +02:00
Marco Pesenti Gritti
f6a93fd8e9 Some initial work on graphics2 2007-04-20 14:45:39 +02:00
Tomeu Vizoso
734d16022e Don't try to show the popup of a detached canvas icon. 2007-04-17 16:54:01 -03:00
Guillaume Desmottes
9bc3edabb8 Merge branch 'master' of git+ssh://guillaume@dev.laptop.org/git/sugar 2007-04-16 16:52:16 +02:00
Guillaume Desmottes
a4e18cf9c5 add get_preferred_connection method to PresenceService 2007-04-16 16:41:00 +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
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
Marco Pesenti Gritti
e793614464 Fallback to ltihooks 2007-04-15 15:41:47 +02: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
ba23a6ed3a Add a SUGAR_PATH env to override $prefix/share/sugar 2007-04-15 13:54:53 +02:00
Marco Pesenti Gritti
5a4bf4be6b Some paths tweaks, refactorings to make sugar self contained as much as possible 2007-04-15 13:04:38 +02:00
Marco Pesenti Gritti
d49b0ed6fb Use sys.path.append, not insert 2007-04-15 12:26:50 +02:00
Marco Pesenti Gritti
ee400fa602 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-04-15 11:42:06 +02:00
Marco Pesenti Gritti
c738ac488e Fix SnowflakeBox 2007-04-15 11:39:06 +02:00
Mike C. Fletcher
e571b3bff9 Fix a few syntax errors so that compileall can process the module 2007-04-15 00:35:49 -04:00
Mike C. Fletcher
8635a702c6 Documentation for the activity and buddy presence objects 2007-04-15 00:27:48 -04:00
Mike C. Fletcher
0fc5e67dcc More documentation, mostly for the sugar.presence.presenceservice
module.
2007-04-14 23:38:21 -04:00
Mike C. Fletcher
5efe3ef532 Initial documentation pass for the sugar.clipboard.clipboardservice module. 2007-04-14 02:00:51 -04:00
Mike C. Fletcher
2ca12e9da2 Overall roles and operation of the activity classes.
Note on return value for factory service.
2007-04-14 01:17:59 -04:00
Dan Williams
99737f8273 Clear share signal ID after disconnecting it 2007-04-13 16:58:32 -04:00
Dan Williams
3abe79353a Asynchronize activity sharing on the client side 2007-04-13 16:27:58 -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
c74a629080 Revert "Merge type definitions from the old registry."
This reverts commit 57e9789b8a.
2007-04-11 18:22:30 +02:00
Marco Pesenti Gritti
57e9789b8a Merge type definitions from the old registry. 2007-04-11 16:33:13 +02:00
Marco Pesenti Gritti
fcb57779a2 Start reworking the cliboard services to use the types registry. 2007-04-11 16:14:58 +02:00
Marco Pesenti Gritti
73f2577397 First go at the new type registry. 2007-04-11 14:06:27 +02:00
Dan Williams
defd9f76e3 Convert icon data to python string before exposing it 2007-04-10 22:24:31 -04:00
Dan Williams
bf4b1a3f8f Fix icon changed signal handling in sugar PS bindings 2007-04-10 15:23:01 -04:00
Dan Williams
eee98e1f82 Re-enable new PresenceService by default 2007-04-10 14:49:14 -04:00
Dan Williams
a07e946cc4 Readd mock presence service and enable it by default 2007-04-10 08:39:02 -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
76a0f45aa8 More new PS fixes 2007-04-09 16:05:32 -04:00
Dan Williams
4cf8f321f0 Fix activity ID generation logic 2007-04-09 15:08:04 -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
Marco Pesenti Gritti
3da95e9236 Really commit this, stupid git. 2007-04-07 15:44:48 +02:00
Marco Pesenti Gritti
5343752c35 Make browser a modules inside sugar library 2007-04-07 13:17:36 +02:00
Marco Pesenti Gritti
4828870afd Use gtk to detect dpi. 2007-04-07 03:42:51 +02:00
Marco Pesenti Gritti
c9c1117872 Remove the threadframe stuff which went unused. 2007-04-06 20:13:37 +02: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
Tomeu Vizoso
2e73999004 Relativize bubble radius to screen proportions. 2007-03-28 20:23:51 +02:00
Tomeu Vizoso
a6c1ef6080 Popup/popdown fixes. 2007-03-28 19:34:11 +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
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
b5e4aa43a9 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-26 12:42:17 +02:00
Marco Pesenti Gritti
7267047ce6 Strip the MANIFEST lines 2007-03-26 12:38:34 +02:00
Tomeu Vizoso
ad23ceac8d Fix last fix. 2007-03-25 19:34:11 +02:00
Tomeu Vizoso
318439ab27 Fix for #1157. Thanks to leejc. 2007-03-25 11:42:26 +02:00
Tomeu Vizoso
01edb130c1 Compile and include .mo in ./setup.py dist. 2007-03-23 20:13:41 +01:00
Marco Pesenti Gritti
aa8debb4cb Fix up translations support 2007-03-23 18:18:42 +01:00
Marco Pesenti Gritti
e25c95ebaf My brain is dead, it really is. Actually setup gettext on the server... 2007-03-23 17:57:36 +01:00
Marco Pesenti Gritti
dd6b0c0b7e Remove debug code 2007-03-23 17:46:55 +01:00
Marco Pesenti Gritti
6352ea9e20 Unused 2007-03-23 17:45:48 +01:00
Marco Pesenti Gritti
ba242f34b7 Fix locale path handling 2007-03-23 17:43:40 +01:00
Marco Pesenti Gritti
ca9199e994 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-23 17:27:47 +01:00
Marco Pesenti Gritti
d17e733677 Add support to read linfo.
Refactor locale to actually use gettext.
2007-03-23 17:27:31 +01:00
Tomeu Vizoso
5881121ad4 Added operations genpot and genmo to bundlebuilder.py for localization. 2007-03-23 15:26:37 +01: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
Tomeu Vizoso
c820ca1aa6 First step at activities localization. 2007-03-23 10:35:48 +01:00
Marco Pesenti Gritti
9af06c0b26 Add a script to start sugar. Move the gtkrc to avoid conflicts when
installing on a complete system.
2007-03-22 20:34:07 +01:00
Marco Pesenti Gritti
0dfec679d7 Don't prelight when toggled 2007-03-21 17:21:52 +01:00
Marco Pesenti Gritti
261a7e743f Emit the activated signal also on toggles 2007-03-21 00:04:04 +01:00
Tomeu Vizoso
ed99a8bbff Style fixes for the menu. 2007-03-20 12:55:42 +01:00
Tomeu Vizoso
8a02afb408 Style fixes for the toolbar. 2007-03-20 12:01:01 +01:00
Marco Pesenti Gritti
96243824bb Remove our own sizing 2007-03-19 15:20:44 +01:00
Marco Pesenti Gritti
08b378e5f8 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-19 15:19:56 +01:00
Tomeu Vizoso
07b8cad5b9 Set the DPI on activity startup. In the future we should have a xsetting for this. 2007-03-19 14:24:35 +01:00
Marco Pesenti Gritti
154a0e91ff Create ~/Activities only when necessary 2007-03-18 13:48:34 +01:00
Marco Pesenti Gritti
c9f28b7317 Rework the emulator. Move matchbox in the shell. 2007-03-16 18:12:47 +01:00
Tomeu Vizoso
7beb2b24ac Use Animation for popdown. 2007-03-16 14:29:39 +01:00
Tomeu Vizoso
84dcb022cb Don't popdown the same control we are told to popup. 2007-03-16 14:28:25 +01:00
Tomeu Vizoso
8a88de864b Fix tooltip popup. 2007-03-16 12:20:03 +01:00
Marco Pesenti Gritti
71b0a5dc56 Actually pass buttons to the gtk file picker 2007-03-16 10:48:40 +01:00
Dan Williams
d0c5050a25 Randomize color list so it can be indexed into with a hashed value 2007-03-15 22:02:41 -04:00
Dan Williams
4371fb0883 Update another get_width_request() for new hippo 2007-03-15 16:56:29 -04:00
Tomeu Vizoso
d001c70443 Tweaked sizes of home xo icon, donut radius and device icons. 2007-03-15 19:19:38 +01:00
Marco Pesenti Gritti
9f5d642591 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-15 17:10:27 +01:00
Marco Pesenti Gritti
fbeaf5fb66 Add a filechooser subclass which sizes correctly on the OLPC.
This is temporary, gtk needs to be fixed.
2007-03-15 17:10:12 +01:00
Dan Williams
a83211dbb9 Fix tracebacks in snowflakeboxes 2007-03-15 11:21:35 -04:00
Tomeu Vizoso
4fbfd1625c Make create_activity_id() a public function. 2007-03-15 12:47:10 +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
Marco Pesenti Gritti
4960ddae25 Adapt to the new hippo canvas sizing API 2007-03-14 03:19:24 +01:00
Dan Williams
c58bb3549f Ensure animations reach last frame 2007-03-13 08:19:50 -04:00
Marco Pesenti Gritti
ac8805246d Actually use EASE_OUT by default, add EASE_IN.
Thanks to Dan to point this out.
2007-03-13 00:25:41 +01:00
Dan Williams
78fef2a48e Implement set_title 2007-03-12 16:52:11 -04:00
Marco Pesenti Gritti
d389933b77 Remove the old timeline 2007-03-12 18:13:01 +01:00
Marco Pesenti Gritti
d91c7a90e4 Rework the popup animation to use the new API 2007-03-12 17:47: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
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
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
Marco Pesenti Gritti
1587218e9e Remove unused files 2007-03-09 15:07:08 +01:00
Marco Pesenti Gritti
8a98cdc6e0 Fix matchbox invocation 2007-03-09 14:59:47 +01:00
Marco Pesenti Gritti
57c928916c Refactor sugar.env and paths 2007-03-09 14:57:54 +01:00
Marco Pesenti Gritti
73c1dbe4a7 CLeanup emulator shutdown 2007-03-09 13:53:26 +01:00
Marco Pesenti Gritti
6afd512d55 Cleanup kbd config passing 2007-03-09 13:47:17 +01:00
Marco Pesenti Gritti
c255a7b544 Remove unused var 2007-03-09 13:28:00 +01:00
Marco Pesenti Gritti
66e341c58e Use button_press virtual method instead of the connect_after hacks. 2007-03-09 13:12:52 +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
Marco Pesenti Gritti
810bea6772 Remove unused var 2007-03-09 12:08:10 +01:00
Marco Pesenti Gritti
cda47a41f4 Implement ToggleIconButton 2007-03-09 11:22:51 +01:00
Marco Pesenti Gritti
ce6d21075f Simplified logic using a grid. It looks ugly but we don't care right now. 2007-03-07 12:11:14 +01:00
Marco Pesenti Gritti
dacf05fcd9 Intialize the service to None, we are freeing it later. 2007-03-07 10:59:48 +01:00
Owen Williams
2c7a22b157 Fix bug for activities with spaces in the name 2007-03-06 08:01:46 -05:00
John (J5) Palmieri
b21f1a3b80 workaround to fix blocking when launching activities
* set follow_name_owner_changes to true when creating a proxy for an activity
  which causes proxies to be late bound and not make a blocking call to
  start a service
2007-03-05 16:14:11 -05:00
Marco Pesenti Gritti
d06c1af638 Tweak menu layout 2007-03-05 13:34:31 +01:00
Marco Pesenti Gritti
5cc06cb5eb Tweak optionmenu and entry paddings 2007-03-05 12:43:32 +01:00
Marco Pesenti Gritti
5ae521be77 Fix aligment of menu icons 2007-03-05 12:29:52 +01:00
Tomeu Vizoso
4b1ca7056e Make action-id in MenuItem be object, not int. 2007-03-04 19:49:03 +01:00
Tomeu Vizoso
a585221b16 Added object update to the datastore. 2007-03-04 11:27:33 +01:00
Tomeu Vizoso
d027761209 Added create_with_object_id() func. 2007-03-02 22:22:19 +01:00
Marco Pesenti Gritti
8763d9d5e2 Typo 2007-03-02 22:22:20 +01:00