657 Commits (a14574c6662740fb9e4502a4b77591a602c10456)

Author SHA1 Message Date
Gonzalo Odiard 880e60bdda Sugar-toolkit: Pack page in ToolbarButton when is connected to the window - OLPC #10930
To add the accelerator to the ToolButton the activity must have set
the 'sugar-accel-group' before. The patch does make the ToolbarButton
listen to the 'hierarchy-changed' signal and repack itself accordingly.
Since the ToolButtons of the subtoolbar do listen to 'hierarchy-changed'
as well to set the accelerator they will set it accordingly.

This fixes the accelerators for new-style-toolbar activities
like Terminal, TurtleArt and Paint, more info in #10930.

Signed-by-off: Gonzalo Odiard <gonzalo@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
13 years ago
Daniel Drake 10580fc2a7 GlibTCPServer: defer shutdown_request to avoid closing the socket too early OLPC #10906
In Python 2.7, shutdown_request was added to the BaseServer class and
TCPServer was adopted to use it instead of close_request in the
_handle_request_noblock() path.

GlibTCPServer must be adapted to account for this, so that
shutdown_request is not allowed to prematurely allowed to close the socket,
in the same way that close_request is ignored.

Fixes collaboration in activities that rely on this mechanism for
sharing (including ImageViewer and Read)

Signed-off-by: Daniel Drake <daniel@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
Tested-by: Gonzalo Odiard <gonzalo@laptop.org>
Tested-by: Simon Schampijer <simon@laptop.org>
13 years ago
Simon Schampijer 7e61237c8f Debug logs for default profile
The generic path does not work for the telepathy logs. As we
have removed the support for different profiles it is ok
to just use the default path.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-By: Marco Pesenti Gritti <marco@marcopg.org>
13 years ago
Simon Schampijer 7a0d5d9398 Use 'focus-out' event instead of 'changed' event for title entry OLPC #10956, SL #2608
To determine if the title has changed we use the 'focus-out'
event now instead of the 'changed' signal of the gtk.Entry. This
removes races we had before.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-By: Simon Schampijer <simon@laptop.org>
Acked-By: Sascha Silbe <silbe@activitycentral.com>
13 years ago
Simon Schampijer 1ea1b2a0ab Use the activity instance name when joining a shared activity SL #2872
When we join a shared activity we use the name of the shared activity
as the title of the activity. As we set the activity metadata
accordingly this will be visible in the activity toolbar, the Journal
and the activity frame.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-By: Sascha Silbe <silbe@activitycentral.com>
13 years ago
Simon Schampijer c86b6d5917 Fix invitations from a non sugar client (empathy), part of OLPC #10814
This differentiates between sugar and non sugar invitations using the
handle type. For non-sugar invitations we use the activity id to
determine which activity to join.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-By: Sascha Silbe <silbe@activitycentral.com>
13 years ago
Simon Schampijer 67143d8042 Only show joined buddies on sharer side, part of OLPC#10578
This is a follow-up patch to 95b4eeec758ffa729d0dbb219b21d428115fcc74

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-By: Sascha Silbe <silbe@activitycentral.com>
13 years ago
Simon Schampijer 5b09eb1d74 Shared activity does not announce the 'buddy-left' signal OLPC #10800
This fixes a copy and paste error. A good test case is the Memorize
activity since we listen for the 'buddy-left' signal there to
update the members list inside the activity.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-By: Sascha Silbe <silbe@activitycentral.com>
13 years ago
Sascha Silbe 3553fbd2f0 remove obsolete comment
GTK bug #502871 [1] has been fixed in 2007.

