[Sugar-devel] Features/GTK3 updated

2011-09-01 Thread Daniel Drake
Hi, http://wiki.sugarlabs.org/go/Features/GTK3 has been updated. Ready for the next round of feedback! Notable changes are: - The suggestion to use a 1.0 version tag has been dropped due to resistance - The idea of using a python trick to retain the 'sugar' module name has been dropped due to no

Re: [Sugar-devel] SecretAgent.GetSecrets() return value

2011-09-04 Thread Daniel Drake
On Sun, Sep 4, 2011 at 8:12 PM, Sascha Silbe si...@activitycentral.com wrote: I'd argue that Sugar shouldn't store the secrets at all but rather let NetworkManager take care of that. I agree, and this is exactly how my code works. That is unrelated to the issue at hand. A SecretAgent

Re: [Sugar-devel] SecretAgent.GetSecrets() return value

2011-09-06 Thread Daniel Drake
On Tue, Sep 6, 2011 at 10:54 PM, Dan Williams d...@redhat.com wrote: Not sure I follow this...  you shouldn't need a secret agent if all that the UI is doing is Update() and AddConnection().  A secret agent is only required if there are any agent-provided secrets (ie, some secret has the flag

Re: [Sugar-devel] Features/GTK3 updated

2011-09-06 Thread Daniel Drake
On Tue, Sep 6, 2011 at 7:01 PM, Marco Pesenti Gritti ma...@marcopg.org wrote: On 1 September 2011 17:41, Daniel Drake d...@laptop.org wrote: Hi, http://wiki.sugarlabs.org/go/Features/GTK3 has been updated. Ready for the next round of feedback! Did we consider moving from gconf to gsettings

Re: [Sugar-devel] SecretAgent.GetSecrets() return value

2011-09-06 Thread Daniel Drake
On Tue, Sep 6, 2011 at 11:20 PM, Dan Williams d...@redhat.com wrote: Like you say if a secret is wrong or needs to be changed, there's no facility to ask for that secret.  We can (and should) make sure NM would fail the connection with a NM_DEVICE_REASON_NO_SECRETS or something like that if NM

