Re: Maemo-mapper vector data backend follow-up

2008-09-24 Thread Chris Lord
On Wed, 2008-09-24 at 12:59 +0200, Till Harbaum / Lists wrote:
 Hi Simon,
 
 Am Mittwoch 24 September 2008 schrieb Simon Pickering:
  I fully support the work on Navit and other navigation/mapping programmes,
  this is simply looking at an expansion of the abilities of maemo-mapper.
 I still think that what you are trying to achieve requires more work and the
 result will be less satisfying than trying to do the same with a vector 
 program.
 
 After have a look at the frame rates of existing navigation solutions i am 
 pretty
 sure that there's a cpu bottleneck in rendering vector maps on these small 
 devices. 
 The solution you are planning consumes significant more memory and cpu power 
 than the usual vector solutions (as you e.g. handle/cache bitmap tiles, 
 redraw 
 certain things several times or render offscreen portions of tiles).
 
 I am just afraid that a lot of man power will be consumed by such an approach
 while this would just be better invested into more promising solutions.

There are some interesting things you can do with this raster-based
approach that isn't as easy/fast with vector data though, however. A 3d
view using ray-casting, for example, would be much quicker than the same
thing using vector data, and would easily allow you to use topography
data too, to visualise height data.

Also, as maemo-mapper caches the tile data and runs asynchronously to
the tile generation, slow-down while rendering the vector data to tiles
shouldn't be too perceptible (the renderer can always be nice'd too) and
I think a raster-based mapper could run a lot faster than a vector-based
one.

There are pros and cons to raster and vector methods, but seeing as
maemo-mapper already has a substantial amount of work done, I'd
personally be interested to see this development continue :)

Regards

-- 
Chris Lord, Intel Open Source Technology Centre

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Wiki page of the Day: Video encoding

2008-07-07 Thread Chris Lord
On Mon, 2008-07-07 at 12:05 +0200, Dave Neary wrote:
 Hi all,
 
 This is the last time I'll be cross-posting WPotD announcements - from
 now on I'll use the new [EMAIL PROTECTED] list for WPotD
 updates, and I invite any of you interested in community processes, the
 wiki or the development of the website to join that list.
 
 Thank you very much for the help on USB networking - it's now been
 cleaned up  put to bed, as has booting from a flash card and
 partitioning a flash card (thanks in large part to General Antilles's
 monster contribution). A special thank you also to the anonymous
 contributor who updated playing ogg files and allowed me to remove the
 in progress tags this morning. The wiki is coming along nicely!
 
 The WPotD for today is Video encoding
 http://wiki.maemo.org/Video_encoding - an article which, it seems to me,
 is in dire need of reduction. From my own experience, the page should be
 an instruction manual on installing tablet-encode and its dependencies,
 and that's it.

Have to vehemently disagree with this, I've referred to this page for
the manual conversion instructions plenty of times, as it tells me how
to use tools that I already have on my system and are useful for
non-tablet cases too...

Maybe it should be split into simple/advanced sections perhaps, but a
lot of that information is useful.

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: N800 finger scrolling in gtk... and how to detect a stylus long-press...

2008-06-16 Thread Chris Lord
Hi David,

I wrote a widget for OpenMoko that replaces GtkScrolledWindow, with very
similar API, that allows you to do finger-scrolling instead of
scroll-bar scrolling - The SVN repository is at
http://svn.openmoko.org/trunk/src/target/OM-2007.2/libraries/libmokoui2/
and you can find debian packaging at
https://edge.launchpad.net/~cwiiis/+archive , although I'll warn you
that that's a bit out of date and I think the Intel MID project have
more recent packaging (they have collaborated with me and kept me
informed on this, it's my fault that my own packaging is out-of-date).

There are caveats with using this widget, as the GTK event system wasn't
really designed with this interaction in mind. The widget works by
intercepting mouse events and re-synthesising new events for the
underlying widgets - This usually works fine, but certain things don't
work, such as mouse-over (this is easy to fix, but was unnecessary given
it's aimed at touch-screens) and double-clicking (harder to fix). You
might also have some fun problems if you grab the cursor too.

Hope that helps some - depending on your users, you may find that it's
more efficient to write your own custom-purpose finger-scrolling widget.
If you find that and you want some code to use as an example (and you
don't find any better code than mine (which I'm sure there's a lot
of ;)), I'd recommend you take a look at the finger-scrolling widget
I've written for tidy -
http://svn.o-hand.com/repos/tidy/trunk/tidy/tidy-finger-scroll.c - The
code is much cleaner as clutter has a more advanced events system and I
wrote it after having learnt a lot with MokoFingerScroll.

Regards,

--Chris

On Sun, 2008-06-15 at 18:02 +0100, David Greaves wrote:
 I'm still persevering with my C/gtk app and have a couple of questions.
 
 It was going to be 3 but I sorted out the
 dbus/com.nokia.mce.request.req_led_pattern_activate one :)
 
 So, first: How do I get finger scrolling?
 
 I have a hildon program with a vbox and a list of my own widgets (composite 
 hbox
  with tick/label/entry).
 
 I'd like to be able to scroll using a finger rather than the stylus in the
 scrollbar - any ideas?
 
 
 Secondly: How do I detect a long stylus press?
 A normal press will activate a tickbox (and eventually I'll see if I can get
 this from the label or the hbox).
 I'd like a long press to call an edit callback.
 
 David
 
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Runtime exception in Multithreading N800