[1] http://bugzilla.gnome.org/show_bug.cgi?id=502871

Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Acked-by: Simon Schampijer <simon@laptop.org>
13 years ago
Sascha Silbe 567bd961a5 Avoid showing decorated windows during start-up (OLPC#10713)
As a side effect, activity start-up is now subjectively faster, maybe even
objectively (due to avoiding a resize).

Tested on XO-1 running Debian Squeeze.

Acked-By: Simon Schampijer <simon@laptop.org>
13 years ago
Gonzalo Odiard 35cb4e3881 The activity icon does not handle the case of a activity without metadata.
If the activity is initiated with create_object=False

Acked-by: Sascha Silbe <silbe@activitycentral.com>
13 years ago
Simon Schampijer 17e52db2b6 Store all the buddies that have been joined in the activity metadata OLPC #10578
Before only the buddies that were present when closing the activity
were logged in the Journal. This patch does add another dictionary
'_joined_buddies' to keep track of the users that did join. The
'_buddies' dictionary keeps on tracking the users currently in the
activity.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Sascha Silbe <silbe@activitycentral.com>
13 years ago
Sascha Silbe 85e714ecb1 fix regressions introduced by 29582de6 (fix for SL#1742)
GTK pops down the palette before it invokes the actions on the
menu item. We need to postpone destruction of the palette until
after all signals have propagated from the menu item to the
palette owner.

Symptoms included the "View Details" palette menu item in the Journal list
view not working.

Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Acked-by: Simon Schampijer <simon@laptop.org>
13 years ago
Simon Schampijer ca02d59e11 Open content bundles on a external device #1748
Remove the path parameter as it is not used anyhow. The patch
for the sugar module does make sure the method is called
correctly.

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Acked-By: Simon Schampijer <simon@laptop.org>
Reviewed-By: Sascha Silbe<silbe@activitycentral.com>
14 years ago
Sascha Silbe 17537c7710 Window: allow removing the toolbar_box
Allow the toolbar_box to be removed by setting it to None, like is supported
for canvas.

Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Acked-by: Simon Schampijer <simon@laptop.org>
14 years ago
Sascha Silbe 9d45394d40 fix whitespace mistake introduced by c7a80a1
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Acked-by: Simon Schampijer <simon@laptop.org>
14 years ago
Sascha Silbe 11bfce1a31 sugar.activity.i18n: add pgettext()
Python 2 will never have pgettext() [1], so we need to ship our own version.
sugar.activity.i18n is the best place for that.

[1] http://bugs.python.org/issue2504#msg122482

Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Acked-by: Simon Schampijer <simon@laptop.org>
14 years ago
Simon Schampijer b30bc0151c bundlebuilder: genpot: don't use absolute paths in filenames (SL#2508)
[tweaked description; minor style fix]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Tested-By: Sascha Silbe <silbe@activitycentral.com>
Reviewed-By: Sascha Silbe <silbe@activitycentral.com>
14 years ago
Martin Dengler 45fc0b6186 Throw MalformedBundleException on broken zip files
sugar.bundle.bundle.Bundle users (e.g.
jarabe.model.bundleregistry.BundleRegistry._add_bundle) only expect
MalformedBundleException to be thrown, not exceptions of zipfile.

This patch solves the most severe issue in #1876: filling up the
filesystem with temporary files that won't be deleted afterwards.

Before we can consider this bug completely fixed, we still need
to do something for the remaining issues:

 1) Unpacking shouldn't be attempted if there isn't a safety margin

 2) System becomes unresponsive during unpacking

 3) No progress indication for the operation, so users are tempted
    to click multiple times

 4) No error messages displayed for unpacking errors, which is a
    common Sugar nuisance.

http://bugs.sugarlabs.org/ticket/1876#comment:5 offers possible
strategies for (1) and (2).

Signed-off-by: Martin Dengler <martin@martindengler.com>
Signed-off-by: Bernie Innocenti <bernie@codewiz.org>
[style fixes, adjusted description]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Reviewed-by: Aleksey Lim <alsroot@activitycentral.org>
14 years ago
Sascha Silbe 924e2e62bf fix sugar-emulator detection logic broken by 814ab2d (has_key() cleanup)
This broke Shutdown and Restart (buddy menu).

Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
14 years ago
Sascha Silbe 3b0e761f4a XoColor: don't choke if passed the wrong type (SL#1408)
Color data is stored in the Journal as a JSON dump, so we can get back
arbitrary types. XoColor already checks the color string for validity and
handles invalid strings gracefully, so it makes sense to enhance this to
invalid types as well.

