Commit Graph

232 Commits

Author SHA1 Message Date
Marco Pesenti Gritti
e2439a7e44 Turn bundle into a new style class 2008-10-20 17:31:58 +02:00
Marco Pesenti Gritti
794281073b Make sure the mouse motion is stopped before starting it. 2008-10-18 16:39:12 +02:00
Tomeu Vizoso
f5d45d6acd Make sure that manifests in bundles are only called at install and deployment time, so it doesnt impact shell startup performance 2008-10-17 15:29:35 +02:00
Tomeu Vizoso
a13ca6d664 #8840 Add missing byte_arrays=True 2008-10-16 20:41:45 +02:00
Simon Schampijer
6013b8a20a Fix for old profile conversion 2008-10-13 16:53:30 +02:00
Simon Schampijer
354dec9f0c Use gconf for the profile 2008-10-11 18:28:40 +02:00
Tomeu Vizoso
bcc24a43e7 Move to cjson and drop pyjson and simplejson 2008-10-08 17:30:08 +02:00
Marco Pesenti Gritti
f5f26d59c4 Remove unused imports. 2008-10-06 16:38:25 +02:00
Marco Pesenti Gritti
5c6c7ab1d1 The activity registry is now private to the shell.
Changed the activityfactory to take a bundle instead of a bundle_id
so that it doesn't depend on the registry.
2008-10-06 15:54:46 +02:00
Marco Pesenti Gritti
0f33a634c0 Fix up scaling calculations, had some regressions in the previous commits. 2008-10-03 10:30:50 +02:00
Marco Pesenti Gritti
5a51661edf Respect SUGAR_SCALING 2008-10-03 02:15:48 +02:00
Marco Pesenti Gritti
3f08644b32 Remove workaround for old dbus-python. 2008-10-01 00:24:37 +02:00
C. Scott Ananian
897428c794 Trac #8674: sanity-check bundle root; don't delete install_root on failure.
The software updater was deleting ~/Activities when it encountered a bad
bundle.  Two separate issues:  we didn't sanity check the bundle root to
ensure it wasn't '.' or '..' or something crazy like that, and our "clean
up on failure" code was deleting the install_root instead of the activity
root (!).  This was a regression introduced by the fix for #7733 in
commit db2d1c42e2481d6dbc15405840ac23e46eab7318 (0.82.2).
2008-09-28 14:24:46 -04:00
Tomeu Vizoso
404a7b546a request byte_arrays from the DS 2008-09-26 18:36:49 +02:00
Tomeu Vizoso
afb63981fa Set the correct locale path for system activities 2008-09-25 20:19:05 +02:00
Marco Pesenti Gritti
89300c9173 Fix obvious error in the grid math #8626 2008-09-24 12:40:57 +02:00
Tomeu Vizoso
8c2bc01b6b Move DSObject.resume() from sugar-toolkit to the shell 2008-09-22 12:27:02 +02:00
Marco Pesenti Gritti
9e6ef4d2a9 Line too long fixes. 2008-09-22 10:55:05 +02:00
David Farning
88295072bd API docstrings from pydocweb 2008-09-21 09:01:48 -05:00
David Farning
3a69d3e777 API docstrings from pydocweb 2008-09-20 21:22:56 -05:00
David Farning
62128530c3 API docstrings from pydocweb 2008-09-19 19:32:55 -05:00
David Farning
dd7442a0fa API docstring update from pydocweb 2008-09-19 19:00:00 -05:00
C. Scott Ananian
d16334a042 Trac #8563: sugar palette doesn't handle 'table menus'.
The gtk Menu class supports 'table menus', where the menu entries can
be laid out in a grid. This is useful for horizontal menus, and for
dense menus of icons, and for wrapping the menu when it gets too long,
etc.

The Menu.attach() method is used to add entries to a menu by row and
column:
 http://www.pygtk.org/docs/pygtk/class-gtkmenu.html#method-gtkmenu--attach

