5546 Commits (ba8c435e5091c601820d6d08e7def119b0c8d3c3)
 

Author SHA1 Message Date
Daniel Narvaez 6c4a9b34a1 Add a get_xo_color API 11 years ago
Daniel Narvaez 671ad1ae3e Require authentication before making API calls
Otherwise anything might access the bus.

Note: This will not work if the user moves to another html page.  They
will not have a port/key passed in the query string of the URL, so
they won't be able to connect.
11 years ago
Daniel Narvaez ff5612caee Add API to close an html activity
We are exposing it using a websocket server. The port of the server
is passed in the search string of the file:// url.
11 years ago
walterbender 17cd3e33bc Merge pull request #16 from dnarvaez/xocolor
Improve XOColor fallback logic
11 years ago
Daniel Narvaez 6cbc3d1a48 Improve XOColor fallback logic
We was failing if the value in gconf was None. Also parsing
the string once just to see if it's valid was pretty dumb.
11 years ago
walterbender 79fa03e846 Merge pull request #14 from dnarvaez/gconf-list-v2
Gconf list v2
Signed off by Walter (tested in the context of cpsection/keyboard)
11 years ago
Daniel Narvaez 680c501ad6 Add a binding for gconf_client_set_list (using strings) 11 years ago
Simon Schampijer c9a6a36567 Merge pull request #11 from dnarvaez/html-exec
Add exec script to build pure html activities
11 years ago
Daniel Narvaez d4019684a3 Add exec script to build pure html activities
An hello world activity using the script
http://git.sugarlabs.org/hello-world/mainline/trees/html
11 years ago
Daniel Narvaez b59b326dbf Merge pull request #10 from manuq/4325
Color Palette: get back horizontal padding - SL #4325
11 years ago
Manuel Quiñones 7156e67aa2 Color Palette: get back horizontal padding - SL #4325
The PaletteWindow lost the horizontal padding when it started to be
used as replacement of palette menus.  So now each implementation has
to add the padding.

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
11 years ago
Daniel Narvaez c78ebfd4d3 Merge pull request #9 from walterbender/fix-locale-4
Use gettext algorithm to determine locale for activity.linfo
11 years ago
Walter Bender b4c0b2258f Use gettext algorithm to determine locale for activity.linfo
When activity bundles are loaded, the activity name and summary are
pulled from an activity.linfo file that is associated with
locale. However, sometimes locale, which uses $LANG has been
superceded by $LANGUAGE as set in
extensions/cpsection/languages/model.py. This patch uses the same
algorithm as gettext.py to find activity.linfo

This problem is seen on the .AU systems which use en_AU for locale and
en_GB for LANGUAGE.
11 years ago
manuq 9ef961cc94 Merge pull request #4 from dnarvaez/no-color
Handle invalid /desktop/sugar/user/color

Acked-by: Manuel Quiñones <manuq@dev.laptop.org>
11 years ago
Daniel Narvaez 7cb4a1d72d Handle invalid /desktop/sugar/user/color
This is currently breaking the activity list unit test where
the profile has not been initialized. But, more in general,
it seems like we should not be crashing if our settings has
unexpected values.
11 years ago
dnarvaez 7ac2cae7c6 Merge pull request #3 from dnarvaez/unit-tests2
Initial bits of unit tests
11 years ago
Daniel Narvaez 6202d4d5cc Bind xdgmime in SugarExt
And use it in the sugar3.mime modules. This allows
to get rid of the pygtk generated sugarbase module,
along with the wrapping code.

Also add more cases to test_time to make sure
everything is still working.
11 years ago
Daniel Narvaez e6397cf2db Some initial infrastructure for UI tests
The uitree module exposes the at-spi tree. We can use it to do
functional tests of the UI, by checking if the expected
widgets exists, clicking them etc.

A simple example of how this can be used is in the test, which
runs a window and check that it has the expected button.
11 years ago
Daniel Narvaez 5ad6c4e236 Add test for dev command 11 years ago
Daniel Narvaez 65560b0b94 Add a SUGAR_ACTIVITIES_PATH environment variable
Useful for tests but perhaps for other stuff too.
11 years ago
Daniel Narvaez 617c11a078 Add test for the genpot command 11 years ago
Daniel Narvaez ac153f3cdc Add test for the build command 11 years ago
Daniel Narvaez f66fbe4c08 Add tests for bundlebuilder 11 years ago
Daniel Narvaez 148655635f Add a make target for tests
We are running the existing test_mime.py. All the other tests which
are not unit tests but more examples of code one can run interactively
are moved to the example directory.
11 years ago
Daniel Narvaez c5f30a9fbe Support out of source directory builds
It works similarly to automake. The current working directory
is used as build directory.
11 years ago
Daniel Narvaez 07d593fe52 Rework the install to use git files
Instead of installing everything except a few ignored files. This
is consistent with the other packagers.
11 years ago
Daniel Narvaez 9db81af598 Remove a few unused keywords 11 years ago
manuq a776c72d46 Merge pull request #1 from dnarvaez/unused-imports
Remove a lot of unused imports

