Commit Graph

177 Commits

Author SHA1 Message Date
Tomeu Vizoso
363f828205 Handle invitations using Mission Control 5.
src/sugar/activity/activity.py: If the activity is being invoked to
handle an invite, create a Client.Handler instance and share the
activity when HandleChannels is invoked.

src/sugar/activity/activityfactory.py,
src/sugar/activity/activityhandle.py,
src/sugar/activity/main.py: Add a -i switch that indicates to the
activity that it should handle the channel from an invitation.

src/sugar/presence/activity.py: Expose Activity.room_handle.

src/sugar/presence/presenceservice.py: Add get_activity_by_handle().

src/sugar/presence/util.py: Add get_account_for_connection().
2010-08-20 15:33:53 +02:00
Tomeu Vizoso
bd3a4ca747 Take into account the "private" property when updating the scope toolbutton 2010-08-20 15:33:53 +02:00
Tomeu Vizoso
fbee730549 Implement inviting buddies to a private activity 2010-08-20 15:33:53 +02:00
Tomeu Vizoso
a0b9394846 Replace enough of the old PS so we can share an activity instance publically
on the network.
2010-08-20 15:33:52 +02:00
Tomeu Vizoso
98cc77f1fb Replace enough of the old PS so we can join an activity instance on the network.
* src/sugar/activity/activity.py: Get the shared activity wrapper from
  sugar.presence.
* src/sugar/activity/activityfactory.py: Disable checking in the PS for
  activity_id duplicates.
* src/sugar/presence/activity.py: Remove the PS dependency and query Telepathy
  directly. Implemented enough to join an activity.
* src/sugar/presence/buddy.py: Remove the PS dependency and query Telepathy
  directly. Implemented enough to join an activity. Added an Owner subclass of
  Buddy()
* src/sugar/presence/presenceservice.py: Remove the PS dependency and query Telepathy
  directly. Implemented enough to join an activity.
* src/sugar/presence/util.py: Add ConnectionManager for discovering and tracking
  connections.
2010-08-20 15:33:52 +02:00
Bernie Innocenti
e90fccfd37 Use set_toolbar_box() in example code.
The set_toolbox() method is obsolete, so let's not advertise it.