Acked-by: Simon Schampijer <simon@schampijer.de>
14 years ago
Simon Schampijer 18e39672ce Apply new version scheme as well to content bundles #2425
Reviewed-by: James Cameron <quozl@laptop.org>
14 years ago
Simon Schampijer aadfeed305 bundlebuilder: install mimetypes.xml and associated icon #2262
As we do create the ActivityBundle in the config of the bundlebuilder
we can use the code from the activitybundle as well to install
the mime type.

Reviewed-By: Sascha Silbe <sascha-pgp@silbe.org>
14 years ago
Sascha Silbe 1adc165a8c bundlebuilder: ignore incorrect pylint warning
pylint isn't smart enough to figure out the return type of Popen.communicate(),
so squelch the warning.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 46deeb64e6 pylint: sugar.wm._property_change_trapped: allow overriding built-in method
"format" is the name of a parameter of the function we are wrapping, so we
shouldn't change it.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 0521234fec CellRendererInvoker._redraw_path(): assure column is defined
We know that our code is correct and column should always be assigned, but it
never hurts to act defensively and guard against bugs in other pieces of the
code (or other components like GTK).

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 05fd5fe2d7 ToolInvoker._get_alignments: fix missing self parameter
Caught by pylint. I wonder if we need this piece of code as nobody every
triggered it.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 7983242f7a pylint cleanup: initialise all attributes in __init__()
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe adba508d8f pylint cleanup: pass format parameters to log functions instead of using %
This avoids the overhead from the string formatting on production systems.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe ff16cb0fa9 pylint cleanup: disable warnings for reasonable catch-all exception handlers
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 431e36a427 sugar.util: use logging.exception instead of traceback.format_exc()
logging.exception() handles exceptions nicely for us, no need to explicitly
use traceback.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 3d227102c4 pylint cleanup: remove unused imports
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe eacce98f88 pylint cleanup: replace disable-msg with disable
Adapt to upstream format change.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 7acfbd070f style cleanup: prefer ' for strings
Tomeu prefers ' for strings, so let's use it wherever we don't have a good
reason to use ".

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 5f13fcfc84 style cleanup: use """ everywhere
Most of the code uses """, so adjust the few deviations.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 5f8ec81023 PEP8 cleanup: fix deprecated raise syntax
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 9c7769cc21 PEP8 cleanup: fix whitespace before ':'
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 73de340d27 PEP8 cleanup: fix spaces around keyword parameters
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 72ed58cbca PEP8 cleanup: fix inline comment spacing
pep8 wants inline comments to be prefixed by at least two spaces. Let's just
move them to a separate line as that's easier to read anyway.

Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 60707443ea PEP8 cleanup: fix whitespace around operator
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 814ab2ddf9 PEP8 cleanup: don't use has_key()
has_key() has been deprecated for quite some time now.

Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 4d978fda14 PEP8 cleanup: ensure lines are shorter than 80 characters
Caught by PEP8. This is important for Sugar because the XO has a small screen
where long lines would make the code hard to understand (because you need to
constantly scroll horizontally).

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer<simon@schampijer.de>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe e2231d5620 PEP8 cleanup: fix number of blank lines
Caught by pep8.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 131c28bb72 fix EOL spaces
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Simon Schampijer c7a80a1e56 Add new numbering scheme #2425
- add class NormalizedVersion to parse and compare the new activity versions
- change the bundlebuilder and activitybundle to use the new scheme, instead
of an int version we expect a string that matches the format defined in
NormalizedVersion
14 years ago
Tomeu Vizoso 29582de67f Add 'cache-palette' property to Invoker #1742
Meaning that the palette will be cached after it's created.
14 years ago
Tomeu Vizoso 4fb2943ec4 Fix running multiple instances of Browse by adapting to API changes #2404
* sugar/presence/presenceservice.py: Specify the D-Bus interface when
  calling ActivityProperties.GetActivity