2008-03-23 Thread Chris Lord
On Sat, 2008-03-22 at 11:49 -0500, nisha jain wrote:
 Hi All,
  
 I have used pthread in my application and Hildon APIs for the GUI.
  
 In my application the main() is used for the GUI and pthread for
 communication.
  
 I am getting following run time exception some times while running
 number of times...
  
 Though i am not able to identify the cause... 
  
  
 N800App[2455]: GLIB CRITICAL ** Gtk - gtk_box_pack_start: assertion
 `child-parent == NULL' failed
  
 Please let me know if some one has any idea about it?

You'd get this error when trying to pack a widget into a Gtk[VH]Box when
that widget is already contained (i.e. it has a parent). To re-pack a
widget, you need to g_object_ref it, (assuming you don't hold a
reference), remove it from its container (gtk_container_remove) and then
you'll be able to pack it into the box successfully (remember to unref
afterwards).

Also note, GTK is not thread-safe, so GTK functions mustn't be called
outside of the main thread. You can use gdk_threads_enter/leave, but
it's generally easier to use idle callbacks (if you g_idle_add in a
thread, the callback will happen in the thread of the mainloop, as
opposed to whatever thread you called it from).

Hope that helps!

--Chris



___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: PyGTK/Hildon: CLOSING CHILD WINDOW PROPERLY?

2008-02-19 Thread Chris Lord
On Tue, 2008-02-19 at 09:49 -0600, Darren Enns wrote:
 I am trying to convert my command-line Python program into a 
 PyGTK/Hildonized version for my Nokia N800.
 
 I am *very new* at doing this, so the best that I can do is look for 
 examples that other people have written, and this is what I have been 
 using for my 'child' window, but it does not work -- since when I close 
 the window my entire application ends:
 
[snip]
window2.connect(destroy, gtk.main_quit)
[snip]

Get rid of that line :)

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: [Maemo App Dev] how to create multi-window app with only one trayicon in Task Navigator

2008-01-30 Thread Chris Lord
Alternatively, make your secondary windows modal, transient to the main
window and set the skip-taskbar hint (see
gtk_window_set_skip_taskbar_hint ())

--Chris

On Thu, 2008-01-31 at 01:03 +0800, Mingxi Wu wrote:
 Try to write a .desktop file including icon hint for your application
 and throw it into /usr/share/applications.
 
 2008/1/30, 陈凯 [EMAIL PROTECTED]:
 Hi, everyone
 
 I am about to write an app containing multi-window and user
 can switch from one and another at any time.  While I show a
 second
 hildon.Window, another icon pops up in the TaskNavigator.  It looks 
 ugly and confuses the user as if the two window are irrelevant.
 
 I found Pidgin and Opera which can have multi-window but only
 one trayicon in TN.  I dived into Pidgin source code but in
 vain.  I don't know how they achieve that effect.  Could
 anyone give me some hint or suggestion?  Thanks a lot
 
 -
 Chenkai
 
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers
 
 
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: simple gtk themed button example?

2008-01-25 Thread Chris Lord
On Fri, 2008-01-25 at 09:51 -0500, Zac Filan wrote:
 Hello,
 
 Can someone point me to a C code example of a gtk button that responds
 to system theme changes?

All GTK applications are theme-change-aware, unless you're not running
them correctly. If you're in scratchbox and your application isn't
responding to theme changes, perhaps you aren't using run-standalone?

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: HildonCalendar

2008-01-16 Thread Chris Lord

On Wed, 2008-01-16 at 16:02 +0100, pancake wrote:
 On Wed, Jan 16, 2008 at 01:01:28PM +, Andrew Flegg wrote:
  On Jan 16, 2008 1:04 PM, pancake [EMAIL PROTECTED] wrote:
It sounds like the people who wrote HildonCalendar should work on a new
calendar widget to go in upstream GTK+.
  
   Do you really think a calendar widget fits with GTK?
  
   IMHO it's a far complex widget and have to live out of the core lib.
  
  Perhaps; but if Gtk has a calendar widget, an application shouldn't
  have to condition calls to it to get a HildonCalendar widget on
  certain platforms SOLELY to get a different implementation. If the
  internals are different but the API remains the same it should be
  transparent to the developer.
  
  I can understand Nokia not wanting to maintain a fork of Gtk, but
  these things should be implemented in a way which allows them to be
  pushed upstream wherever possible. Every little bit of work that the
  maemo team save here is magnified into lots more work for third party
  developers.
 
 That is. a separated library.

GTK already contains a simple calendar widget and I think it should do -
a calendar is something a lot of applications would want to display.
Andrew is correct imo, if HildonCalendar has the same API as
GtkCalendar, it shouldn't be separated out; this just makes applications
that use GtkCalendar more tedious to port to maemo. The bugs that cause
GtkCalendar to require modification for hildon should be fixed and
patches submitted for upstream.

If you're looking for something more complex though, I will plug
libjana: http://svn.o-hand.com/repos/jana/trunk/ , which along with a
lot of other time-based PIM bits, contains a variety of detailed
calendar widgets.

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Nokia discount codes (again)

2007-12-26 Thread Chris Lord
Is it just mine, or the UK Nokia shop, or are Nokia discount codes still
not working? I'm sure Quim Gil said they'd start working some time last
week, is there any new ETA on this?

Happy Holidays,

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Missing button_release_event messages?

2007-11-08 Thread Chris Lord
It could be that the motion hint is set on the widget - this stops
motion events being reported until the app has had time to handle them
so you don't get a back-log of events... I might (in fact, probably) be
remembering incorrectly, but previous hildon gtk had a patch so it was
set by default I think?

Either way, something to check out - Have a look at
gtk_widget_add_events, GdkEventMask and GDK_POINTER_MOTION_HINT_MASK.
I've not tried python, but I certainly didn't have this problem in C.

--Chris

On Wed, 2007-11-07 at 22:32 -0800, George Nachman wrote:
 I've written an app in PyMaemo that is very sensitive to getting
 OnButtonUp events on time and I noticed that if I touch the screen
 with my finger, move it, and let it up all very quickly that I don't
 get the button_release_event message. I do get a button_press_event
 and maybe a motion_notify_event, but GTK never tells me I released the
 button. If I then tap on the screen I immediately get a
 button_release_event, motion_notify_event, and button_press_event in
 very quick succession.
 
 My program runs in a full-screen window, so I don't believe something
 else could be getting my button_release_event--and besides, I do get
 it when I tap on the screen later on, anyway.
 
 Has anyone ever heard of this? Could I just be doing something silly?
 
 Thanks,
 George
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Planet Maemo formatting problem

2007-08-28 Thread Chris Lord
I realise this probably isn't the right place, but I know that people
that sort out Planet Maemo read this list and I couldn't find where
would be more appropriate.

Planet Maemo's feed should really link back to the articles that its
aggregated, rather than linking to the Planet Maemo permalinks - and if
this can't be changed, the permalink page should at least link back to
the original article somewhere.

As it is now, if you read the feed and want to go to the original
article (which you may want to if the article was truncated, images were
removed, flash videos were removed, you want to view other posts from
the author, etc.), the only way to do this is to go back to the Planet
Maemo page, locate the post on the front-page and follow the link from
there. That's obviously extremely awkward.

If no one can do anything about it here, could someone point me to where
I should be voicing this problem?

Cheers,

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Eclipse the IDEs

2007-06-21 Thread Chris Lord
On Thu, 2007-06-21 at 07:46 +0300, [EMAIL PROTECTED] wrote:
 If you have other IDE preferences/plans, pleas share.

I'm quite partial to the most recent versions of Anjuta - they've come a
long way in the last few, and the 2.x series is almost unrecognisable in
terms of the improvement it's made since 1.x.

http://anjuta.sourceforge.net/

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Discussion of a possible project - offline calendar project

2007-01-15 Thread Chris Lord
On Mon, 2007-01-15 at 11:15 +0100, Martin Grimme wrote:
 This sounds really interesting. I know that there are already
 applications like dates or GPE-calendar for the N770 but both
 don't fit my needs.


Hi Martin,

Are there any specific needs you have that Dates fails to fulfil? I
haven't had time to work on it recently during uni, but if there are any
features you'd like to see, I'll point out that we have a bugzilla
( http://bugzilla.o-hand.com/ ) and our subversion repository is public.
Any contributions are more than welcome.

Best regards,

--Chris Lord



___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Discussion of a possible project - offline calendar project

2007-01-15 Thread Chris Lord
On Mon, 2007-01-15 at 13:50 +, Andrew Flegg wrote:
 On 1/15/07, Chris Lord [EMAIL PROTECTED] wrote:
 
  Are there any specific needs you have that Dates fails to fulfil? I
  haven't had time to work on it recently during uni, but if there are any
  features you'd like to see, I'll point out that we have a bugzilla
  ( http://bugzilla.o-hand.com/ ) and our subversion repository is public.
  Any contributions are more than welcome.
 
 Now that Maemo 3 incorporates the alarm framework[1], is Dates likely
 to see some development in this area? Or is it effectively on hold
 until you can find some non-uni time?

I'll finish uni at the end of June, so I'll be able to continue work on
Dates (and other projects) properly then. I'd like to be able to do some
work on this before then, but given the amount of uni work I have and
that I don't own an N800, there's not much chance of a change as large
as that coming from me. Good to hear about the alarm interface though,
hopefully we'll see it back-ported to the 770 :)

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


RE: [maemo-developers] Bluetooth pairing with Motorola V3i

2006-11-06 Thread Chris Lord
 I have the same issue, what is the procedure to do a firmware update on the
 V3i?

I just went to my regional Motorola web-site's support section and got
the latest software update - It's just an executable (that unfortunately
has to be run in Windows) - you need to set the USB default device on
the phone to the modem instead of the storage device, run the firmware
update and plug the phone in. It'll install a miriad of drivers and then
backup the phone data/update firmware.

The instructions are all on the Motorola site, good luck :)

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Bluetooth pairing with Motorola V3i

2006-11-05 Thread Chris Lord
 I have a V3i too, and it pairs just fine. Actually, we ordered this 
 phone precisely because we got these problem reports with it. I heard 
 that there's a bug in some motorola phone firmware versions when doing 
 an SDP service search attribute request (which is what IT-2006 does). 
 Though that doesn't quite explain why it works on 2005 for you. You 
 might want to try to get a firmware update for your phone and see if it 
 solves the problem.

Thanks, I took the plunge and did a firmware update and lo and behold,
bluetooth works again :)

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] flasher does not detect device anymore

2006-11-03 Thread Chris Lord
On Fri, 2006-11-03 at 13:45 +0100, Detlef Schmicker wrote:
 Hi,
 
 while trying to upgrade to new OS2006 version my nokia is not detected
 anymore.

Are you using Ubuntu edgy? I had to add this line (courtesy of Ross
Burton) to my /etc/fstab to get flasher to work:

none /proc/bus/usb  usbfs defaults 0 0


Hope that helps,

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Bluetooth pairing with Motorola V3i

2006-11-03 Thread Chris Lord
Since bugzilla is down, I thought I'd just throw a quick question out
there to see if anyone has any advice.

Ever since the 2006 edition of the 770 image, bluetooth pairing has
stopped working with my Motorola V3i. My phone gets as far as verifying
the key, then it pops up the saving and confirming dialogue and freezes
there - The 770 never seems to receive the confirmation and fails, while
shortly after the 770 fails, my phone un-freezes.

As far as my phone is concerned, it seems to be paired, but no pair is
stored on the 770. This used to work perfectly on the 2005 edition and
pairing still works perfectly with my friend's Motorola V3 (just not my
V3i..)

Does anyone have any ideas about this? I've tried this with both the
original final 2006 edition image and the just-released update, with the
exact same results in both.

Hopefully,

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Bluetooth pairing with Motorola V3i

2006-11-03 Thread Chris Lord
On Fri, 2006-11-03 at 16:31 +0200, Kimmo Hämäläinen wrote:
 On Fri, 2006-11-03 at 14:01 +, ext Chris Lord wrote:
 ...
  As far as my phone is concerned, it seems to be paired, but no pair is
  stored on the 770. This used to work perfectly on the 2005 edition and
  pairing still works perfectly with my friend's Motorola V3 (just not my
  V3i..)
 ...
 
 Did you try pairing the phone again with the 770 after upgrading to
 IT-2006?

Yes, pairing is what is failing here.

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Maemo 2.0 and AMD64

2006-08-06 Thread Chris Lord
 I wish to know if there is the possibility of having the Maemo 2.0 sdk
 working under AMD64.
 
 I have seen the post of Luca Donaggio, of 12 June, [
 http://maemo.org/pipermail/maemo-developers/2006-June/004257.html ],
 but I don't have seen answers so I suspect that it couldn't be done.

http://www.rahkonen.org/projects.html has details on Scratchbox on amd64
- the instructions there worked for me for Maemo 1.1, but I had a few
troubles with 2.0 - That said, I didn't try from a clean install, so it
may well still work. I recommend starting from there :)

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Maemo alarms

2006-07-28 Thread Chris Lord
On Fri, 2006-07-28 at 11:33 +0200, Nils Faerber wrote:
  Are there any header files/libraries available that provide this
  functionality that I'm missing? The Clock application has the ability to
  set alarms that wake the device, so it must be possible.
 
 Have you got any response off-the-list?
 

None I'm afraid :(

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Flashing Problem

2006-07-27 Thread Chris Lord
  Any more ideas?
 
 Is it AMD64?  The flasher doesn't work on 64-bit machines.

Works fine here on 64-bit

--Chris


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers