Commit Graph

6021 Commits

Author SHA1 Message Date
James Cameron
2ddd64bace power: suppress failure to remove file
It does not matter if the file cannot be removed, so do not report it.
2015-05-14 20:24:32 +10:00
James Cameron
561271bad1 power: set path to file once 2015-05-14 20:24:32 +10:00
Gonzalo Odiard
d9e6fa6813 CellRendererIcon: cache offsets
Instead of calculating them on each render.  The cache is removed when
the size is changed.

Signed-off-by: Manuel Quiñones <manuel.por.aca@gmail.com>
2015-05-13 19:24:17 -03:00
Gonzalo Odiard
f08757d75f CellRendererIcon: remove unused frame
The white frame is not visible over the white background.

Signed-off-by: Manuel Quiñones <manuel.por.aca@gmail.com>
2015-05-13 19:24:11 -03:00
Gonzalo Odiard
3a6427cdc6 CellRendererIcon: improve calculation in do_render
Use a more efficient method to check if the pointer is inside the cell,
because we have the cell_area in the do_render method.

Signed-off-by: Manuel Quiñones <manuel.por.aca@gmail.com>
Signed-off-by: Gonzalo Odiard <godiard@sugarlabs.org>
2015-05-13 19:24:01 -03:00
Sam Parkinson
a56282991f Add ability to launch a bundle
This commit adds the `launch_bundle` function in `sugar3.activity.
activity` which accesses the same function in the shell is over dbus.
This is means the shell process launches the bundle.  Activities
should not launch child processes as per the Rainbow security model
[1].

[1]  http://wiki.laptop.org/go/Rainbow
2015-05-12 16:11:49 -03:00
Martin Abente Lahaye
b8cca638d6 Release 0.105.0 2015-04-20 13:52:25 -04:00
Gonzalo Odiard
026146a081 Pep8 fixes 2015-04-17 08:05:58 +10:00
Gonzalo Odiard
954be953ca Remove new line chars when create linfo files
If a translator add a '\n' char in the summary translation
ConfigParser can't parse the linfo file.
Remove them when the file is created and show a message to warning
to the developer.
2015-04-17 08:05:58 +10:00
Martin Abente Lahaye
06c3f01998 Revert "Add ability to launch a bundle"
This reverts commit 8fcb0b48d3.
2015-04-12 10:11:59 -04:00
Manuel Quiñones
8fcb0b48d3 Add ability to launch a bundle
FIXME, to be written.
2015-04-12 20:02:11 +10:00
Gonzalo Odiard
f7966382b8 Read icon attach points when is not possible get the info from gtk
Gtk has deprecated gtk-icon-get-attach-points on version 3.14
We need that information to place pur badges,
this fix read the information from the .icon file

[1] https://developer.gnome.org/gtk3/stable/GtkIconTheme.html#gtk-icon-info-get-attach-points
2015-04-09 11:36:19 -04:00
Sam Parkinson
597721877f Merge branch 'godiard-try-2' 2015-04-07 07:28:27 +10:00
Gonzalo Odiard
a43b972d1b Don't break activity startup if .info have 'class' instead of 'exec'
When we ported sugar to Gtk3 we removed the support of the fields
exec and service_name due they were deprecated for a long time [1].
But this is still a problem in deployments, and we already added
compatibility for the service_name field.
Here [3] there is a long thred were we discussed this issue.

[1] ae85dd62d4
[2] 32f97b48c3
[3] http://lists.sugarlabs.org/archive/sugar-devel/2013-October/045404.html
2015-04-06 08:51:39 -03:00
Martin Abente Lahaye
3c88e987e4 Release 0.104.1 2015-03-10 11:03:17 -03:00
Martin Abente Lahaye
12a6d2bccb Update Igbo translations from ibo.po
Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
2015-03-10 10:58:03 -03:00
translation server
802396062d New files added from Sugar Labs based on templates 2015-03-09 22:53:53 +00:00
tch
88881e8261 Commit from Sugar Labs by user tch.: 109 of 109 strings translated (0 need review). 2015-03-05 22:25:21 +00:00
tch
da550253b3 Commit from Sugar Labs by user tch.: 109 of 109 strings translated (0 need review). 2015-03-05 22:03:32 +00:00
tch
504aa5a574 Commit from Sugar Labs by user tch.: 109 of 109 strings translated (0 need review). 2015-02-26 13:17:36 +00:00
tch
d6a0b5bdef Commit from Sugar Labs by user tch.: 109 of 109 strings translated (0 need review). 2015-02-26 13:16:22 +00:00
tch
68ba00ae48 Commit from Sugar Labs by user tch.: 109 of 109 strings translated (0 need review). 2015-02-26 13:15:14 +00:00
tch
da6b4f34f9 Commit from Sugar Labs by user tch.: 1 of 109 strings translated (0 need review). 2015-02-25 17:18:04 +00:00
translation server
e705391886 Merge branch 'master' of github.com:sugarlabs/sugar-toolkit-gtk3 2015-02-25 15:47:07 +00:00
translation server
663b1436b0 New files added from Sugar Labs based on templates 2015-02-25 15:24:51 +00:00
translation server
f95715c6fe New files added from Sugar Labs based on templates 2015-02-25 15:24:48 +00:00
Martin Abente Lahaye
a10da70102 Release 0.104.0 2015-02-13 09:00:08 -03:00
tch
00ee27df63 Commit from Sugar Labs by user tch.: 109 of 109 strings translated (0 need review). 2015-01-22 13:40:04 +00:00
Martin Abente Lahaye
f9bfab273d Release 0.103.2 2015-01-16 08:26:47 -03:00
Ignacio Rodríguez
ee564948bc Raise the palette window when its mapped
This patch raise the palette window when its mapped
Its use: Gtk.Window.present [1] the user will
be able to saw the palette now when your apply the
test case of #4463