* sugar/activity/main.py: Set a default for the --invite option and
  make the create() D-Bus method accept a{sv} so we can pass the
  boolean value.
14 years ago
Tomeu Vizoso 7dedaeb7bb Cast floats to ints before calling cairo.ImageSurface() #2291
Otherwise Python 2.7 will raise an exception.
14 years ago
Simon Schampijer 106b9fba68 Do not break if the string contains no conversion specifier #2354 14 years ago
Tomeu Vizoso a2b8518489 Don't try to share the activity if we couldn't find a suitable connection #2217 14 years ago
Tomeu Vizoso 0002c93e96 sugar.presence: Remove dead code and make clear which methonds are deprecated 14 years ago
Tomeu Vizoso e21ab06e34 Read the public and private keys lazily 14 years ago
Tomeu Vizoso d780248e87 Use Account.ConnectionStatus instead of Account.Connection.Status 14 years ago
Martin Abente 4260a53d3f Merge branch 'master' of gitorious@git.sugarlabs.org:sugar-toolkit/mainline 14 years ago
Martin Abente f0a570b5ae Delete activities profile data when uninstall #2074
When activities are uninstalled, profile data persists. Profile
data can consume a lot of storage space. Therefore it is necessary
to delete it when required.

Signed-off-by: Martin Abente <mabente@paraguayeduca.org>
14 years ago
Tomeu Vizoso c56154d938 Remove sugar/__init__.py, it should come from sugar-base #1868 14 years ago
Tomeu Vizoso d156ff56a8 Address comments from Simon's review 14 years ago
Tomeu Vizoso 1af1bc9713 Address several nitpicks from Marco 14 years ago
Tomeu Vizoso 56679a3de6 Rename ActivityHandle.handle_invite to ActivityHandle.invited 14 years ago
Tomeu Vizoso d66eb39c9b Remove unused constant 14 years ago
Tomeu Vizoso 6a12411477 Add copyright statement due to the collaboration refactoring 14 years ago
Tomeu Vizoso fdfacaf26f Misc. pylint fixes 14 years ago
Tomeu Vizoso fab271ac9c Wrap lines with more than 80 chars 14 years ago
Tomeu Vizoso ead42a6945 Remove some unused imports 14 years ago
Tomeu Vizoso 1d16629d1b For several reasons, a shared activity won't survive to its connection
disconnecting and coming back.
14 years ago
Tomeu Vizoso cd6c0101af No need to dispose the buddies currently in the activity, as it is information that is needed through the whole life of the activity instance 14 years ago
Tomeu Vizoso 694c456ed3 Remove misleading comment, we are already listening Closed 14 years ago
Tomeu Vizoso 24df594203 Add the MAC address to the data that gets hashed to get an activity_id 14 years ago
Tomeu Vizoso d5dbe3616f Correctly use the connections from ConnectionManager 14 years ago
Tomeu Vizoso c0ed611aee Make sure that the connection we choose is connected 14 years ago
Tomeu Vizoso ba80f2a2c1 Set the properties of the channel after we have joined it 14 years ago
Tomeu Vizoso 1e7f499029 Translate handles if the channel has channel-specific handles (gabble) 14 years ago
Tomeu Vizoso 11d0574b3f Log when we fail to find a share activity for a given id 14 years ago
Tomeu Vizoso 633214e2b6 Call the new invite method in ActivityService InviteCommand and keep a stub for Invite 14 years ago
Tomeu Vizoso 7136145667 Add WOCKY_DEBUG to ~/.sugar/debug 14 years ago
Tomeu Vizoso 6b965fa98d Add mission control env vars for debugging 14 years ago
Tomeu Vizoso 8da18fe2aa Track the buddies inside the activity 14 years ago
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().
14 years ago
Tomeu Vizoso af6e3aa5ef Restore use of ActivityProperties.GetActivity 14 years ago
Tomeu Vizoso 46159e987b Pass the account path to the Activity on creation 14 years ago
Tomeu Vizoso 1a4c721f3d Identify buddies and activities by their account and ids instead
of connection and handle.
14 years ago
Tomeu Vizoso cc8ecd81e7 Add src/sugar/presence/util.py 14 years ago
Tomeu Vizoso bd3a4ca747 Take into account the "private" property when updating the scope toolbutton 14 years ago
Tomeu Vizoso ce87bb3ff6 Only add ourselves to a channel if we are in local_pending 14 years ago
Tomeu Vizoso fbee730549 Implement inviting buddies to a private activity 14 years ago
Tomeu Vizoso 37d7fc1075 Add src/sugar/util.py to the Makefile 14 years ago
Tomeu Vizoso 6f6b86d1e2 Implement Buddy.object_path() 14 years ago
Tomeu Vizoso 9c1275e4c8 Implement Activity.get_channels() 14 years ago
Tomeu Vizoso 043d3b0ee7 Emit the buddy-left signal 14 years ago
Tomeu Vizoso 12cd353620 Implement leaving an activity 14 years ago
Tomeu Vizoso 2db82c1722 Emit the buddy-joined signal 14 years ago
Tomeu Vizoso f9b0d68a48 Refactor the logic for sharing into _ShareCommand and implement
joining a shared instance with _JoinCommand.
14 years ago
Tomeu Vizoso a0b9394846 Replace enough of the old PS so we can share an activity instance publically
on the network.
14 years ago
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.
14 years ago
Simon Schampijer 981707c112 Print warnings about the deprecated activity.info fields 14 years ago
Simon Schampijer acd8095a29 Revert "Support dropped for activity.info fields 'service_name' and 'class'"
This reverts commit e11b7d3196.
14 years ago
Simon Schampijer e11b7d3196 Support dropped for activity.info fields 'service_name' and 'class'
You have to use 'bundle_id' and 'exec' instead now.
14 years ago
anishmangal2002 3f68813dd6 Add ErrorAlert inherited from Alert
Adds the ErrorAlert class which is an alert inherited from
the base Alert class. This is very similar to the
ConfirmationAlert class with the difference being that it
only displays an 'Ok' button in the Alert popup.

