Commit Graph

5836 Commits

Author SHA1 Message Date
Pootle daemon
b57e120c54 Commit from Sugar Labs: Translation System by user cjl.: 4 of 40 messages translated (2 fuzzy). 2012-07-15 06:25:18 +02:00
Daniel Drake
3bbc4ef1c6 presence: use RoomConfig1 to configure channel properties (#3629)
This code was still using regular Telepathy properties to
set important configuration such as Anonymous=False.

However, as of Telepathy specification 0.24.0, these properties have
gone away.

    http://telepathy.freedesktop.org/spec/Channel_Type_Text.html
    Changed in 0.24.0. This interface used to have a bunch of clunky
    Telepathy.Properties. They have been removed in favour of D-Bus
    properties on the Room2, Subject2 and RoomConfig1 interfaces.

Switch to using RoomConfig1 (where available) to set this
configuration. The invite-restricted flag is no longer available and
actually seems to have been removed a long while back.

Fixes sharing of activities over gabble on new platforms such
as Fedora 17.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Sascha Silbe <silbe@activitycentral.com>
2012-07-04 15:22:36 -06:00
Simon Schampijer
ea1389cbbb Icon: remove documentation that has not much of a value 2012-06-21 14:38:41 +02:00
Simon Schampijer
61d54cf7e2 EventIcon: Have a default create_palette method
The create_palette mechanism allows to create
palettes on demand and not for each icon upfront
whether it will be needed or not.

If you hover over an EventIcon and there is no
palette already associated with the Invoker, the Invoker
will call create_palette to see if it can be created
on demand. With this patch the EventIcon will return None
here (see as well CellRendererIcon or ToggleToolButton which
are having the same default behavior).
When subclassing EventIcon the create_palette method can
be overwritten and a Palette returned (see for example
the ActivityIcon in the HomeView).

Without this patch you can see tracebacks when hovering
over the EventIcon because the Invoker tries to call
create_palette.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Benjamin Berg <benzea@sugarlabs.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
2012-06-21 14:28:01 +02:00
Simon Schampijer
020917ac02 EventIcon: all the events go directly to the event box
Position the event box window above the windows of its child, that way
all events inside the event box will go to the event box. If the window is
below, events in windows of child widgets will first go to that widget,
and then to its parents [1].

[1] http://developer.gnome.org/gtk3/3.4/GtkEventBox.html#gtk-event-box-set-above-child

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Benjamin Berg <benzea@sugarlabs.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
2012-06-21 14:28:01 +02:00
Simon Schampijer
eccef5b092 EventIcon: Make the child window of the event box invisible
We do use the EventBox only to receive events, hence the
window that the even box creates should be a GDK_INPUT_ONLY
window, which means that it is invisible and only serves to
receive events [1].

[1] http://developer.gnome.org/gtk3/3.4/GtkEventBox.html#gtk-event-box-set-visible-window

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Benjamin Berg <benzea@sugarlabs.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
2012-06-21 14:28:01 +02:00
Pootle daemon
ed8c58a801 Commit from Sugar Labs: Translation System by user cjl.: 25 of 40 messages translated (0 fuzzy). 2012-06-21 03:31:10 +02:00
Pootle daemon
73b735d3ef post-branch catch up, Pushing many PO files 2012-06-20 19:41:23 -04:00
Pootle daemon
93fbe56a68 Commit from Sugar Labs: Translation System by user cjl.: 31 of 40 messages translated (0 fuzzy). 2012-06-19 06:38:36 +02:00
Pootle daemon
787b43ccca Commit from Sugar Labs: Translation System by user cjl.: 30 of 40 messages translated (1 fuzzy). 2012-06-19 06:26:59 +02:00
Pootle daemon
f0ad4c287d Commit from Sugar Labs: Translation System by user cjl.: 39 of 40 messages translated (1 fuzzy). 2012-06-19 05:53:48 +02:00
Pootle daemon
5bd89044c5 Commit from Sugar Labs: Translation System by user cjl.: 40 of 40 messages translated (0 fuzzy). 2012-06-19 01:38:09 +02:00
Pootle daemon
2b96636c37 Commit from Sugar Labs: Translation System by user cjl.: 40 of 40 messages translated (0 fuzzy). 2012-06-18 23:30:45 +02:00
Pootle daemon
949ecc2f91 Commit from Sugar Labs: Translation System by user cjl.: 40 of 40 messages translated (0 fuzzy). 2012-06-18 23:20:54 +02:00
Pootle daemon
bd1c9f06a8 Commit from Sugar Labs: Translation System by user cjl.: 40 of 40 messages translated (0 fuzzy). 2012-06-18 23:18:20 +02:00
Pootle daemon
6391a6c172 Commit from Sugar Labs: Translation System by user cjl.: 40 of 40 messages translated (0 fuzzy). 2012-06-18 23:17:24 +02:00
Pootle daemon
1d696ce89f Commit from Sugar Labs: Translation System by user cjl.: 40 of 40 messages translated (0 fuzzy). 2012-06-18 23:13:35 +02:00
Pootle daemon
48bb642f75 Commit from Sugar Labs: Translation System by user cjl.: 40 of 40 messages translated (0 fuzzy). 2012-06-18 23:11:51 +02:00
Pootle daemon
b8ab6c9d21 Commit from Sugar Labs: Translation System by user cjl.: 40 of 40 messages translated (0 fuzzy). 2012-06-18 23:04:54 +02:00
Pootle daemon
40d6581a28 Commit from Sugar Labs: Translation System by user cjl.: 40 of 40 messages translated (0 fuzzy). 2012-06-18 22:17:11 +02:00
Pootle daemon
04271ea4e1 Commit from Sugar Labs: Translation System by user cjl.: 1 of 40 messages translated (18 fuzzy). 2012-06-18 21:48:52 +02:00
Pootle daemon
f35aefce1c Commit from Sugar Labs: Translation System by user cjl.: 40 of 40 messages translated (0 fuzzy). 2012-06-18 21:07:05 +02:00
Pootle daemon
fe46dc1701 Commit from Sugar Labs: Translation System by user cjl.: 40 of 40 messages translated (0 fuzzy). 2012-06-18 20:53:13 +02:00
Pootle daemon
1f9d02edb7 Commit from Sugar Labs: Translation System by user cjl.: 35 of 35 messages translated (0 fuzzy). 2012-06-13 19:09:41 +02:00
Pootle daemon
2d2b88be93 Commit from Sugar Labs: Translation System by user cjl.: 40 of 40 messages translated (0 fuzzy). 2012-06-13 18:36:43 +02:00
Pootle daemon
23616595eb Commit from Sugar Labs: Translation System by user cjl.: 40 of 40 messages translated (0 fuzzy). 2012-06-07 17:50:44 +02:00
Simon Schampijer
512f14974e Release 0.96.4 2012-06-06 17:10:18 +02:00
Simon Schampijer
d57212a040 Make sure we have a widget before attaching an invoker, SL #3460
The _ToolbarPalette does get passed the invoker on
initialisation. But we do create the PaletteWindowWidget
later. We do attach the invoker to the widget when calling
_setup_widget that is why it was still working without that
patch.

This patch prevents the traceback that we had because of not
having a widget at this point.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Tested-by: Manuel Quiñones <manuq@laptop.org>
2012-06-06 14:57:52 +02:00
Simon Schampijer
af320f91f8 Replacing set_data/get_data with a python attribute
set_data/get_data not available anymore is not available anymore [1]. The
recommended approach is using a python attribute, which we do.

Changing to use the attribute in the activity class slipped by mistake
into 6330204e91.

[1] https://bugzilla.gnome.org/show_bug.cgi?id=641944

Signed-off-by: Simon Schampijer <simon@laptop.org>
Tested-by: Manuel Quiñones <manuq@laptop.org>
2012-06-06 14:56:44 +02:00
Simon Schampijer
e97e5cac6d Release 0.96.3 2012-06-05 23:46:33 +02:00
Simon Schampijer
6330204e91 Move the translation initialisation to an earlier stage, SL #3654
Must be done early, some activities set translations globally. Remove
the support for the langpackdir.

Signed-off-by: Simon Schampijer <simon@laptop.org>
2012-06-05 23:45:26 +02:00
Pootle daemon
cd9a2b4501 Commit from Sugar Labs: Translation System by user mschlager.: 40 of 40 messages translated (0 fuzzy). 2012-06-05 21:54:04 +02:00
Simon Schampijer
439d3bf08d Release 0.96.2 2012-06-01 20:51:50 +02:00
Simon Schampijer
6005d5c2ed Adding mime.py to POTFILES.in 2012-06-01 20:50:28 +02:00
Simon Schampijer
433c6391ec Activity Toolbar Description input field wrap text, SL #3586
Signed-off-by: Gary C. Martin <garycmartin@googlemail.com
Acked-by: Simon Schampijer <simon@laptop.org>
2012-06-01 19:32:51 +02:00
Manuel Quiñones
1beb8757c1 ToolButton: add 'icon_name' as a GObject property SL #3658
Sugar ToolButton inherits from Gtk.ToolButton but is not overwriting
'icon_name' property.  So 'icon_name' can be passed to the constructor
of Sugar ToolButton but the result is different than setting it via
ToolButton.props.icon_name.

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
2012-06-01 11:12:52 -03:00
Simon Schampijer
ab643a1076 Display spinner cursor when saving after closing the activity, OLPC #11691
Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Daniel Drake <dsd@laptop.org>
Tested-by: Manuel Quiñones <manuq@laptop.org>
2012-05-30 11:56:34 +02:00
Daniel Drake
fd7b599710 Object Chooser: update for GDK3 get_xid()
In GDK3 the 'xid' attribute is gone and is replaced with
gdk_x11_window_get_xid(), or the get_xid() method in Python.

Needed to be able to open the object chooser from Browse without hassle.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
2012-05-22 13:00:24 +02:00
Pootle daemon
ed7d1e8490 Commit from Sugar Labs: Translation System by user cjl.: 35 of 35 messages translated (0 fuzzy). 2012-05-19 18:37:17 +02:00
Simon Schampijer
47c838acd8 Release 0.96.1 2012-05-04 18:57:31 +02:00
Carlos Garnacho
f36fc4ae85 Tray: set a minimum size in the viewport so that it allows scrolling
The minimum height/width requested by the GtkViewport still tries to cater
for all contained children, which makes the [VH]Tray widgets to grow as
new items are added. Instead, request a minimum width/height of 0 to avoid
the Tray from growing, and having scrolling kick in instead.

Also, fixed what seemed to be a typo in do_get_preferred_height(), where
the viewport width was requested instead.

http://bugs.sugarlabs.org/ticket/3522

Signed-off-by: Carlos Garnacho <carlos@lanedo.com>
Acked-by: Simon Schampijer <simon@laptop.org>
2012-05-04 16:26:48 +02:00
Simon Schampijer
abe02123b7 Release 0.96.0 2012-04-24 19:26:38 +02:00
Pootle daemon
9db223fd25 Push many files from Pootle 2012-04-24 00:01:05 -04:00
Pootle daemon
4230a7ff89 Commit from Sugar Labs: Translation System by user cjl.: 35 of 35 messages translated (0 fuzzy). 2012-04-23 20:45:31 +02:00
Simon Schampijer
db2bcbb76b Release 0.95.6 2012-04-19 18:40:21 +02:00
Simon Schampijer
7a07bb1001 Draw accelerator in Palette SL #3459
The accelerator in the primary information in the Palette
has not been drawn because there was not enough space
reserved for it. The preferred size we get back for the
Palette window does not include the accelerator of the
Gtk.AccelLabel. We need to include that in our calculation for
the Palette size.

In order to make that information available which is part
of the Palette class we need to pass the instance to the
PaletteWindowWidget instance.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Daniel Drake <dsd@laptop.org>
2012-04-19 18:37:15 +02:00
Simon Schampijer
16040b2f30 Draw border for palette all the time SL #3383
gtk_render_frame_gap [1] does expect an initial and an end
coordinate for the gap. paint_box_gap [2] which we used
before expected a starting position of the gap and the width
of the gap as parameter.

The patch does calculate the end coordinate parameter for
the gap from the initial coordinate and the width of the
gap.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Daniel Drake <dsd@laptop.org>

[1] http://developer.gnome.org/gtk3/3.0/GtkStyleContext.html#gtk-render-frame-gap
[2] http://developer.gnome.org/gtk/2.24/GtkStyle.html#gtk-paint-box-gap
2012-04-19 17:15:01 +02:00
Pootle daemon
877ec3847c Commit from Sugar Labs: Translation System by user cjl.: 34 of 35 messages translated (1 fuzzy). 2012-03-28 23:40:32 +02:00
Simon Schampijer
f8c68b8330 Update ALL_LINGUAS
- remove qu (code change for Quechua to quz)
- remove ay (code change for Aymara to aym)
- remove cpp [Crioulo] no L10n planned at present
- remove pis [Solomon Islands Pidgin] no L10n planned at present
- remove tpi [Papua New Guinea Pidgin (Tok Pisin)] no L10n planned at present

Signed-off-by: Chris Leonard
Acked-by: Simon Schampijer <simon@laptop.org>
2012-03-27 14:00:19 +02:00
Pootle daemon
bda912b669 Commit from Sugar Labs: Translation System by user HoboPrimate.: 35 of 35 messages translated (0 fuzzy). 2012-03-24 16:19:25 +02:00