Re: [Sugar-devel] [PATCH] Wireless key dialog: Translate more strings (OLPC#9268)

2011-09-14 Thread Daniel Drake
On Mon, Aug 1, 2011 at 6:11 PM, Sascha Silbe si...@activitycentral.com wrote: As you are already touching this code, please consider replacing the %s with %r (the difference is in how strings containing special characters and quotes get displayed) and using a singleton tuple for the string

Re: [Sugar-devel] [PATCH] Wireless key dialog: Translate more strings (OLPC#9268)

2011-09-14 Thread Daniel Drake
On Wed, Sep 14, 2011 at 8:01 PM, Chris Leonard cjlhomeaddr...@gmail.com wrote: tuples (and singleton tuples) are also discussed on the link above. Thanks, I don't think this is what Sascha was getting at though. As written: If format requires a single argument, values may be a single non-tuple

[Sugar-devel] [PATCH] Wireless key dialog: handle delete_event correctly

2011-09-15 Thread Daniel Drake
When clicking 'OK' in the key dialog, the response callback correctly destroys the dialog after processing the response. However, this causes _key_dialog_destroy_cb to attempt to process a cancel response, causing an invalid message to be sent over dbus (which dbus rejects). Handle delete_event

[Sugar-devel] de-hippo'd CanvasIcon: windowed or not?

2011-09-15 Thread Daniel Drake
Hi, Me and Raul spent most of Sugarcamp Paris working on the no-hippo project. We made great progress - many hacks in the previous efforts were replaced with real code, and many temporarily removed bits of functionality were restored. However, we were left with one area of uncertainty:

[Sugar-devel] Hippo removal update

2011-09-15 Thread Daniel Drake
Hi, Raul and myself spent most of last weekend's Sugarcamp Paris working on removing hippocanvas from Sugar, with some help from Simon too. This was based on earlier work by Raul and Walter. To just give a quick update, we made a lot of progress. Many things that had been hacked or disabled in

[Sugar-devel] [PATCH sugar-artwork] Enforce white background on intro screen

2011-09-17 Thread Daniel Drake
As part of the hippocanvas removal process, we can move intro window theming details into the theme. The intro window has a white background for itself and its children. --- gtk/theme/gtkrc.em |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/gtk/theme/gtkrc.em

[Sugar-devel] [PATCH] Remove hippo from the intro screens

2011-09-17 Thread Daniel Drake
Switch to standard GTK containers. Specific coloring details have been moved to the theme at the same time. Based on earlier work by Raul Gutierrez and Walter Bender. --- src/jarabe/intro/colorpicker.py | 24 src/jarabe/intro/window.py | 122

[Sugar-devel] [PATCH sugar-toolkit] Don't put event box in toplevel window

2011-09-17 Thread Daniel Drake
From: Simon Schampijer si...@schampijer.de Remove an unnecessary toplevel widget. This event box was originally added by Marco to make it easier to take screenshot of the canvas area only (7f731457c2) but we're unsure why this is, and it doesn't seem to be needed for our current

[Sugar-devel] [PATCH sugar-artwork] Add style for naming alert

2011-09-17 Thread Daniel Drake
Apply a white background to the naming alert window and the entry widget. The textbuffer widgets require a grey background still, as that is used to draw their borders. --- gtk/theme/gtkrc.em |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/gtk/theme/gtkrc.em

[Sugar-devel] [PATCH sugar-toolkit] Remove hippo from naming alert

2011-09-17 Thread Daniel Drake
Reimplement the favorite icon as a ToggleButton, and use standard boxes, entrys and textviews for the other aspects. --- src/sugar/activity/namingalert.py | 227 +++-- 1 files changed, 90 insertions(+), 137 deletions(-) I know there is some discussion around

[Sugar-devel] [PATCH] Remove hippo from the frame

2011-09-18 Thread Daniel Drake
Based on earlier work by Raul Gutierrez and Walter Bender. The tricky part here is not placing frame elements in the corners of the screen, where grid-cell-sized squares are reserved, and also drawing the little grey border around the inner edges of the frame. Both of these issues are tackled

Re: [Sugar-devel] Thank you alsroot

2011-09-18 Thread Daniel Drake
On Sat, Sep 17, 2011 at 5:39 AM, Chris Leonard cjlhomeaddr...@gmail.com wrote: Dear Translation Team Members and Developers, Please join me in thanking Aleksey Lim (alsroot) for giving generously of his time and expertise to work on a number of long standing issues we've had with our Pootle

Re: [Sugar-devel] de-hippo'd CanvasIcon: windowed or not?

2011-09-18 Thread Daniel Drake
On Thu, Sep 15, 2011 at 9:38 PM, Marco Pesenti Gritti ma...@marcopg.org wrote: Hey, isn't the problem going away with GTK 3.0? From the release notes GDK has been rewritten to use ‘client-side windows’. This means that GDK maintains its own window hierarchy and only uses X windows where it

Re: [Sugar-devel] [PATCH] Remove hippo from the frame

2011-09-18 Thread Daniel Drake
On Sun, Sep 18, 2011 at 6:14 PM, Marco Pesenti Gritti ma...@marcopg.org wrote: On 18 Sep 2011, at 13:47, Daniel Drake d...@laptop.org wrote: +        # ask not to be collapsed if possible +        self.set_size_request(4 * style.GRID_CELL_SIZE, -1) This sucks a bit. Doesn't packing

Re: [Sugar-devel] [PATCH] XO_Packager: package files in git and the locale folder

2011-09-19 Thread Daniel Drake
On Tue, Sep 13, 2011 at 11:13 AM, Simon Schampijer si...@schampijer.de wrote: I just tested this patch while doing the Browse release (you have to be in a jhbuild environment to not use the system-wide bundle builder). Works for me as expected. Comments/Review on the patch? Reviewed. Looks

Re: [Sugar-devel] [PATCH sugar-toolkit] bundlebuilder: refactor get_files_git to Packager to avoid code duplication

2011-09-19 Thread Daniel Drake
On Mon, Sep 19, 2011 at 6:12 PM, Simon Schampijer si...@schampijer.de wrote: Follow up patch for b582736375218e8944b3ce3daac667c7910a7e73 Signed-off-by: Simon Schampijer si...@laptop.org Reviewed, looks good to me - exactly what I was thinking. Thanks Daniel

Re: [Sugar-devel] [PATCH] Simple NetworkManager-0.9 port

2011-09-22 Thread Daniel Drake
On Thu, Sep 15, 2011 at 9:30 PM, Thomas C Gilliard satel...@bendbroadband.com wrote: Please look at http://bugs.sugarlabs.org/ticket/3100 #3100 UNSP: Soas-v5-Coconut Beta only connects to jabber if using wired connection Sugar on a Stick 5 (Coconut) Fedora release 15 (Lovelock) Sugar:

Re: [Sugar-devel] [PATCH sugar-toolkit] Don't put event box in toplevel window

2011-09-27 Thread Daniel Drake
On Mon, Sep 26, 2011 at 4:42 PM, Sascha Silbe si...@activitycentral.com wrote: Excerpts from Daniel Drake's message of 2011-09-17 13:47:59 +0200: Remove an unnecessary toplevel widget. [...] Thanks, keep those clean-up patches coming! ;) Acked-By: Sascha Silbe si...@activitycentral.com

Re: [Sugar-devel] [PATCH sugar-artwork] Enforce white background on intro screen

2011-09-27 Thread Daniel Drake
On Sun, Sep 18, 2011 at 2:58 PM, Benjamin Berg ben...@sugarlabs.org wrote: On Sat, 2011-09-17 at 12:27 +0100, Daniel Drake wrote: As part of the hippocanvas removal process, we can move intro window theming details into the theme. The intro window has a white background for itself and its

Re: [Sugar-devel] [PATCH] Remove hippo from the intro screens

2011-09-27 Thread Daniel Drake
On Mon, Sep 26, 2011 at 4:38 PM, Sascha Silbe si...@activitycentral.com wrote: [class ColorPicker] +    def _button_press_cb(self, widget, event): +        if event.button == 1 and event.type == gtk.gdk.BUTTON_PRESS: Why do we need to check for BUTTON_PRESS here? We only subscribed to

Re: [Sugar-devel] [PATCH sugar-artwork] Add style for naming alert

2011-09-27 Thread Daniel Drake
On Sun, Sep 18, 2011 at 3:06 PM, Benjamin Berg ben...@sugarlabs.org wrote: On Sat, 2011-09-17 at 18:37 +0100, Daniel Drake wrote: Apply a white background to the naming alert window and the entry widget. The textbuffer widgets require a grey background still, as that is used to draw

Re: [Sugar-devel] [PATCH sugar-toolkit] Remove hippo from naming alert

2011-09-27 Thread Daniel Drake
On Mon, Sep 26, 2011 at 2:55 PM, Sascha Silbe si...@activitycentral.com wrote: I haven't tried it out to verify the layout, but the code changes look sane to me. Reviewed-By: Sascha Silbe si...@activitycentral.com pushed with the suggested changes, thanks

[Sugar-devel] [PATCH v2] Remove hippo from the frame

2011-09-27 Thread Daniel Drake
Based on earlier work by Raul Gutierrez and Walter Bender. The tricky part here is not placing frame elements in the corners of the screen, where grid-cell-sized squares are reserved, and also drawing the little grey border around the inner edges of the frame. Both of these issues are tackled

Re: [Sugar-devel] [ASLO] Release Speak-32

2011-09-27 Thread Daniel Drake
On Tue, Sep 27, 2011 at 12:57 AM, Chris Leonard cjlhomeaddr...@gmail.com wrote: I looked at this commit http://git.sugarlabs.org/speak/mainline/commit/b7c2e4d33cee6757ef1f9a960a9fca65f242f5c9 and I wonder if it really solves the problem from a L10n perspective. It's a bad commit regardless

[Sugar-devel] [PATCH v3] Remove hippo from the frame

2011-10-03 Thread Daniel Drake
Based on earlier work by Raul Gutierrez and Walter Bender. The tricky part here is not placing frame elements in the corners of the screen, where grid-cell-sized squares are reserved, and also drawing the little grey border around the inner edges of the frame. Both of these issues are tackled

[Sugar-devel] Force icon sizes in style.py to be even numbers

2011-10-03 Thread Daniel Drake
Hi, While working on no-hippo stuff I have solved one of our old bugs: the issue where when you move from one view to the other, the XO man zoom animation leaves the XO man in the wrong position and then he uncomfortably 'jumps' into place on the final frame. It's actually broken into 2 parts:

Re: [Sugar-devel] Force icon sizes in style.py to be even numbers

2011-10-05 Thread Daniel Drake
2011/10/4 Gary Martin garycmar...@googlemail.com: From a visual point of view, if folks have spent time putting horizontal and vertical vectors in expected integer positions – I'm occasionally known to be that tweaky ;) – then they will start going a little blurry as they shift over

[Sugar-devel] [PATCH] SpreadLayout: fix grid cell allocation

2011-10-05 Thread Daniel Drake
The calculation of how many grid cells to assign a child element has a bug in that it rounds down instead of up. With a grid cell size of 4x4, if a child element of 9 pixels in size is added, the current code calculates that it needs 2.25 grid cells, but then rounds this down to 2. When the child

[Sugar-devel] [PATCH 1/2] Fix presence detection of keyboard layouts/options

2011-10-06 Thread Daniel Drake
foo is [] is not a valid way of checking if a list is empty as this code intends. foo alone as a boolean operator is an equivalent length check, and also serves as a is not None check too. --- bin/sugar-session |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git

[Sugar-devel] [PATCH 2/2] Only activate keyboard configuration if it was configured, OLPC #11175

2011-10-06 Thread Daniel Drake
Sugar is currently activing a new keyboard config even if the user did not change any settings. Avoid this by only activating the configuration if user-specified settings are found in gconf. Also remove the default 'evdev' model string so that gconf settings are truly blank unless the user has

Re: [Sugar-devel] [PATCH 1/2] Fix presence detection of keyboard layouts/options

2011-10-06 Thread Daniel Drake
On Thu, Oct 6, 2011 at 6:13 PM, Frederick Grose fgr...@gmail.com wrote: But try this: foo = 0 if foo:     print 'foo is not None' Yes, I'm aware that the boolean operator also has meaning for numerical values. But that doesn't affect my patch and the context of this code. Or am I missing

Re: [Sugar-devel] [PATCH] Update alpha according to filter after events in neighborhoodview icons - SL #3091

2011-10-07 Thread Daniel Drake
On Fri, Oct 7, 2011 at 5:08 PM, Simon Schampijer si...@schampijer.de wrote: The WirelessNetworkView listens on the State signal of the device, so it is true that all the icons are updated when the device state changes. This could be optimized in general. Yes, I agree with this. The design is

Re: [Sugar-devel] [PATCH] Update alpha according to filter after events in neighborhoodview icons - SL #3091

2011-10-07 Thread Daniel Drake
On Fri, Oct 7, 2011 at 5:19 PM, Daniel Drake d...@laptop.org wrote: For now Gonzalo's patch looks reasonable to me as well. Apart from the fact that it has no commit message. Thats not good. Daniel ___ Sugar-devel mailing list Sugar-devel

Re: [Sugar-devel] [PATCH] SpreadLayout: fix grid cell allocation

2011-10-09 Thread Daniel Drake
On Sat, Oct 8, 2011 at 9:00 PM, Sascha Silbe si...@activitycentral.com wrote: Excerpts from Daniel Drake's message of 2011-10-05 23:05:16 +0200: The calculation of how many grid cells to assign a child element has a bug in that it rounds down instead of up. [...] Thanks for the patch

Re: [Sugar-devel] [PATCH v3] Remove hippo from the frame

2011-10-09 Thread Daniel Drake
On Sat, Oct 8, 2011 at 10:38 PM, Sascha Silbe si...@activitycentral.com wrote: Excerpts from Daniel Drake's message of 2011-10-03 11:49:46 +0200: Based on earlier work by Raul Gutierrez and Walter Bender. [...] Looks good, thanks! Acked-By: Sascha Silbe si...@activitycentral.com pushed,

Re: [Sugar-devel] [PATCH 2/2] Only activate keyboard configuration if it was configured, OLPC #11175

2011-10-09 Thread Daniel Drake
On Sun, Oct 9, 2011 at 11:33 AM, Simon Schampijer si...@schampijer.de wrote: Hmm, the original bug that git fixed by that was #1717 [1] from the description: Since we do not supply a keyboard model by default, xfree86 gets picked up, and as a result the arrow keys, etc do not work on Xephyr.

[Sugar-devel] Telescope-11 fails to launch

2011-10-24 Thread Daniel Drake
Hi, We have a number of telescopes here at the SF summit, but we have found that the Telescope-11 activity fails to launch. It fails on line 288 of activity.py: self._live_toolbar_container.insert(self._gain_button, -1) self._live_toolbar_container is a GtkHBox and does not have an

[Sugar-devel] Reminder of GTK3 plans

2011-10-27 Thread Daniel Drake
Hi, This weekend, several of us are meeting in Prague for Sugar/GTK3 hacking: http://wiki.sugarlabs.org/go/Marketing_Team/Events/Gtk3_Hackfest_2011 We will be implementing the plan described at http://wiki.sugarlabs.org/go/Features/GTK3 which has already seen a few rounds of

Re: [Sugar-devel] Reminder of GTK3 plans

2011-10-27 Thread Daniel Drake
On Fri, Oct 28, 2011 at 3:49 AM, Daniel Drake d...@laptop.org wrote: Hi, This weekend, several of us are meeting in Prague for Sugar/GTK3 hacking: http://wiki.sugarlabs.org/go/Marketing_Team/Events/Gtk3_Hackfest_2011 and please join us on #sugar over the weekend if you'd like to help! Daniel

Re: [Sugar-devel] Reminder of GTK3 plans

2011-10-29 Thread Daniel Drake
On Sat, Oct 29, 2011 at 9:32 AM, Simon Schampijer si...@schampijer.de wrote: The current repository for the sugar-toolkit using gtk-3 is at [1]. Regards,   Simon [1] http://git.sugarlabs.org/~erikos/sugar-toolkit/sugar-toolkit-gtk3/commits/master Great, lets document the ongoing process

[Sugar-devel] sugar-toolkit-gtk3 plans

2011-10-29 Thread Daniel Drake
Hi, We have started to implement GTK3 support in sugar-toolkit/sugar-artwork and have been faced with some decisions which have met a lot of discussion in the group. Some of this is simply expanding on the plans so far, which did not dive down into the gory details which we now face:

Re: [Sugar-devel] [PATCH] Simple NetworkManager-0.9 port

2011-11-11 Thread Daniel Drake
Thanks for the review. I've made all changes except for the ones listed below: On Mon, Oct 24, 2011 at 6:41 PM, Sascha Silbe si...@activitycentral.com wrote: [extensions/cpsection/modemconfiguration/view.py] [ModemConfiguration.__init__()] +        self._timeout_sid = 0 How about

[Sugar-devel] [PATCH] Touchpad icon: update for upstream kernel API

2011-11-25 Thread Daniel Drake
The HGPK pentablet selection code has gone upstream, but with a different interface from the version included in previous OLPC kernels. The interface is now: echo -n pentablet hgpk_mode Port the touchpad icon to this new API. Compatibility with the old non-upstream API has been dropped;

Re: [Sugar-devel] [PATCH v2][sucrose-0.94][RFC] Add capability to connect to WPA/WPA2-Enterprise networks

2011-12-09 Thread Daniel Drake
On Fri, Dec 9, 2011 at 9:08 AM, Anish Mangal an...@activitycentral.com wrote: This feature is originally being developed for f14/0.94.1 based dx3 based on a request from OLPC-Australia. At this moment, I'd consider trying to upstream this for the sucrose-0.94 branch. 0.94 is feature frozen

[Sugar-devel] [PATCH] sugar-activity: make independent of sugar-toolkit GTK versions

2011-12-09 Thread Daniel Drake
by a sugar-toolkit patch titled Restructure for new /usr/bin/sugar-activity behaviour which adapts the GTK2 sugar-toolkit to these changes. Signed-off-by: Daniel Drake d...@laptop.org --- bin/sugar-activity | 130 +++- 1 files changed, 128 insertions

[Sugar-devel] [PATCH sugar-toolkit] Restructure for new /usr/bin/sugar-activity behaviour

2011-12-09 Thread Daniel Drake
-specific) is moved into the Activity class in this commit. This is needed to make /usr/bin/sugar-activity independent of sugar/sugar3 and GTK2/GTK3, which is a crucial step for GTK3 activity support. Signed-off-by: Daniel Drake d...@laptop.org --- src/sugar/activity/Makefile.am |1 - src

Re: [Sugar-devel] sugar-toolkit-gtk3 patches

2011-12-09 Thread Daniel Drake
On Mon, Dec 5, 2011 at 5:24 PM, Sascha Silbe sascha-ml-reply-to-201...@silbe.org wrote: Hi Simon et al., sugar-toolkit-gtk3 is starting to get into shape (branch silbe-rework-20111205). Remaining issues: 1. 7431584: Restructure for new /usr/bin/sugar-activity behaviour   (Daniel Drake

Re: [Sugar-devel] [PATCH] Touchpad icon: update for upstream kernel API

2011-12-09 Thread Daniel Drake
On Mon, Nov 28, 2011 at 7:51 AM, Sascha Silbe si...@activitycentral.com wrote: Port the touchpad icon to this new API. You're doing more than this. The additional changes are fine, but should be mentioned. I've checked again and I don't see any changes in the patch other than porting the

Re: [Sugar-devel] State of Palettes for GTK+ 3.x

2011-12-11 Thread Daniel Drake
On Thu, Nov 3, 2011 at 2:59 PM, Benjamin Berg ben...@sugarlabs.org wrote: Palettes are still very broken in the sugar-toolkit-gtk3 branch. The problem is not very simple, and there is some unexpected trouble that we have not been able to figure out yet. For those that haven't heard any

Re: [Sugar-devel] [PATCH v2][sucrose-0.94][RFC] Add capability to connect to WPA/WPA2-Enterprise networks

2011-12-13 Thread Daniel Drake
On Mon, Dec 12, 2011 at 7:54 AM, Sascha Silbe sascha-ml-reply-to-201...@silbe.org wrote: The patch we're talking about is a Request For Discussion (RFC) based on sucrose-0.94; we'd appreciate feedback on the chosen approach (including design and implementation). When the patch is ready

[Sugar-devel] [PATCH sugar-toolkit-gtk3] sugar-activity: import and make independent of sugar-toolkit GTK versions

2011-12-13 Thread Daniel Drake
, for GTK2 this will run the GTK2 main loop, for GTK3 the GTK3 main loop will be run, etc. Signed-off-by: Daniel Drake d...@laptop.org --- Makefile.am |2 +- bin/Makefile.am |1 + bin/sugar-activity | 147

[Sugar-devel] [PATCH sugar-toolkit-gtk3] SugarExt: fix compile without pygtk

2011-12-13 Thread Daniel Drake
We no longer compile this against pygtk, so remove the include. Add the now-required Python.h include in its place. --- src/sugar3/_sugarbaseextmodule.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/sugar3/_sugarbaseextmodule.c b/src/sugar3/_sugarbaseextmodule.c

[Sugar-devel] [PATCH sugar-toolkit-gtk3] Add MAINTAINERS file

2011-12-13 Thread Daniel Drake
Just point at the wiki where the info is kept. Requested by Sascha Silbe. --- MAINTAINERS |1 + 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 MAINTAINERS diff --git a/MAINTAINERS b/MAINTAINERS new file mode 100644 index 000..379f8ba --- /dev/null +++ b/MAINTAINERS

[Sugar-devel] [PATCH] Remove sugar-activity

2011-12-13 Thread Daniel Drake
This binary has been moved to sugar-toolkit-gtk3 in a commit titled: sugar-activity: import and make independent of sugar-toolkit GTK versions sugar-toolkit-gtk3 is deemed as a more suitable home as sugar-activity is somewhat specific to activities built with sugar-toolkit. From this point

Re: [Sugar-devel] [PATCH] sugar-activity: make independent of sugar-toolkit GTK versions

2011-12-13 Thread Daniel Drake
On Tue, Dec 13, 2011 at 8:53 AM, Sascha Silbe si...@sugarlabs.org wrote: Excerpts from Daniel Drake's message of 2011-12-09 22:25:28 +0100: As we move to adding support for a second UI toolkit (GTK+ 3.x), the sugar-activity binary used by all activities must become

Re: [Sugar-devel] sugar-toolkit-gtk3 maintainers: Daniel Drake, Simon Schampijer

2011-12-13 Thread Daniel Drake
On Tue, Dec 13, 2011 at 11:55 AM, Sascha Silbe sascha-ml-reply-to-201...@silbe.org wrote: During todays Development Team meeting [1], we we agreed that Daniel Drake will maintain the new sugar-toolkit-gtk3 together with Simon Schampijer, leaving me free to focus on the existing Glucose modules

Re: [Sugar-devel] [PATCH sugar-toolkit] Restructure for new /usr/bin/sugar-activity behaviour

2011-12-13 Thread Daniel Drake
On Fri, Dec 9, 2011 at 3:26 PM, Daniel Drake d...@laptop.org wrote: This patch accompanies a sugar patch titled sugar-activity: make independent of sugar-toolkit GTK versions Just to unconfuse me and others that may be reading, this patch is still required in its exact form even despite

[Sugar-devel] [PATCH sugar-toolkit-gtk3] SugarExt: drop pygobject2 initialisation

2011-12-14 Thread Daniel Drake
Now that we avoid linking with pygtk2/pygobject2, we need to remove this initialisation call so that the module can be loaded at runtime. --- src/sugar3/_sugarbaseextmodule.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/sugar3/_sugarbaseextmodule.c

[Sugar-devel] [PATCH sugar-toolkit-gtk3] Add EventIcon/CursorInvoker similar to CanvasIcon/CanvasInvoker

2011-12-14 Thread Daniel Drake
CanvasIcon and CanvasInvoker were removed in a previous GTK3-porting commit as they were based on hippocanvas. However, this leaves the toolkit with some missing functionality: there is no longer a trivial way to show an icon which can receive mouse events and pop up a palette. Such functionality

[Sugar-devel] [PATCH sugar-toolkit-gtk3] Trivial GTK3 porting fixes

2011-12-14 Thread Daniel Drake
Fix some trivial issues missed earlier: various missing imports, some minor API changes to adapt to, do_size_request simple porting, etc. --- src/sugar3/activity/activity.py |1 + src/sugar3/activity/namingalert.py |9 + src/sugar3/datastore/datastore.py|2 +-

[Sugar-devel] [PATCH sugar-toolkit-gtk3] SugarExt: make SugarGrid introspectable

2011-12-14 Thread Daniel Drake
This will be used by a future GTK3 port of the shell. --- src/sugar3/Makefile.am |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/sugar3/Makefile.am b/src/sugar3/Makefile.am index e795c27..1f073df 100644 --- a/src/sugar3/Makefile.am +++ b/src/sugar3/Makefile.am @@

[Sugar-devel] [PATCH sugar-toolkit-gtk3] Reimplement Palettes for GTK3

2011-12-14 Thread Daniel Drake
filtering and examination of the mouse cursor position we are still able to determine when the mouse has entered or left the invoker or menu areas. This work is authored by Benjamin Berg, Marco Pesenti Gritti, Simon Schampijer and Daniel Drake. --- src/sugar3/Makefile.am |4 +- src

[Sugar-devel] Wikipedia and xz compression possibility

2011-12-15 Thread Daniel Drake
I spent some time looking at the possibility of using xz compression for the Wikipedia activity content instead of bzip2 which is used currently. In general usage, xz compresses significantly better than bz2 and decompresses much much faster. So I was hoping to produce a wikipedia that could pack

Re: [Sugar-devel] [PATCH sugar-toolkit-gtk3] Fix the installation of languages

2011-12-15 Thread Daniel Drake
On Thu, Dec 15, 2011 at 10:16 AM, Simon Schampijer si...@schampijer.de wrote: The GETTEXT_PACKAGE name must match the repository name. Found when packaging for Fedora. Looks good to me, thanks ___ Sugar-devel mailing list

Re: [Sugar-devel] [PATCH sugar-toolkit-gtk3] sugar-activity: import and make independent of sugar-toolkit GTK versions

2011-12-19 Thread Daniel Drake
On Mon, Dec 19, 2011 at 11:53 AM, Simon Schampijer si...@schampijer.de wrote: One thing I don't like with moving the 'sugar-activity' inside sugar-toolkit-gtk3 is that we make the sugar-toolkit-gtk3 dependent on the sugar-toolkit-gtk2 as we use modules from it: import sugar from

Re: [Sugar-devel] [PATCH sugar] Partial fix for GSM connection time (see SL#2992; fixes SL#1727)

2012-01-20 Thread Daniel Drake
On Mon, Jan 9, 2012 at 9:19 PM, Sascha Silbe si...@activitycentral.com wrote: Currently there seems to be no way to determine the connection time [4], so as a partial fix we try to track the connection time ourselves. This will be off in case Sugar gets restarted (or the connection established

Re: [Sugar-devel] [PATCH sugar-toolkit-gtk3] Window: fixup of wrong conversion introduced by pygi-convert.sh

2012-01-23 Thread Daniel Drake
On Thu, Jan 19, 2012 at 8:19 AM, Simon Schampijer si...@schampijer.de wrote: With 820efa56b9876bb418bc51d30de959775930e35c gtk.gdk.x11_get_server_time(window) wasn't correctly converted to GdkX11.x11_get_server_time(window). Found when tesing collaboration. Looks good, but please make some

Re: [Sugar-devel] [DESIGN] Browse PDF handling

2012-02-15 Thread Daniel Drake
2012/2/2 Manuel Quiñones ma...@laptop.org: I'm proposing, for the new and fresh Browse wearing WebKit, the following behaviour when clicking on a link to a PDF: - the PDF is shown in a new tab, next to the current - basic document navigation is provided to the user - as well, a button to

[Sugar-devel] [PATCH sugar-toolkit] icon: use GDK for pixbuf-to-cairo conversion

2012-03-06 Thread Daniel Drake
cairo.Context.set_source_rgb() for setting the background colour, which avoids the requirement to encapsulate the cairo context at an early stage (which would make the rest of this patch a little more complicated). Signed-off-by: Daniel Drake d...@laptop.org --- src/sugar/graphics/icon.py | 24

Re: [Sugar-devel] [PATCH sugar-toolkit] icon: use GDK for pixbuf-to-cairo conversion

2012-03-07 Thread Daniel Drake
On Wed, Mar 7, 2012 at 8:32 AM, Simon Schampijer si...@schampijer.de wrote: Yes, your patch does fix the breakage in F17. The breakage has been introduced between the alpha release day and today, I wonder what package exactly caused it. Out of curiosity, Do you know that? I guess the hippo

Re: [Sugar-devel] [ASLO] Release Wikipedia-33.5

2012-03-17 Thread Daniel Drake
Hi Gonzalo, On Thu, Mar 15, 2012 at 9:12 AM, Sugar Labs Activities activit...@sugarlabs.org wrote: Download Now: http://activities.sugarlabs.org/downloads/file/27915/wikipedia-33.5.xo Is it intentional that this version is 55mb larger than the previous one? Thanks, Daniel

Re: [Sugar-devel] [ASLO] Release Wikipedia-33.5

2012-03-19 Thread Daniel Drake
On Sat, Mar 17, 2012 at 1:29 PM, Gonzalo Odiard gonz...@laptop.org wrote: It's a consequence of updating the data. The english wikipedia has grow from 1.5M articles in 2007 to almost 4M now [1], and the articles are longer too. If I remember correctly, the process used originally was: 1. Rank

[Sugar-devel] [PATCH] Recreate corrupted key pair (#1568)

2012-03-23 Thread Daniel Drake
From: Sascha Silbe sascha-...@silbe.org Recreate a corrupted key pair instead of leaving it alone and failing horribly later. This case was recently encountered in Nicaragua. Signed-off-by: Sascha Silbe sascha-...@silbe.org Signed-off-by: Daniel Drake d...@laptop.org --- src/jarabe/intro

[Sugar-devel] [PATCH] keyhandler: Use textual key names

2012-03-27 Thread Daniel Drake
Conversion of 0x## keycodes is broken in libegg with recent GDK. Switch to the textual names of the keys in question to work around this bug, reference: https://bugzilla.gnome.org/show_bug.cgi?id=672950 This fixes the frame key on XO laptops running Fedora 17. Signed-off-by: Daniel Drake d

Re: [Sugar-devel] [PATCH sugar] Fix Traceback when connecting to a network for the first time

2012-04-03 Thread Daniel Drake
On Mon, Apr 2, 2012 at 10:36 AM, Sascha Silbe si...@activitycentral.com wrote: When connecting to a network that we don't have settings for yet, the following Traceback was logged: Traceback (most recent call last):  File /usr/lib/python2.7/dist-packages/dbus/connection.py, line 586, in

Re: [Sugar-devel] [PATCH sugar] Don't treat SSID as UTF-8 character sequence (fixes SL#2023)

2012-04-03 Thread Daniel Drake
On Mon, Apr 2, 2012 at 10:40 AM, Sascha Silbe si...@activitycentral.com wrote: IEEE 802.11 [2] defines the SSID as a sequence of octets (i.e. bytes), but Sugar treated it as UTF-8 character data. While in most cases the SSID is actually some human-readable string, there's neither a guarantee

[Sugar-devel] Which activities use lxml?

2012-04-10 Thread Daniel Drake
Until now, Read was using python-lxml for XML parsing in epub support. Gonzalo just pushed a patch that makes it use Python's internal XML libraries, thanks Gonzalo. I'm considering dropping python-lxml from OLPC's builds as a result - it is not needed. Or does anyone know of other activities

Re: [Sugar-devel] Which activities use lxml?

2012-04-11 Thread Daniel Drake
On Tue, Apr 10, 2012 at 8:19 PM, Gary Martin garycmar...@googlemail.com wrote: On Tue, Apr 10, 2012 at 4:54 PM, Daniel Drake d...@laptop.org wrote: Until now, Read was using python-lxml for XML parsing in epub support. Gonzalo just pushed a patch that makes it use Python's internal XML

Re: [Sugar-devel] [PATCH] Touchpad icon: update for upstream kernel API

2012-04-16 Thread Daniel Drake
On Mon, Apr 16, 2012 at 1:48 PM, Simon Schampijer si...@schampijer.de wrote: This patch is needed now for latest kernel on the XO-1. Tested on the latest 12.1.0 builds. OK, pushed with the changes noted earlier in the thread. Happy to act on the rest of Sascha's feeback if it solidifies.

[Sugar-devel] [PATCH] Prevent handling network devices twice (OLPC#11782)

2012-04-16 Thread Daniel Drake
and me where two network device icons appear. Signed-off-by: Daniel Drake d...@laptop.org --- extensions/deviceicon/network.py |3 +++ src/jarabe/desktop/meshbox.py|5 + 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/extensions/deviceicon/network.py b/extensions

Re: [Sugar-devel] [PATCH sugar] Create a default unencrypted keyring, OLPC #10290

2012-04-17 Thread Daniel Drake
On Mon, Apr 16, 2012 at 4:33 AM, Simon Schampijer si...@schampijer.de wrote: In GNOME the session manager deals with creating that keyring. Nice find, I was always wondering about that. Do you have a reference to the exact code that does this? Thanks, Daniel

Re: [Sugar-devel] [Browse] Store web session cookies in SQlite database, for SL #3456

2012-04-19 Thread Daniel Drake
Hi Manuel, On Wed, Apr 18, 2012 at 4:01 PM, Manuel Quiñones ma...@laptop.org wrote: There was code in Browse to create a SQlite database under data directory in the activity profile.  This was for creating a cookie to authenticate the laptop in a schoolserver. I have moved the database

Re: [Sugar-devel] [PATCH sugar] Fix shortcut for view source

2012-04-19 Thread Daniel Drake
On Mon, Apr 16, 2012 at 8:02 AM, Sascha Silbe si...@activitycentral.com wrote: Excerpts from Simon Schampijer's message of 2012-04-16 10:42:39 +0200: [extensions/globalkey/viewsource.py] -BOUND_KEYS = ['0xEC', 'altshiftv'] +BOUND_KEYS = ['XF86KbdLightOnOff', 'altshiftv'] Is Keyboard light

Re: [Sugar-devel] [PATCH] Draw border for palette all the time SL #3383

2012-04-19 Thread Daniel Drake
On Wed, Apr 18, 2012 at 2:46 PM, Simon Schampijer si...@schampijer.de wrote: 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

Re: [Sugar-devel] [PATCH v2 Browse] Store web session cookies in SQlite database, for SL #3456

2012-04-19 Thread Daniel Drake
On Thu, Apr 19, 2012 at 9:20 AM, Manuel Quiñones ma...@laptop.org wrote: There was code in Browse to create a SQlite database under data directory in the activity profile.  This was for creating a cookie to authenticate the laptop with a schoolserver. Now we use the same database via the Soup

Re: [Sugar-devel] [PATCH v3 Browse] Store web session cookies in SQlite database, for SL #3456

2012-04-19 Thread Daniel Drake
On Thu, Apr 19, 2012 at 10:45 AM, Manuel Quiñones ma...@laptop.org wrote: There was code in Browse to create a SQlite database under data directory in the activity profile.  This was for creating a cookie to authenticate the laptop with a schoolserver. Now we use the same database via the

Re: [Sugar-devel] [PATCH v3 Browse] Store web session cookies in SQlite database, for SL #3456

2012-04-19 Thread Daniel Drake
On Thu, Apr 19, 2012 at 10:51 AM, Manuel Quiñones ma...@laptop.org wrote: +    soup_uri = Soup.URI.new(uri_string=backup_url) Daniel, above is the only new() constructor pending, I cannot find a replacement for it,  Soup.URI(uri_string=backup_url) gives error, there's no method in Soup.URI to

[Sugar-devel] Sugar activity freeze for OLPC release 12.1.0

2012-04-30 Thread Daniel Drake
Hi, Just wanted to point out that OLPC's 12.1.0 software release, which will be based on Sugar 0.96 (to be announced as final very soon, I hope!) is going to freeze activity versions early next week as we move into stabilization for release. In the face of bugs and regressions we can still take

Re: [Sugar-devel] SimpleGraph rename?

2012-04-30 Thread Daniel Drake
On Mon, Apr 30, 2012 at 12:39 PM, Alan Jhonn Aguiar Schwyn alan...@hotmail.com wrote: I like a simple name: Charts (no like the singular form) I don't like Charts. Sugar activities are generally named after nouns: Read, Write, Record, Browse Chart is a verb (and is a fine name for this

Re: [Sugar-devel] [PATCH Browse] Use UNICODE string to search into places SL #2830

2012-05-02 Thread Daniel Drake
On Wed, May 2, 2012 at 10:24 AM, Manuel Quiñones ma...@laptop.org wrote: Works for me in my dev machine and in the XO.  Are we safe to assume that the text in GtkEntry is utf-8 ? All strings in GTK+ are in UTF-8. However, python tends to work in UTF16. I am surprised that it is not

[Sugar-devel] [PATCH sugar-toolkit-gtk3] Object Chooser: update for GDK3 get_xid()

2012-05-19 Thread Daniel Drake
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 d...@laptop.org --- src/sugar3/graphics/objectchooser.py |4 ++-- 1 file

Re: [Sugar-devel] [PATCH sugar-toolkit-gtk3] Object Chooser: update for GDK3 get_xid()

2012-05-19 Thread Daniel Drake
On Sat, May 19, 2012 at 2:55 PM, Manuel Kaufmann humi...@gmail.com wrote: On Sat, May 19, 2012 at 5:43 PM, Daniel Drake d...@laptop.org wrote: Needed to be able to open the object chooser from Browse without hassle. What do you mean with object chooser? src/sugar3/graphics/objectchooser.py

[Sugar-devel] Strings in global scope go untranslated

2012-05-29 Thread Daniel Drake
Hi, We have a translation problem in 0.96: certain strings in activities such as Clock and Physics go untranslated. I have investigated the Physics case (I assume Clock is the same). In 0.94 activity setup was something like this: 1. sugar-activity calls into activity.main 2. activity.main

Re: [Sugar-devel] Strings in global scope go untranslated

2012-05-29 Thread Daniel Drake
On Tue, May 29, 2012 at 1:40 PM, Walter Bender walter.ben...@gmail.com wrote: Is this the mechanism that is used to cascade language fallback options? e.g., en_AU - en_GB - en_US ? Nope, thats something different (.i18n file written in home directory). So it wouldn't be affected by removing

Re: [Sugar-devel] [PATCH Wikipedia] Search ToolButton, pass page and icon_name as parameters #3658

2012-05-31 Thread Daniel Drake
On Thu, May 31, 2012 at 9:59 AM, Manuel Quiñones ma...@laptop.org wrote: The tool button had a grey background because of this. Signed-off-by: Manuel Quiñones ma...@laptop.org ---  activity.py |    5 ++---  1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/activity.py

<    1   2   3   4   5   6   >