[1] https://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-present
Fixes #4463
2015-01-14 16:14:29 -03:00
Martin Abente Lahaye
7739336fb6 Provide access to Gtk.Clipboard.set_with_data
As described in SL#4307 Gtk.Clipboard.set_with_data is not
introspectable, therefore it can't be accessed though python
Gtk bindings.

Therefore, as a workaround for this issue, we provide acesss
to this method though a custom SugarExt binding.

This solution uses Carlos Garnacho annotations as described in
https://bugzilla.gnome.org/show_bug.cgi?id=656312#c18

Fixes SL#4307.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
2015-01-14 15:53:37 -03:00
Ignacio Rodríguez
47692f56f0 Log error when the espeak plugin is not installed.
Now when the espeak plugin is not installed there will be an
error (logging.error) in the log. Instead of the ugly message
of Gst
Also, if Gst isnt installed it debug a error too.

Fixes #3345
2015-01-08 17:42:03 -03:00
Goutam
b5cae5fb56 Ellipses defaulted to end of long activity titles;fixes 1429 2014-12-17 10:14:23 -03:00
Ignacio Rodríguez
cef1ad7590 Get markup text as default
Now sugar-toolkit get markup (glib.markup_escape_text) and
set it.

This fixes SL#4456
2014-12-12 17:51:26 -03:00
Sam Parkinson
cbc7158ecd Merge branch 'fix_parsing_exception' of https://github.com/godiard/sugar-toolkit-gtk3 into master 2014-12-06 07:29:49 +11:00
Gonzalo Odiard
3c4ac98baf Fix import of exception from ConfigParser
In the commit f0927c364c
the ParsingError is not properly imported.
2014-12-05 13:06:27 -03:00
Gonzalo Odiard
50ac9f36d6 Revert "Use consistent ellipsis mode"
This reverts commit 0d428fc913.

This is not the right solution. We should ellipse at the end.
The change was not discussed or approved.
2014-12-04 18:19:05 -03:00
Ignacio Rodríguez
2b634b6d0c Merge branch '163gal-master' 2014-12-04 12:29:52 -02:00
Ezequiel Pereira Lopez
0d428fc913 Use consistent ellipsis mode 2014-12-04 12:00:37 -02:00
Martin Abente Lahaye
95a0c3f5f1 Release 0.103.1
Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
2014-12-01 20:32:31 -03:00
Gonzalo Odiard
f0927c364c Don't break if translation can't be parsed
If the .linfo file can't be parsed, use the untranslated name/summary,
but don't  break activity load.
2014-11-25 13:09:22 -03:00
Sam Parkinson
712682a3b0 BundleBuilder: Don't crash on malformed translation files
The BundleBuilder currently crashes on a malformed translation file.  This is
good for humans (makes them fix their issues) but crashes bots who need it
compiled and don't care about that single translation file.

This patch adds a --no-fail option which stops the builder from crashing
2014-11-22 02:40:59 -03:00
Gonzalo Odiard
b78989b755 Add parameters to configure tts
Activities can set pitch, rate or voice used to play text to speech
2014-11-12 15:18:04 -03:00
Gonzalo Odiard
7b82eb6ae8 Add a structure to store the translated voice names 2014-11-12 15:17:51 -03:00
Gonzalo Odiard
44f9201e79 Initialize Gst before use speech
In sugar gst was initialized at startup, now we need initialize Gst
in the speech code.
2014-11-12 15:17:43 -03:00
Gonzalo Odiard
31d8de55a7 TTS: Cache the voices list 2014-11-12 15:17:33 -03:00
Gonzalo Odiard
57bd0890f5 Add a list of language names to translate
To display a list of translated language names in the UI,
we add a list of the available languages, because the espeak
language names are not translated.
2014-11-12 15:16:51 -03:00
Gonzalo Odiard
d7c9645b60 Move SpeechManager from sugar to sugar-toolkit-gtk3
This is done to be able to use this implementation of the feature
in the activities. A complementary patch is needed in sugar module.
2014-11-12 15:16:40 -03:00
Gonzalo Odiard
952b8275a1 Add a testing method to open a activity with a uri
This can be used in the test to check if the activity can manage
different file formats.
2014-11-11 12:03:02 -03:00
Sam Parkinson
f48c3247f6 Merge branch 'godiard-bundlebuilder_gitls' 2014-10-18 19:31:08 +11:00