Acked-by: Manuel Quiñones <manuq@laptop.org>
11 years ago
Daniel Narvaez db448c4eea Remove a lot of unused imports
Signed-off-by: Daniel Narvaez <dwnarvaez@gmail.com>
11 years ago
Manuel Quiñones a3cda7c49f Revert "icon.py: move all imports to the top"
We have circular imports if we do this.

This reverts commit 355ca09a8c.
11 years ago
Manuel Quiñones 355ca09a8c icon.py: move all imports to the top
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
11 years ago
Simon Schampijer b3048112d6 Palette: handle the case where setting the transient window does fail, SL #4221
The expected parent window did likely change, for example
this can happen when we switch the Home Views while a Palette
of a canvas icon is popping up (SL #4221). In that case
send the 'popdown' signal so that for example the hovering
state feedback can be cleared.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
11 years ago
Simon Schampijer dcbdcd77fe i18n get_locale_path: handle the case when the default locale is not set, SL #4450
If the default locale is not set (see SL #4450 for a use case), get_locale_path
does now return None so that the sugar-activity script can handle that case
cleanly.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Daniel Drake <dsd@laptop.org>
11 years ago
Simon Schampijer 63b8e87b1a ToggleToolbutton: do hide the tooltip when clicked or touched
This is the same behaviour as for the RadioToolButton and the
ToolButton. See 5a1b380dd6 where
we did the same for the RadioToolbutton.

Updated the toolbuttons.py test to be able to test that code
path.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
11 years ago
Manuel Quiñones b9234202ab Add testcase for Gtk.ComboBox
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
11 years ago
Manuel Quiñones a7e0e5ae57 Make the size of the preview image a public constant
Instead of hardcoding it.

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
11 years ago
Daniel Narvaez 5ea6472e0d Add missing dependencies
I'm not sure how it works with GNU ld, but it breaks with ld
gold and it's clearly wrong anyway.
11 years ago
Daniel Narvaez 7ba72c4c61 Remove duplicated library flags
They are already provided by the pc files.
11 years ago
Manuel Quiñones d32523655c Fix subtoolbars height - SL #4019
Remove the vertical padding from the box that contain the toolbar, and
change the order of drawings in the container widget so that the
outline looks right.  This has been tested with screenshots, see the
gif animation attached to the ticket.

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
11 years ago
Simon Schampijer 4199c0596b Notebook: fix type in doc string 11 years ago
Simon Schampijer 56da4d8e0c Animation: Remove non-descriptive doc string 11 years ago
Simon Schampijer d77c6f563d Remove halfish done incomplete docstring 11 years ago
Daniel Narvaez 2bbeba2446 Logger: add cleanup function
Factored out from the sugar shell code

Acked-by: Simon Schampijer <simon@laptop.org>
11 years ago
Manuel Quiñones ee0e15b95d Fixup for previous commit, 693eaab9 - SL #4384
Forgot this change from my reviewers.

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
12 years ago
Manuel Quiñones 693eaab975 New ProgressIcon widget - SL #4384
A new icon widget useful to display progress.  It is compatible with
sugar3.graphics.icon.Icon .  The progress is represented filling the
icon.

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
12 years ago
Carlos Garnacho 3596e8c6cb palettemenuwidget: Ensure the widget is realized before popping it up, SL #4388
Otherwise the internal state is messed up, GTK+ grabs may be held on
unrealized widgets.

Signed-off-by: Carlos Garnacho <carlos@lanedo.com>
Acked-by: Simon Schampijer <simon@laptop.org>
12 years ago
Manuel Quiñones 5fd2dd8a98 Testsuite: set theme before running the test
Otherwise tests can't load icons before running because the icon theme
is not set.

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
12 years ago
Manuel Quiñones e36513f925 Adapt to icon changes - SL #3569
- In IconEntry: dialog-cancel -> entry-cancel

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
12 years ago
Manuel Quiñones 83efac4c57 Add testcase for CellRendererProgress - SL #1395
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
12 years ago
Manuel Kaufmann b729680568 Truncate labels on Palettes SL #4164
This was lost when PaletteMenuItem was added in
2d0ac2a952 of sugar source code.

That class does not handle the text_maxlen argument (default to 60). I
used this argument to set the Gtk.Label's size:
label.set_max_width_chars and use MIDDLE for its EllipSizeMode as
sugar3.graphics.palette.Palette does for its title and subtitle.

With these settings, the title of the palette and its items share the
same behaviour and are rendered with the same width.

Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
Acked-by: Manuel Quiñones <manuq@laptop.org>
12 years ago