Signed-off-by: anishmangal2002 <anishmangal2002@gmail.com>
14 years ago
Simon Schampijer f82c2bad4d Not able to access files on external device from within an activity on new system d.l.o #10218
The error we were seeing was that the '(env.get_profile_path(),
'data'))' does not exist yet at system start. Symlinks are created
there when accessing data on an external device. The directory
gets created when an activity like Browse or Terminal has been
run for the first time or you start Read for the first time by
resuming the file on the external device.

http://dev.laptop.org/ticket/10218
14 years ago
Simon Schampijer abda2edc04 Remove unneeded debug logs #1861 14 years ago
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>
14 years ago
Bernie Innocenti e2ab351b36 Set default accelerators for Copy and Paste buttons 14 years ago
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.
14 years ago
Aleksey Lim 883fefe782 Cannot delete stalled download from journal #1987 14 years ago
Aleksey Lim 845d2534e6 Reset timeout delay on every TitleEntry change #1948 14 years ago
Simon Schampijer e497eb15ba Fix keep functionality in activities
Introduced by #1765
14 years ago
Aleksey Lim 161aec771e Display a message when an activity fails to start (based on wadeb patches) #1447 15 years ago
Simon Schampijer 2a52c9493b A little bit of pylint cleanup 15 years ago
Sascha Silbe bb323a4efa check syntax of private key (#1568)
Check that header and footer of the private key are present in order to detect
corrupted key files.

Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
15 years ago
Sascha Silbe d38d865c7c Revert "Merge commit 'refs/top-bases/t/bug-1568' into t/bug-1568"
This reverts commit 12016d5408, reversing
changes made to d006092d37.
15 years ago
Sascha Silbe 12016d5408 Merge commit 'refs/top-bases/t/bug-1568' into t/bug-1568 15 years ago
Tomeu Vizoso d006092d37 Log saving errors in activities #1703 15 years ago
Wade Brainerd 63a5dcef05 Deprecate host_version #1509 15 years ago
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.
15 years ago
Aleksey Lim 6921bcd67d Do not fail while closing object less activities #1714 15 years ago
Sascha Silbe b64930b2eb check private key syntax 15 years ago
Aleksey Lim 3bf70d642c Override canvas property in Activity class #1795 15 years ago
Simon Schampijer 7978c55fdf Create the DSObject update listener as well for existing entries 15 years ago
Sayamindu Dasgupta e6aa91ba3f Merge branch 'master' of git://git.sugarlabs.org/sugar-toolkit/gettext-enhancements 15 years ago
Sayamindu Dasgupta d00d9b6431 More cleanups for i18n.py 15 years ago
Sayamindu Dasgupta 1b600b147d Make the dictionary sorting a bit more sensible 15 years ago
Sayamindu Dasgupta 4552050136 Clean up docstring 15 years ago
Sayamindu Dasgupta 1817caf30f Consistent variable names 15 years ago
Sayamindu Dasgupta ffe3504e0a Should be and, and not or 15 years ago
Sayamindu Dasgupta 85840b269f Style and PEP8 fixes 15 years ago
Simon Schampijer 394870f4ad Synchronize changes made to a Journal entry #1358 15 years ago
Tomeu Vizoso b5bcbe2ed4 Remove file that was there by mistake 15 years ago
Sayamindu Dasgupta 415f3a3066 Describe the args of the i18n methods 15 years ago
Sayamindu Dasgupta 259fca2caa Import in two lines instead of one 15 years ago
Aleksey Lim 9f9adda1ab Merge branch 'master' of git.sugarlabs.org:sugar-toolkit/mainline 15 years ago
Aleksey Lim 4a4ea538ca Supplement #1687 by docstring 15 years ago
Simon Schampijer a3c68d5109 removed leftover 15 years ago
Aleksey Lim 6f3ecbdb1f New color to highlight items while hovering over #1693 15 years ago
Aleksey Lim fea8acec84 Get pure icon surface w/o creating any widgets #1687 15 years ago
Simon Schampijer e1d4afe13e Add signal listener functionality to the DS #1197 (silbe) 15 years ago
Sayamindu Dasgupta ef093d395e Update Makefile.am 15 years ago
Sayamindu Dasgupta 173a402701 Code for language pack support 15 years ago
Simon Schampijer aacb5592e5 Cleaned up the datastore API
- killed the dbus_helpers, moved that to the datastore.py
- added documentation
- pep8 and pylint clean
15 years ago
Sascha Silbe 9c77febcf1 locate rainbow using PATH instead of hardcoding the location (#1436) 15 years ago
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>
15 years ago
Daniel Drake 709d44d602 Apply activity font settings earlier (#1607)
Fixes some minor changes in toolbar appearance that my previous
work unintentionally introduced.
15 years ago
Daniel Drake 618df4e177 Fix bold font style
Small error in my last commit.
15 years ago
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.
15 years ago
Aleksey Lim 8c2fe54ea7 Do not stop processing motion-notify-event #1507 15 years ago
Aleksey Lim a4a2b33dac Do no use random color if metadata color is not valid #1435 15 years ago
Aleksey Lim 3d46fd8c99 Shutdown/Reboot fails when multiple users are logged in #246 15 years ago
Aleksey Lim 8f52b0a8f4 Present windows in non-active process #1423 15 years ago
Aleksey Lim 823188957c Treat broken symlinks corretcly #1394 15 years ago
Aleksey Lim 7a8dc0dd70 Do not fail if activity mime_type was already installed #1394 15 years ago
Tomeu Vizoso 957c0b4c0f Save activity_id if its not yet in the DS #1276 15 years ago