However, the callback in _Menu, defined in palette.py, only triggers
on do_insert(), and so the signal emission (and subsequent
palette._update_separators() call, which places the line underneath
the menu title text at top) never occurs when you add entries using
attach(). _Menu now overrides attach() and emits the proper signal.
2008-09-19 11:18:36 -04:00
Marco Pesenti Gritti
7eafbe9ce9 Failure to close descriptor is actually expected. Don't bloat the logs. 2008-09-19 11:38:23 +02:00
Marco Pesenti Gritti
6a5d0c837b Another pylint fix. 2008-09-19 00:32:46 +02:00
Marco Pesenti Gritti
a151135e2e Fix a few pylint warnings. 2008-09-19 00:18:31 +02:00
Simon Schampijer
e429c258ca Allow setting empty jabber server (2)
fix #8354 completely
2008-09-18 23:19:55 +02:00
C. Scott Ananian
28586edb2f Trac #8532: remove SIGCHLD handler, which interacts poorly with threads.
Threads and signals don't get along too well together.  Instead, use
gobject's spawn_async functionality which already has the necessary zombie-
reaping integrated into the gobject event loop.
2008-09-18 11:14:41 -04:00
Tomeu Vizoso
f2a8948bf1 #8485 Detach from palette when a widget is destroyed 2008-09-18 14:50:58 +02:00
Guillaume Desmottes
1ab0c67830 fix weird change in _share_activity_cb causing all activity sharing fails 2008-09-18 11:46:40 +01:00
Erik Garrison
a6ef6742f5 Removed unused TakeScreenshot from the dbus interface provided by
activityservice.py as suggested by Marco @ trac #8432.
2008-09-17 14:48:14 -04:00
Erik Garrison
c1f6d9843d Cleanup screenshot acquisition behavior in activity.py, so that we acquire
screenshots on user-initiated activity save and close.  Check before saving
that the window is not fully obscured, as it might be if the user initiates the
close from the frame--- this would produce incorrect screenshots.  The check
for visibility is done by attaching a handler to the Activity class which
handles visibility-notify-events from X.  In the sugar repository equivalent
changes remove automated screenshot acquisition from window manager navigation
events (e.g. tabbing).
2008-09-17 14:25:38 -04:00
Marco Pesenti Gritti
c613b9cf5e Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar-toolkit 2008-09-16 17:03:32 +02:00
David Farning
4a73c86dbb add parameters to docs 2008-09-16 17:03:12 +02:00
Tomeu Vizoso
a93992eedc Revert "Move DSObject.resume() from sugar-toolkit to the shell"
This reverts commit 13682dd1b4.
2008-09-16 16:03:49 +02:00
Tomeu Vizoso
be32d3fb67 Remove the clipboard service wrapper 2008-09-16 15:34:26 +02:00
Tomeu Vizoso
13682dd1b4 Move DSObject.resume() from sugar-toolkit to the shell 2008-09-16 11:13:36 +02:00
Tomeu Vizoso
6c1eed78d8 s/print/logging.debug 2008-09-15 15:45:35 +02:00
Marco Pesenti Gritti
5ecfcba365 No need to test alsa open at object creationg, since
we don't have a fallback.
2008-09-14 12:55:16 +02:00
Marco Pesenti Gritti
be7b97dde7 Fix weird handling of error condition when opening alsa. 2008-09-13 22:52:20 +02:00
Marco Pesenti Gritti
be014cc270 Alsa based volume control API, stealed from gnome-settings-daemon. #8375 2008-09-13 13:48:25 +02:00
Marco Pesenti Gritti
388f74a56d Add a SugarGrid object to replace the numpy implementation. Part of the fix for #8394 2008-09-13 13:30:10 +02:00
Marco Pesenti Gritti
1ac335f271 Break the reference cycle between menu and palette. #8469 2008-09-13 13:25:40 +02:00
Simon Schampijer
1af96495d2 bundlebuilder: remove an existing locale dir before building 2008-09-13 12:02:22 +02:00
Simon Schampijer
199a91ff87 don't build the locale for the pseudo.po 2008-09-12 13:15:49 +02:00
Marco Pesenti Gritti
9eb7e3a7df Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar-toolkit 2008-09-11 10:52:35 +02:00
Marco Pesenti Gritti
171e76cfb8 Default to empty jabber server. Patch by gdesmott with minor change by me.
Fix #8354
2008-09-11 10:51:59 +02:00
Simon Schampijer
e721f74f63 Ignore pseudo.po for the manifest 2008-09-11 10:49:54 +02:00
Tomeu Vizoso
0490247fcb Hopefully really avoid access to private member 2008-09-11 09:03:05 +02:00
Tomeu Vizoso
5c1f3b7daa Revert "Avoid access to private member"
This reverts commit 0cf0cacbd0.
2008-09-11 09:00:44 +02:00
Tomeu Vizoso
c79bc15f5f #8394 Destroy the palette when the invoker is dettached 2008-09-10 18:05:53 +02:00
Tomeu Vizoso
0cf0cacbd0 Avoid access to private member 2008-09-10 18:04:15 +02:00
Tomeu Vizoso
865c234a1e Revert "Avoid access to private member."
This reverts commit 8301b9269a.
2008-09-10 17:54:45 +02:00
Simon Schampijer
2e41124c87 Remove "dynamic" font height computation #8392 (marco) 2008-09-10 12:36:27 +02:00
Simon Schampijer
1d29440bfd bundlebuilder: fix the release command 2008-09-09 17:41:42 +02:00
Marco Pesenti Gritti
866f26aced Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar-toolkit 2008-09-08 09:13:33 +02:00
Marco Pesenti Gritti
3f78abb8c2 Keep compatibility with the private shared_activity 2008-09-08 01:30:20 +02:00
Marco Pesenti Gritti
3d9f3eca67 Disable the few remaining pylint messages 2008-09-07 23:57:27 +02:00
Marco Pesenti Gritti
b307237dbf Make shared_activity public. 2008-09-07 22:07:49 +02:00
Marco Pesenti Gritti
8301b9269a Avoid access to private member. 2008-09-07 22:01:27 +02:00
Marco Pesenti Gritti
549ace8c11 More cleanups to make pylint happy. 2008-09-07 21:51:10 +02:00
Marco Pesenti Gritti
ebcf1f6988 Get rid of the custom _hide/_show and just use the widget
methods. Related cleanups.
2008-09-07 21:18:27 +02:00
Simon Schampijer
9041e4db0e Fix pylint for bundlebuilder 2008-08-31 21:35:37 +02:00
Simon Schampijer
783ec6734c Merge branch 'master' of ssh+git://dev.laptop.org/git/sugar-toolkit 2008-08-31 21:33:55 +02:00
Simon Schampijer
e7a10be1d4 Do a more "standard" system installation for bundlebuilder
- setup.py install takes a --prefix option and no arguments.
- mo files are installed in /usr/share/locale.
- po files are not installed
- 8136 (marco)
2008-08-31 21:33:39 +02:00
Marco Pesenti Gritti
6e503b0a24 Ensure that the widget is fully onscreen before taking a screenshot.
Otherwise X emits a BadMatch and gtk kills the process (!).
Fix #8220
2008-08-31 14:40:03 +02:00
Marco Pesenti Gritti
938e2e9648 Do not try to list the mimetypes directory if it does not exist.
Fix #7837
2008-08-31 14:36:13 +02:00
Marco Pesenti Gritti
9f88241ff5 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar-toolkit 2008-08-27 14:54:10 +02:00
Marco Pesenti Gritti
98460fb2e2 Fix pylint complain 2008-08-27 14:53:59 +02:00
Simon Schampijer
dd031b4d83 Set the env var SUGAR_BUNDLE_VERSION #5428 (marco) 2008-08-27 12:00:50 +02:00
Marco Pesenti Gritti
453e08c8d7 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar-toolkit 2008-08-27 11:05:19 +02:00
Marco Pesenti Gritti
b2ce8b030f Factor out sugar-activity code to the toolkit. 2008-08-27 11:04:54 +02:00
Simon Schampijer
c639e7291a Remove the set_size_request for the alert message
This gave problems on the xo - part of #7841
2008-08-25 14:09:52 +02:00
Benjamin Berg
927ae13aec Merge branch 'master' of git+ssh://benzea@dev.laptop.org/git/sugar-toolkit 2008-08-24 14:33:58 +02:00
Benjamin Berg
3d3e453157 Change the API of the keygrabber so only one gdk_sync is neccessary. (ticket #7999) 2008-08-24 14:31:46 +02:00
Tomeu Vizoso
7090e73c09 Revert "#8000 Only repaint the area needed (rlucchese)"
The bounds calculation won't be always correct.

This reverts commit 3bb9f47461.
2008-08-22 19:07:34 +02:00
Simon Schampijer
f29b67b032 Add update functionality to Config in bundlebuilder #7270 (marco)
This is needed by the release command to update the
bundle number
2008-08-22 15:16:30 +02:00
Marco Pesenti Gritti
f55e531f42 Warn about files missing from the MANIFEST. 2008-08-22 15:04:36 +02:00
Tomeu Vizoso
3bb9f47461 #8000 Only repaint the area needed (rlucchese) 2008-08-22 14:50:32 +02:00
Tomeu Vizoso
1f6dae2360 #7959 cache translations in util.py (rlucchese) 2008-08-22 14:33:38 +02:00
C. Scott Ananian
1bd1b6c81e Trac #7733: fix severe performance regression when creating ActivityBundle. 2008-08-19 15:46:36 -04:00
Tomeu Vizoso
5ba227ff85 #7533 ToolButton should accept activation via accelerators regardless of its state 2008-08-18 21:36:23 +02:00
Eben Eliason
a73cbc351d Merge branch 'master' of git://dev.laptop.org/sugar-toolkit 2008-08-15 05:32:14 -04:00
Simon Schampijer
ba850d5787 Wrap message in alert needed for 7841 2008-08-14 21:31:42 +02:00
Marco Pesenti Gritti
bd264577e7 Make Palette handle changes of the invoker widget. Fix #7881 2008-08-14 15:12:57 +02:00
Marco Pesenti Gritti
5cf5e91d69 pylint fix 2008-08-13 14:28:40 +02:00
Marco Pesenti Gritti
9a827ead86 Enable maximum warnings.
A bunch of compile fixes.
2008-08-12 01:53:28 +02:00
Marco Pesenti Gritti
b4aeb6038d Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar-toolkit 2008-08-11 18:36:37 +02:00
Marco Pesenti Gritti
8afa8c77d2 Add missing get_type declaration 2008-08-11 18:35:34 +02:00
Khaled Hosny
4114ef699d Fix gettext invocation, and set text domain (fixes #7800) 2008-08-11 20:14:37 +05:30
Marco Pesenti Gritti
c563543dea More pylint fixes 2008-08-11 01:20:08 +02:00
Marco Pesenti Gritti
204e4f233a Port a few widgets to use new style properties. 2008-08-11 01:10:02 +02:00
Marco Pesenti Gritti
80190bf944 Several pylint fixes. 2008-08-11 00:50:29 +02:00
Marco Pesenti Gritti
4c35d77854 Drop more obsolete xmlrpc code 2008-08-11 00:22:17 +02:00
Marco Pesenti Gritti
04750e69d3 Drop broken, unused code 2008-08-11 00:18:04 +02:00
Marco Pesenti Gritti
1878c9f369 Pylint cleanups. 2008-08-11 00:00:55 +02:00
Eben Eliason
ac6cea0d44 Widen activity tile entry (#7680) 2008-08-07 22:54:15 -04:00
Marco Pesenti Gritti
0d6b2072c1 Handle multiple Activity per process correctly.
Fix #7754
2008-08-06 23:04:00 +02:00
Martin Dengler
8696e2ad1d #7759 Default home view should be ring
This is bobby's patch to #7759 changing the default home view to ring.

|TestCase|

Remove the "[Layout]" section from ~olpc/.sugar/default/config, or rm
-rf ~olpc/.sugar, or reflash.  Start sugar.  Verify the initial Home
layout is the Ring layout.
2008-08-04 12:56:26 +01:00
Benjamin Berg
a35a07f832 Put palettes into the "default" palettegroup by default again. (fix #4084) 2008-08-01 23:54:38 +02:00