Signed-off-by: Bernie Innocenti <bernie@codewiz.org>
2010-07-01 09:12:51 -04:00
Bernie Innocenti
e2ab351b36 Set default accelerators for Copy and Paste buttons 2010-07-01 09:12:51 -04:00
Simon Schampijer
3aa0995096 Bundelbuilder should not use localized activity name #1968 (Walter Bender)
The localized activity name is only used for
user-facing strings. The .xo and .tar files are
left in the original name.
2010-06-03 08:56:42 +02:00
Aleksey Lim
845d2534e6 Reset timeout delay on every TitleEntry change #1948 2010-06-02 14:56:28 +00:00
Aleksey Lim
161aec771e Display a message when an activity fails to start (based on wadeb patches) #1447 2010-03-10 16:35:09 +00:00
Simon Schampijer
2a52c9493b A little bit of pylint cleanup 2010-03-10 10:23:30 +01:00
Tomeu Vizoso
d006092d37 Log saving errors in activities #1703 2010-03-09 22:33:23 +01:00
James Cameron
f8ef93bd21 Removes the use of O_SYNC on logs #1656
With O_SYNC on open of log files, on systems with slow filesystem random
write performance, there is random activity startup time.
2010-03-09 22:23:55 +01:00
Aleksey Lim
6921bcd67d Do not fail while closing object less activities #1714 2010-03-09 18:56:21 +00:00
Aleksey Lim
3bf70d642c Override canvas property in Activity class #1795 2010-03-08 19:01:53 +00:00
Sayamindu Dasgupta
e6aa91ba3f Merge branch 'master' of git://git.sugarlabs.org/sugar-toolkit/gettext-enhancements 2010-02-10 20:56:32 +05:30
Sayamindu Dasgupta
d00d9b6431 More cleanups for i18n.py 2010-02-10 20:53:09 +05:30
Sayamindu Dasgupta
1b600b147d Make the dictionary sorting a bit more sensible 2010-02-09 17:43:18 +05:30
Sayamindu Dasgupta
4552050136 Clean up docstring 2010-02-09 17:41:10 +05:30
Sayamindu Dasgupta
1817caf30f Consistent variable names 2010-02-09 17:13:04 +05:30
Sayamindu Dasgupta
ffe3504e0a Should be and, and not or 2010-02-08 23:46:22 +05:30
Sayamindu Dasgupta
85840b269f Style and PEP8 fixes 2010-02-08 23:45:39 +05:30
Tomeu Vizoso
b5bcbe2ed4 Remove file that was there by mistake 2010-02-06 12:55:43 +01:00
Sayamindu Dasgupta
415f3a3066 Describe the args of the i18n methods 2010-02-01 16:28:19 +05:30
Sayamindu Dasgupta
259fca2caa Import in two lines instead of one 2010-02-01 16:24:58 +05:30
Simon Schampijer
e1d4afe13e Add signal listener functionality to the DS #1197 (silbe) 2010-01-24 17:53:32 +01:00
Sayamindu Dasgupta
ef093d395e Update Makefile.am 2010-01-24 20:29:10 +05:30
Sayamindu Dasgupta
173a402701 Code for language pack support 2010-01-24 20:28:21 +05:30
Sascha Silbe
9c77febcf1 locate rainbow using PATH instead of hardcoding the location (#1436) 2010-01-11 17:01:37 +00:00
Sascha Silbe
1d8b1b98cb don't use rainbow if it has been uninstalled, but the config file remains (#1317)
Some distros retain config files after removing packages, so /etc/olpc-security
might exist even if rainbow is not installed.

Signed-off-by: Sascha Silbe <sascha@silbe.org>
2010-01-11 16:51:15 +00:00
Daniel Drake
709d44d602 Apply activity font settings earlier (#1607)
Fixes some minor changes in toolbar appearance that my previous
work unintentionally introduced.
2009-12-24 14:41:52 +00:00
Daniel Drake
634b2fcee0 Apply font configuration from GConf (#1584)
Sugar font settings are now stored in GConf. This patch applies them
to all users of sugar.style and all standard activities.
2009-12-01 16:51:14 +00:00
Aleksey Lim
8f52b0a8f4 Present windows in non-active process #1423 2009-09-29 18:33:13 +00:00
Tomeu Vizoso
957c0b4c0f Save activity_id if its not yet in the DS #1276 2009-09-19 19:02:04 +02:00
Aleksey Lim
acdbae5d4c _Typo Color of sugar.activity.widgets.ActivityButton is owners all time despite of 'icon-color' metadata property #1368 2009-09-18 15:11:24 +00:00
Aleksey Lim
9f981bb5dc Color of sugar.activity.widgets.ActivityButton is owners all time despite of 'icon-color' metadata property #1368 2009-09-18 15:09:03 +00:00
Tomeu Vizoso
df89c1bf0b Close tube after the activity window is closed #1296 2009-09-15 17:28:29 +02:00
Tomeu Vizoso
db77ed8ab3 Put back <Ctrl>Z as the Undo accelerator #1287 2009-09-14 18:19:09 +02:00
Aleksey Lim
1b80257149 Fullscreen resizing issues #1263 2009-09-05 16:40:15 +00:00
Tomeu Vizoso
929ce5a3cb Make activity windows cover the whole screen as soon as they are mapped. 2009-09-01 10:11:59 +02:00
Sascha Silbe
c9e63eb8ea PEP8 white space and long line fixes 2009-08-25 21:12:40 +02:00
Sascha Silbe
ecdaf6b795 trim EOL (end-of-line) spaces on source files 2009-08-25 19:55:48 +02:00
Aleksey Lim
9a65089978 Fix typos in 0342a24e2d 2009-08-25 17:21:55 +00:00
Aleksey Lim
0342a24e2d Sugar crashing when saving a journal entry upon closing an activity #1123 2009-08-25 15:40:23 +00:00
Sascha Silbe
0a8b1261eb don't hardcode Rainbow activity permissions 2009-08-24 20:40:11 +02:00
Sascha Silbe
496090fe62 let the logger do the formatting 2009-08-24 12:54:02 +02:00
Simon Schampijer
2e780d624c Align widgets to the left 2009-08-17 18:22:36 +02:00
Simon Schampijer
b34f5d7164 Fix typo 2009-08-17 14:47:51 +02:00
Simon Schampijer
296f4e500c Add ActivityButton for simple activities
Contains only a palette showing the title
2009-08-17 14:46:47 +02:00
Simon Schampijer
10b5a30bc9 Make the share button insensitive when max_participants is set to 1 2009-08-12 11:26:26 +02:00