Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Release 0.93.3v0.93.3Simon Schampijer2011-08-251-1/+1
|
* Cleanups of the 'clone bundle' supportSimon Schampijer2011-08-252-29/+31
| | | | | | | | | | | - remove the fix_manifest call since it is deprecated - removed unused import - more correct doc style - do not pass the user_activities_path argument around, call the env method instead Signed-off-by: Simon Schampijer <simon@laptop.org> Reviewed-by: Walter Bender <walter.bender@gmail.com>
* Add clone to view-source submenuWalter Bender2011-08-253-6/+250
| | | | | | | | | | | | | | This patch adds a Clone submenu to the view source toolbar, enabling the cloning of an activity for end-user modification. As per the design team meeting, this patch includes the generation of an xo bundle to be copied to the Journal of the cloned activity. One known bug not addressed here is that if the bundle_id is missing, the cloning will be successful, but the resultant activity will not launch. Signed-off-by: Walter Bender <walter.bender@gmail.com> Acked-by: Simon Schampijer <simon@laptop.org>
* Consistent phrasing for sugar-toolkit titleSimon Schampijer2011-08-231-1/+1
|
* Add view source for sugar toolkitWalter Bender2011-08-231-29/+98
| | | | | | | | As per feedback from the design team, I have added a radio button to view the source of the sugar-toolkit to the standard view source toolbar. Signed-off-by: Walter Bender <walter.bender@gmail.com> Acked-by: Simon Schampijer <simon@laptop.org>
* adding $HOME/Documents to volumestoolbarSimon Schampijer2011-08-191-0/+50
| | | | | | | | | | | | | | | | | This patch adds $HOME/Documents to the volume toolbar in the Journal view. The rationale is to make it easier for people to move files in and out of the data store from the file system -- a feature oft requested by teachers. It also means that Sugar activities can more readily access files generated outside of Sugar -- another feature requested by teachers. This resubmission of the patch includes a suggestion by Silbe that the xdg-user-dir call be factored out in a separate (global) function Note that this patch requires the inclusion of a new icon, user-documents, that is included in a separate patch. Signed-off-by: Walter Bender <walter.bender@gmail.com> Acked-by: Simon Schampijer <simon@laptop.org>
* Model._get_mount_point loops foreverMartin Abente2011-08-191-1/+2
| | | | | | | | | Fixes the stop condition, so it won't loop forever when the object_id belongs to the local FS. In that case, it will return "None" to avoid ambiguity with what we refer to "/". Signed-off-by: Martin Abente <martin.abente.lahaye@gmail.com> Acked-by: Simon Schampijer <simon@laptop.org>
* Use alpha to visualize the filter in the neighborhood viewSimon Schampijer2011-08-193-26/+36
| | | | | | | | Apply an alpha value of 0.33 to non-matching items to have consistency with the filter in the favorites view. Signed-of-by: Gonzalo Odiard <gonzalo@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Implement filter in favorites view - v3Gonzalo Odiard2011-08-192-13/+19
| | | | | | | | | | After evaluation with Design Team, the filter higlight selected activities applying a alpha of 0.33 in the unselected activities. This patch add strip() to the query to avoid accidental filtering of all activities by adding spaces. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Fixed typo in schoolserver authenticationSimon Schampijer2011-08-181-1/+1
| | | | Spotted-By: James Cameron <quozl@laptop.org>
* Add support for XO 1.75Simon Schampijer2011-08-181-7/+17
| | | | | | | | | | | | | The hardware specific information has been moved from '/ofw' to '/proc/device-tree'. This has an effect on the Control Panel where we display the serial number and the firmware number. Furthermore the registration code needs to be aware of the possible new place in order to send the serial number and UUID during authentication. Signed-off-by: Simon Schampijer <simon@laptop.org> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org> Tested-by: Gonzalo Odiard <gonzalo@laptop.org>
* Avoid adding multiple times the callback to the duplicate buttonGonzalo Odiard2011-08-181-1/+1
| | | | | | | | | The effect of adding multiple times the callback is the first file the user duplicate, create one copy, the second create two copies, the third three copies... Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Typo in the duplicate codeSimon Schampijer2011-08-171-1/+1
| | | | | | | Thanks Gonzalo for spotting Signed-off-by: Simon Schampijer <simon@laptop.org> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
* Do startup animation of the activity icon using scaling and alpha - v5Gonzalo Odiard2011-08-172-100/+59
| | | | | | | | | | This render the SVG image only one time, and then use alpha and scaling of the rendered icon and will speed up the overall activity startup. Another side effect is that the startup zoom not visible in many activities, is visible now - #2080 The MIN_ALPHA value was changed to do the effect more visible. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Prevent view source display of some binary and "junk" files (SL#2854)Walter Bender2011-08-151-10/+17
| | | | | | | | | | | | This patch addresses the issue raised in SL#2854: the exclusion of some file types from being displayed by viewsource. This version of the patch uses a global, _EXCLUDE, that includes a list of many more common file types to exclude, as per some mining of .gitignore files by Sascha. In a future patch, it may make sense to append the data from the .gitignore and git exclude files. [added exclude list for (exact-match) file names, tweaked description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com> Acked-by: Simon Schampijer <simon@laptop.org>
* Add duplicate functionality to the Journal and enhance copy functionalitySimon Schampijer2011-08-155-76/+230
| | | | | | | | | | | | | | | | | | | | | This patch adds a duplicate option to the Journal entry palette and the entry detail view. This will replace the keep button functionality from the activity toolbar. The keep button will be deprecated in another patch for the toolkit. The copy option which copied previously to the clipboard by default has been enhanced to allow: copying to the clipboard, copying to an external device, copying from an external device to the Journal and copying between external devices. Copying to the clipboard is now a visible option in the menu. In the detail view the palette pops up when doing a left click and showing the available options instead of copying directly to the clipboard. The design discussion has been taking place at: http://lists.sugarlabs.org/archive/sugar-devel/2011-May/031316.html Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-By: Sascha Silbe <silbe@activitycentral.com>
* Do not cache the activity tray palette - OLPC #10978Gonzalo Odiard2011-07-241-0/+1
| | | | | | | Needed to update the secondary text if the title in the activity changes. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Acked-By: Simon Schampijer <simon@laptop.org>
* Display title in palette of shared activity OLPC #10676Simon Schampijer2011-07-241-36/+46
| | | | | | | | | | | | The patch does display the activity name as primary text and the session title as secondary text. This is coherent with the palette of an activity in the frame. To make this work properly we need to refactor the code a bit and make the palette on demand. Signed-off-by: Simon Schampijer <simon@laptop.org> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
* Friendstray: make sure the tray is right on the sharer side OLPC #10817Simon Schampijer2011-07-241-0/+4
| | | | | | | | | | | | | The code path that listens for the 'activity-added' signal is used to track the following use case: 'A' starts an activity (he gets the 'active-activity-changed' signal from the shell), he then at a later point shares the activity. In order to track joining/leaving buddies he needs to get the shared activity. On other machines if we receive the 'activity-added' signal we can ignore it, therefore the check if the current active activity is the shared one. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-By: Sascha Silbe <silbe@activitycentral.com>
* Set the nick name when the buddy properties changes OLPC #10750Simon Schampijer2011-07-241-2/+3
| | | | | | | | | | | We do get the correct nick information but we did not update the buddy because of checking for a wrong property key. I checked that in all the cases (alias-change or when we do get the buddy information in various ways) the key is "CONNECTION_INTERFACE_ALIASING + '/alias'". Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-By: Sascha Silbe <silbe@activitycentral.com>
* Fix some instances of log...(... % ...), pylint complianceSimon Schampijer2011-07-241-5/+6
| | | | | Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-By: Sascha Silbe <silbe@activitycentral.com>
* Group members of a shared activity around it OLPC #10675Simon Schampijer2011-07-243-55/+86
| | | | | | | | | | | | | | | | | | | | | | | Like in previous versions we use the shell model and listen if the current-activity changes. We do then call 'SetCurrentActivity' and let the other buddies know. If we started the activity and share it later we listen on the 'ActivitiesChanged' signal and do call 'SetCurrentActivity' then so the other buddies can update their views accordingly. This patch also removes the dependency in the shell on the neighborhood model which was a hack to determine the color of a shared activity. The neighborhood view now updates the color accordingly and that information is transferred to the shell. The patch furthermore removes the tracking of the own buddy when we receive 'ActivitiesUpdated' in the neighborhood model. With the changes from above this triggered an error like described in OLPC #10671. A few checks have been added to make sure that #10671 does not occure anymore. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Sascha Silbe <silbe@activitycentral.com>
* View Source: consistent use of _logger.debugWalter Bender2011-07-181-4/+4
| | | | | | | | | There had been a mix of the use of logging.debug and _logger.debug throughout the code. _logger is now used in all cases. [tweaked description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com> Acked-by: Sascha Silbe <silbe@activitycentral.com>
* Gabble: do not add ourself to the model twice OLPC #10965Simon Schampijer2011-07-061-0/+5
| | | | | | | | | | | | | We do add ourself to the model by default. When we are connected to the server it often gives us as well ourself back. This is due to a bug in the @online@ implementation in ejabberd. The first version to have this fixed is v2.1.7, more background info at https://support.process-one.net/browse/EJAB-1391. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-By: Sascha Silbe <silbe@activitycentral.com>
* salut: when nick changes update the friends view OLPC #10749Simon Schampijer2011-07-041-0/+2
| | | | | | | | This is a follow up fix of a glitch not handled by ac626ff ("Fully update the salut account information when the nick name changes"). Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Sascha Silbe <silbe@activitycentral.com>
* Add missing import (follow up of OLPC #10798)Simon Schampijer2011-07-041-0/+1
| | | | | | | | | This is a fix for a regression introduced by commit 9d0d372 ("Raise alert when trying to send an entry without an associated file OLPC #10798"). Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-By: Sascha Silbe <silbe@activitycentral.com>
* Use the same wording for the filesize of an entry without a file SL #2880Simon Schampijer2011-07-011-3/+2
| | | | | | The change has no impact on existing translations, since we use as well util.format_size when no filesize is specified.
* Journal detail view: sync updates of elements SL #2926Simon Schampijer2011-06-241-15/+2
| | | | | | | | | If you did click on the favorite icon and had typed something in the description field before this was lost. We now make sure everything is synced before writing to disk. Acked-by: Simon Schampijer <simon@laptop.org> Reviewed-by, Tested-by: Walter Bender <walter@laptop.org>
*