Re: [Maemo App Dev]How to make my app UI different

2008-02-22 Thread 陈凯
Thanks for your advice.
 Though maemo is based on GTK+, I think it is a little bit different.  I wrote
a simple app and used gtkrc to change the color of a button when being
active.  In ubuntu it works fine while it has no effect when ported to maemo(
a default style button is shown instead
).  I wish I didn't miss something important in gtkrc.  Or is there some other
alternative way to achieve widget style customizatino?  Wish to hear
your reply, thanks in advance.

On 2/18/08, Bin Chen [EMAIL PROTECTED] wrote:

 On Mon, Feb 18, 2008 at 10:01 PM, 陈凯 [EMAIL PROTECTED] wrote:
  Hi, folks!
 
  I am a newbiee on Maemo and have some experience in app dev.  Though
 maemo
  platform provides a great amount of amazing UI looking, I would like my
 app
  looks somewhat different from ordinary maemo app.  A cool example is
 Skype
  for maemo platform.  I wonder how to make that effect or something like
  that.  Could you please give me some hint, or where to start ?  Thanks
 in
  advance~


 Just a hint, you may use gtkrc to customize it.(maemo is gtk+ based so
 I think this method works)

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


Re: [Maemo App Dev]How to make my app UI different

2008-02-22 Thread Tapani Pälli
Hello;

ext 陈凯 wrote:
 Thanks for your advice. Though maemo is based on GTK+, I think it is a
 little bit different. I wrote a simple app and used gtkrc to change
 the color of a button when being active. In ubuntu it works fine while
 it has no effect when ported to maemo( a default style button is shown
 instead ). I wish I didn't miss something important in gtkrc. Or is
 there some other alternative way to achieve widget style
 customizatino? Wish to hear your reply, thanks in advance.


You might want to file a bug about this. I've noticed also that using
gtk_rc_parse_string() does not seem to work for some reason, on desktop
it can be used to change colors.


 On 2/18/08, *Bin Chen* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 On Mon, Feb 18, 2008 at 10:01 PM, 陈凯 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
  Hi, folks!
 
  I am a newbiee on Maemo and have some experience in app dev.
 Though maemo
  platform provides a great amount of amazing UI looking, I would
 like my app
  looks somewhat different from ordinary maemo app. A cool example
 is Skype
  for maemo platform. I wonder how to make that effect or
 something like
  that. Could you please give me some hint, or where to start ?
 Thanks in
  advance~


 Just a hint, you may use gtkrc to customize it.(maemo is gtk+ based so
 I think this method works)


 

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


// Tapani Pälli

-- 
Software Engineer
Open Source Software Operations 

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


Re: Is there any way to build Maemo applications which can run on N800 outside of the scratchbox

2008-02-22 Thread Martin Grimme
With Python it's possible to dynamically detect if you're on maemo or
not and load the real maemo stuff or just some proxies. This is the
way I develop MediaBox on my Linux desktop.
With C it's possible too, but a bit more complicated.


Cheers,
Martin


2008/2/21, Ryan Pavlik [EMAIL PROTECTED]:
 Ken Bloom wrote:
   On Thu, 21 Feb 2008 10:00:20 +0800, Huang Gao wrote:
  
  
   Dear all:
  
  I am going to do some application development test on N800,
  however I
   do not want to use scratchbox. And I am really confused of how to
   extract the cross compiler tool chain from Scratchbox and make it run in
   my Linux environment.
  
  
   Development for an N800 outside scratchbox is not easy to do.
   Theoretically, I could do emdebian development for my Nokia, but the
   dependencies of the compiled applications would be all wrong. I have not
   succeded at doing qemu emulation of a maemo build environment, although
   that would potentially be very nice.
  
   You'll probably need to build/download your own cross-compiler. What's
   your objection with scratchbox? Too big? If so, I've had success using my
   Maemo rootstrap with scratchbox 2, which is a much more generic tool. I
   did find that I've had to put some work into hacking the path mapping
   script that scratchbox 2 uses to get the right paths mapped in and out of
   the build root, but nothing too difficult.
  
   --Ken
  
  

 IIRC there is a Scratchbox 2-based build system now available for Maemo,
  called Maemo SDK+ which might save you some effort there.


  Ryan

 ___
  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: WLAN Horrible Roaming Performance (N800, OS2008), Software or Hardware Problem ?

2008-02-22 Thread Kalle Valo
ext Siarhei Siamashka [EMAIL PROTECTED] writes:

 With a simple patch that just retries operation on such error,
 wireless connection got stable. After a long test with the test
 script, no problems were detected. The following lines could be
 occasionally seen in dmesg log and it  proves that there were
 potential connection drops encountered, but they all did not cause any
 troubles in reality (MD5 of downloaded file was always OK):
 [50559.494232] Dynamic PSM
 [50559.494323] PSM timeout 1000 ms
 [50622.038146] We haven't got a READY interrupt from WAKEUP. (firmware
 crashed?)
 [50622.038269] Try again...
 [50622.038330] succeeded!!!

Yeah, sounds like the SPI bus is not reliable because retransmitting
the frame succeeds.

 I'm attaching the same patch here. It is not very clean, but it does
 the job (for Nokia 770).

Thanks. I'm sure this patch helps with SPI problems.

 And I have encountered other problems with WLAN driver that are yet to
 be solved. For example, sometimes speed drops to ~30KB/s (that's still
 an unresolved mystery to me).

Do you see this only with 770 or also with N800/N810?

 Also CPU usage is very high because of busyloop when waiting till
 DMA transfer is done. Tasklet, which executes the code can't be
 easily preempted, as far as I understand kernel documentation. Maybe
 it is possible to split tasklet into several parts, one of them
 could be responsible for initiating DMA transfer, the other could be
 activated on DMA transfer completion? This all is important for
 video streaming as any excessive CPU resources consumption by WLAN
 driver negatively impacts video playback performance.

Sorry, I'm not familiar with OMAP 1710 McBSP, so I can't comment.

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


Re: WLAN Horrible Roaming Performance (N800, OS2008), Software or Hardware Problem ?

2008-02-22 Thread Kalle Valo
ext Benno Senoner [EMAIL PROTECTED] writes:

 An easy way to confirm, if this is a TCP problem or something else,
 is to run ping in the background and see how long timeouts (ie. how
 much you see packet loss) you get with it. ICMP ping does not have
 any of problems that TCP has.

 Yes I did and indeed ping works much better. i tried ping -s 1024
 mylocalgatewayip (1024 byte long packets) and indeed it works ok.
 sometimes it loses 1-4 packets while roaming but afterwards the number
 of packet loss is usually small. when roaming around the wlan it is
 about 3-4% but the nokia wlan lockup remains, see below.

Ok, 3-4% packet loss with ping implies that roaming per se is working
quite well. Though I don't know how well TCP handles 3-4% packet loss,
but my guess is that it's not a problem.

But the lock ups you are describing is a different issue. Is that the
real problem here? Not the roaming performance but the fact that WLAN
connection gets stuck very easily and no data is transfered after
that.

I would like to get more information about the lockup situation so
that I can understand what's really happening:

o You earlier mentioned that disabling WLAN Power Save Mode does not
  help, so we can rule that out. That's good.

o Does the lockup happen with only one AP as well? I'm just wondering if the
  lockup is related to roaming.

o Does the lockup happen with other APs (different make and model)?

o What does UI show? Any errors?

 As for the network lock ups we are experiencing (you have to
  disable,enable wlan on the n800 to make it work again)

 Does ping work when that happens? For example, you could try to ping
 your gateway. Also can you send me the output from dmesg after you
 experience this, please?

 when it locks up even ping stops responding, I get a message
 connection lost (from maemo).

I'm sorry, but I want to be clear here. Do you mean that N800 UI
displays connection lost banner? Please be very specific, because
all minor details count here.

But if you really see connection lost in UI, that's not a lockup but
an indication that the N800 lost the connection to the AP. And a
properly ported maemo application would handle that situation just
fine (ie. it would receive disconnected signal from libconic, would
close the TCP connections and the UI would not block etc.)

 I just tested it today with an xterm open running a constant ping
 and walking around the area. after 10min it stopped working (I was
 out of coverage area and returning) I did unfortunately not look at
 the dmesg output, I will try again and report my findings.

dmesg output is very important here. If you can get one, please send
it here. Also please describe, in detail, what UI shows you at the
time when dmesg output was saved.

 other users reported it too as Luca Olivetti pointed out. and it
  seems like the problem and fix is described here:
  http://internettablettalk.com/forums/showpost.php?p=134914postcount=15
  at least for the 770 the fix seems to exist,

 What I read from the link, someone had written a workaround to try
 again whenever the chip is responding. That would good a feature,
 but I would like to get more information about what's happening in
 this case.

 i will investigate this issue and will look at the sources of the
 patch and see if it can be adapted to the n800 wlan driver (I can ask
 for help on the project's mailinglist) i hope it will solve the issue
 as this problem occurs several times per day in my wlan environment.

If you create a patch, please send it to cx3110x-devel. I would like
to see all patches (even if it's just for testing or just a quick
hack) on that mailing list so that others, including me, can easily
find them.

But I would like to remind here that even if other people see similar
symptoms somewhere else, it does not automatically mean that the
problem is the same. Lots of different WLAN problems have the symptom,
that is data transfer gets stuck. So a fix helping someone else does
not necessarily mean that it will fix your problem. 

This is the reason why I need some much information so that I can
really analyse the problem and I can be sure that I'm fixing the
correct problem.

 PS: meanwhile in order to automate WLAN lockup recovey, how could I
 write a script which basically does the same like clickingon the
 connectivity icon, basically bring down wlan and then bring it back
 up. I tried with ifdown wlan0 ; ifup wlan0 but it does not work it
 says no such device. any hints ? some commands to send to wcond ?

'ifdown wlan0' doesn't work because wlan0 is not specified in
/etc/network/interfaces. You need to run 'ifconfig wlan0 down', but
that doesn't work because wlancond does not follow wlan0 interface
status.

I think the easiest would be to send disconnected signal to wlancond
using D-BUS, for example with dbus-send commandline tool.
Unfortunately I don't have any examples at hand, but osso-wlan sources
might help you.

-- 
Kalle Valo

Re: [Maemo App Dev]How to make my app UI different

2008-02-22 Thread Ross Burton
On Mon, 2008-02-18 at 22:01 +0800, 陈凯 wrote:
 I am a newbiee on Maemo and have some experience in app dev.  Though
 maemo platform provides a great amount of amazing UI looking, I would
 like my app looks somewhat different from ordinary maemo app.  A
 cool example is Skype for maemo platform.  I wonder how to make that
 effect or something like that.  Could you please give me some hint, or
 where to start ?  Thanks in advance~

Why would you want to make your application look and feel different from
every other application?  An integrated system where all of the
applications for a coherent whole is far easier to use than one where
every application has buttons with different colours and fonts.

Ross
-- 
Ross Burton mail: [EMAIL PROTECTED]
  jabber: [EMAIL PROTECTED]
 www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF



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


Re: [Maemo App Dev]How to make my app UI different

2008-02-22 Thread Frantisek Dufka
Ross Burton wrote:
 Why would you want to make your application look and feel different from
 every other application?  An integrated system where all of the
 applications for a coherent whole is far easier to use than one where
 every application has buttons with different colours and fonts.

Exactly. Also think about themes, user can choose from more default 
themes or have even custom theme (like black one) and your buttons or 
whatever will look completely wrong and may be not even readable. Will 
you test your application with every theme available?
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: WLAN Horrible Roaming Performance (N800, OS2008), Software or Hardware Problem ?

2008-02-22 Thread Kalle Valo
ext Frantisek Dufka [EMAIL PROTECTED] writes:

 [50622.038146] We haven't got a READY interrupt from WAKEUP. (firmware
 crashed?)
 [50622.038269] Try again...
 [50622.038330] succeeded!!!

 I'm attaching the same patch here. It is not very clean, but it does
 the job (for Nokia 770).

 Not seeing whole code now but I wondered before - isn't it possible
 just to increase timeout  inside 'if (time_after(jiffies, timeout))'
 instead of two passes in loop?

I also haven't seen the full code, only took a quick look at the
patch. But what I saw is that the whole frame is retransmitted,
instead of just waiting for the WR_READY interrupt from the firmware.
In other words, if the frame is lost during the tranmission to
firmware, the firmware won't receive the frame and it will not assert
the WR_READY interrupt. So it doesn't help even if the driver waits
longer, only frame restransmission helps.

 The N800 code looks nicer, where the CPU is burnt there?

The N800/N810 driver uses omap2_mcspi and SPI framework for accessing
the SPI bus. Basically omap2_mcpi waits for DMA interrupts to know
when the transfer has finished. But there are lots context switching
between cx3110x and omap2_mspi threads, that might consume some extra
CPU cycles.

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


Re: Confused: Python bindings to D-Bus - OSSO.RPC or DBUS module? Also: wlancond question

2008-02-22 Thread Kalle Valo
ext Nadav Aharony [EMAIL PROTECTED] writes:

 Second issue- controlling the WLAN connection
 From my reading I saw that for the networking stuff I would need to
 connect to wlancond and to ICD. I saw discussions about them not
 being open source, but that there is some API available. 

icd is closed but wlancond is open. You can find wlancond sources from
osso-wlan package:

http://repository.maemo.org/pool/maemo4.0/free/source/o/osso-wlan/

 Could anyone direct me to those APIs and some way to use them
 through Python?

This might help you:

http://maemo.org/development/documentation/how-tos/4-x/maemo_connectivity_guide.html

 Can I have access to all of the settings that are possible through
 the network configuration GUI application? 

The network settings are stored to GConf. I don't remember the exact
location, but it should be quite easy to find them.

 Is there any example of setting WLAN connection and IP settings
 (e..g static IP address) through python?

Create a new network connection (aka. IAP) to GConf and connect to
that IAP using libconic.

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


Re: WLAN Horrible Roaming Performance (N800, OS2008), Software or Hardware Problem ?

2008-02-22 Thread Frantisek Dufka
Kalle Valo wrote:
 Also CPU usage is very high because of busyloop when waiting till
 DMA transfer is done. Tasklet, which executes the code can't be
 easily preempted, as far as I understand kernel documentation. Maybe
 it is possible to split tasklet into several parts, one of them
 could be responsible for initiating DMA transfer, the other could be
 activated on DMA transfer completion? This all is important for
 video streaming as any excessive CPU resources consumption by WLAN
 driver negatively impacts video playback performance.
 
 Sorry, I'm not familiar with OMAP 1710 McBSP, so I can't comment.
 

I think you don't have to. From the code (sm_drv_spi_io.c) it looks like 
McBSP is setup to use dma transfer with callback when it finishes

omap_request_dma(OMAP_DMA_MCBSP2_TX, McBSP TX, dma_tx_callback, ...
omap_request_dma(OMAP_DMA_MCBSP2_RX, McBSP RX, dma_rx_callback, 

and the dma_tx/rx_callback() code just sets variable 
spi_dma.dma__tx/rx_done to 1.

But the code that sends/receives the frame busyloops for it like this

 omap_start_dma(spi_dma.dma_rx_ch); 
 

 omap_start_dma(spi_dma.dma_tx_ch); 
 

 while(!spi_dma.dma_rx_done) { 
 

 udelay(5); 
 

 } 
 

 
 
 while(!spi_dma.dma_tx_done) { 
 

 udelay(5); 
 

 } 
 

 
 
spi_dma.dma_rx_done = 0; 
 

 spi_dma.dma_tx_done = 0; 
 



So there is this nice dma architecture with callback used but the code 
still spins up the cpu waiting for the done flag instead of sleeping.

So you need to be familiar with the driver and tell us if it is possible 
to sleep inside cx3110x_spi_dma_read and cx3110x_spi_dma_write. And one 
also needs to be familiar with kernel programming and waiting primitives 
to suggest how to sleep and wait for the callback (if possible in this 
context) and how to wake up the sleeping code from the dma callback.

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


Re: WLAN Horrible Roaming Performance (N800, OS2008), Software or Hardware Problem ?

2008-02-22 Thread Kalle Valo
ext Siarhei Siamashka [EMAIL PROTECTED] writes:

 A while ago I looked for various kernel docs to see what's happening in the
 wlan driver and what can be done to reduce cpu load. My impression was that
 tasklet can be only preempted by hardware interrupts, so it is impossible to
 sleep in it and give cpu resources to userland applications. If that is true,
 no matter if n800 driver looks nicer, it must end up busylooping too.

Nope, on N800 cx3110x and omap2_mcspi do not busyloop during the DMA
transfer. They use workqueues to allow sleeping, and completions for
signalling.

To be exact both cx3110x and omap2_mcspi do busyloop on certain
occasions (waking up the chip etc.), but they do not busyloop during
DMA.

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


Re: WLAN Horrible Roaming Performance (N800, OS2008), Software or Hardware Problem ?

2008-02-22 Thread Siarhei Siamashka
On 22 February 2008, Frantisek Dufka wrote:
 Kalle Valo wrote:
  Also CPU usage is very high because of busyloop when waiting till
  DMA transfer is done. Tasklet, which executes the code can't be
  easily preempted, as far as I understand kernel documentation. Maybe
  it is possible to split tasklet into several parts, one of them
  could be responsible for initiating DMA transfer, the other could be
  activated on DMA transfer completion? This all is important for
  video streaming as any excessive CPU resources consumption by WLAN
  driver negatively impacts video playback performance.
 
  Sorry, I'm not familiar with OMAP 1710 McBSP, so I can't comment.

 I think you don't have to. From the code (sm_drv_spi_io.c) it looks like
 McBSP is setup to use dma transfer with callback when it finishes

 omap_request_dma(OMAP_DMA_MCBSP2_TX, McBSP TX, dma_tx_callback, ...
 omap_request_dma(OMAP_DMA_MCBSP2_RX, McBSP RX, dma_rx_callback, 

 and the dma_tx/rx_callback() code just sets variable
 spi_dma.dma__tx/rx_done to 1.

 But the code that sends/receives the frame busyloops for it like this

  omap_start_dma(spi_dma.dma_rx_ch);


  omap_start_dma(spi_dma.dma_tx_ch);


  while(!spi_dma.dma_rx_done) {


  udelay(5);


  }




  while(!spi_dma.dma_tx_done) {


  udelay(5);


  }




 spi_dma.dma_rx_done = 0;


  spi_dma.dma_tx_done = 0;




 So there is this nice dma architecture with callback used but the code
 still spins up the cpu waiting for the done flag instead of sleeping.

 So you need to be familiar with the driver and tell us if it is possible
 to sleep inside cx3110x_spi_dma_read and cx3110x_spi_dma_write. And one
 also needs to be familiar with kernel programming and waiting primitives
 to suggest how to sleep and wait for the callback (if possible in this
 context) and how to wake up the sleeping code from the dma callback.

A while ago I looked for various kernel docs to see what's happening in the
wlan driver and what can be done to reduce cpu load. My impression was that
tasklet can be only preempted by hardware interrupts, so it is impossible to
sleep in it and give cpu resources to userland applications. If that is true,
no matter if n800 driver looks nicer, it must end up busylooping too.

Though on Nokia 770 cpu usage is attributed to the application doing (for
example wget) and on N800 it is attributed to 'OMAP McSPI/0' process.

A solution that I tried to suggest might be to start DMA transfer, schedule
another tasklet to run after DMA transfer is done and exit from the first
tasklet. That another tasklet should get activated and do the rest of the job.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: WLAN Horrible Roaming Performance (N800, OS2008), Software or Hardware Problem ?

2008-02-22 Thread Frantisek Dufka
Kalle Valo wrote:
 ext Siarhei Siamashka [EMAIL PROTECTED] writes:
 
 A while ago I looked for various kernel docs to see what's happening in the
 wlan driver and what can be done to reduce cpu load. My impression was that
 tasklet can be only preempted by hardware interrupts, so it is impossible to

Thanks for enlightement to both of you, that was the part I was missing.

 sleep in it and give cpu resources to userland applications. If that is true,
 no matter if n800 driver looks nicer, it must end up busylooping too.
 
 Nope, on N800 cx3110x and omap2_mcspi do not busyloop during the DMA
 transfer. They use workqueues to allow sleeping, and completions for
 signalling.
 

How is it so when you cannot sleep inside cx3110x_spi_dma_read and 
cx3110x_spi_dma_write? There appears to be same code for N800 too just 
the body of those functions does not use McBSP but SPI API:

spi_message_add_tail(t[1], m); 

spi_sync(lp-spi_device, m); 


Does it mean we can wrap McBSP usage into similar api and leave cx3110x 
otherwise alone without restructuring it?

But still I don't get it, either spi_sync bysyloops or the semantics of 
cx3110x_spi_dma_write changed and it can return when the transfer is not 
yet done (??).

Frantisek

BTW, let's remove maemo-developers@maemo.org and move just to 
[EMAIL PROTECTED]
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: Developing applications in Flash

2008-02-22 Thread josh.soref
Alfie wrote:
 I notice that the Getting Started applet is a full screen 
 Flash application.

yep

 Does anyone know how this is achieved, specifically:
 -  How to add to start menu
 -  How to add to desktop

This is basically a distinct application/applet.

 -  How to launch the swf

It creates a browser eal instance and then asks the eal to load a url,
which happens to be flash.
As it happens, the application doesn't depend on flash, and it doesn't
ensure that flash is available.

If you're going to implement something like this, please ensure the
following:

1. your application has a depends: adobe-flashplayer |
macromedia-flashplayer
2. you have your own profile directory with a plugins directory
containing a symlink to the flash player library
3. provide a desktop file that claims to handle .swf and the mime type

Here's a fairly short overview of what it does (written in C++ coding
style so I can declare variables as I need them; note that proper
release of modules and similar is not implemented in this quick
description):

/* XXX there is *no* function which lets you get the user's prefered
browser,
 * and in fact there's virtually no way to figure out which ones are
available.
 * we hard code microb-eal.
 */
#define EAL_BROWSER microb-eal

 GModule* module = g_module_open(/usr/lib/lib EAL_BROWSER .so.0,
G_MODULE_BIND_LAZY);
 if (g_module_error())
   return 0;
 setenv(MOZ_COMP_PATH_OVERRIDE, .swfplayer, 1);
 setenv(MOZ_PROFILE_OVERRIDE, FlashPlayer, 1);
 if (!g_module_symbol(module, g_web_set_env, (gpointer *)
web_set_env))
   return 0; 
 if (!g_module_symbol(module, g_web_new, (gpointer*) web_get_new))
   return 0; 
 web_set_env();
 GWeb* web = web_get_new();
 if (!web)
   return 0;
 /* this code is a copy of code copied from code copied from svn which
you can read at
  *
http://timeless.justdave.net/mxr-test/garage/source/browser/browser-ui/t
runk/eal-test/src/main.c
  * however, do note the / between the VendorName and the Version.
  * This is required by the UserAgent specification,
  * which is unfortunately not followed by the example above, nor by the
people who copied it.
  */
 g_web_set_ua_string(web, SWFPlayer/0.1);
 GWebEngine* engine = g_web_new_web_engine_window_with_context(web,
NULL, FALSE, FALSE);
 if (!engine)
   return 0;
 GObject* widget = g_web_engine_get_engine_widget(engine);
 gtk_fixed_put(GTK_FIXED(container), GTK_WIDGET(widget), 0, 0);
 gtk_widget_set_size_request(GTK_WIDGET(widget), 0, 0);
 gtk_widget_show(GTK_WIDGET(widget));
 GObject* notify = g_web_engine_get_engine_notifier(engine);
 g_signal_connect(notify, G_WEBWIDGET_SIGNAL_FINISHED_LOADING,
G_CALLBACK(finished_loading), NULL);
 g_web_engine_load_url(web, file:///tmp/foo.swf);

Note: none of the code to do shutdown is included here. The plugin
directory should be /home/user/.swfplayer/plugins

 -  Does it have to be full screen?

No, the player happens to hard code this.

 I'm interested in how one might write applications for OS2008 
 using Flash alone, in order to make development easier for 
 the new breed of Flex developers!

There's actually a browser bug that's catching people unhappy. And given
the existence of the tutorial, I'm going to see if I can solve it.
However if you get a working standalone player sooner, all the better.

Note: it'd be great if you could use rewrite the browser .desktop file
in a postinst.
For an example, see
http://timeless.justdave.net/maemo/microb-pageupdown-0.1/DEBIAN/postinst
http://timeless.justdave.net/maemo/microb-pageupdown-0.1/DEBIAN/postrm

It should be something like this:
PREFFILE=/usr/share/applications/hildon/browser.desktop
PREFBACK=$PREFFILE.flash-mimetype
OLDPREF='(MimeType.*)application\/x-shockwave-flash;'
OLDPREFG='MimeType.*application\/x-shockwave-flash;'
NEWPREF='\1application\/x-shockwave-flash-in-browser;'

(not tested)

 Does anyone think it would be possible to develop Flash apps 
 that make use of the Hildon menus, etc? This would presumably 
 need native calls from Flash and I'm not sure this is 
 currently possible.

That's a question for people who probably can't comment. Good luck.

 In the medium/long term it would be great to see Adobe AIR 
 fully supported on OS2008. See http://www.adobe.com/devnet/air.

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


Regarding serial USB interface

2008-02-22 Thread nisha jain
Hi All,

I am trying to implement a simple c routine to collect data from some
sensors and transfer
it to Nokia 800 using serial USB port. I have a reference peace of code and
after modification
i am able to collect data but while porting it to Nokia800 while compiling
in ARMEL mode
i am getting many issues like alignment issues-- bigendian and littlendian
issues..
Is there some sample code present if so please let me know

Thanks and Regards,
Nisha
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Extras repository survey

2008-02-22 Thread Niels Breet
Hi developers,

While talking about a 'better' extras repository, Misha, Ed and I have
come up with some questions that we would like to have answered. We have
created a small survey (only 10 yes/no statements) at our new project page
on garage.

This survey will help giving us better insight into what problems a
developer faces when publishing a package. With the results, we hope to be
able to prioritize and better focus our work.

We would like developers with their own repository and developers using
the extras repositories to do our survey at:
https://garage.maemo.org/survey/survey.php?group_id=602survey_id=13

Our new project page can be found at:
https://garage.maemo.org/projects/extras-cauldron/

- Niels

PS. More info about our current efforts will be published here soon.



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


Maemo-garage emails get damaged when being read with kmail

2008-02-22 Thread Till Harbaum / Lists
Hi,

i have a very bizarre problem. Whenever i receive an email from 
garage.maemo.org, this email gets completely messed up when being received by 
kmail. These emails are fine before and i can e.g. read them without any 
problem from my n810 (which leaves them on the server). If i then read them 
with kmail afterwards nearly everything inside the email is deleted.

See below what's left of such an email. This is how kmail sees e.g. one of my 
own postings to the maemo-mapper list when it returns to me.

Is anyone here experiencing the same problem? I have abiut 10.000 emails in my 
kmail and this has only happened with emails from maemo.garage.org and it 
happens to all of them. Everything is lost, the date, the subject and if 
course the actual content. Only parts of the header are left as seen below.

I am seeing this with ubuntu gutsy and kmail 1.9.6 on kde 3.5.8

Till

X-Envelope-From: [EMAIL PROTECTED]
X-Envelope-To: [EMAIL PROTECTED]
X-Delivery-Time: 1201780857
X-UID: 10885
Return-Path: [EMAIL PROTECTED]
X-RZG-CLASS-ID: mi
Received: from garage.maemo.org ([62.61.85.33])
by mailin.webmailer.de (hamish mi15) (RZmta 16.3)
with ESMTP id z04912k0VBxx4B for [EMAIL PROTECTED];
Thu, 31 Jan 2008 13:00:57 +0100 (MET)
(envelope-from: [EMAIL PROTECTED])
Received: by garage.maemo.org (Postfix, from userid 33)
id 4FAE737A77; Thu, 31 Jan 2008 14:07:34 +0200 (EET)
Precedence: Bulk
List-Id: open-discussion [EMAIL PROTECTED]
List-Help: http://garage.maemo.org/forum/forum.php?id=72
Message-Id: [EMAIL PROTECTED]
In-Reply-To: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
From: =?UTF-8?B?VGlsbCBIYXJiYXVt?= 
[EMAIL PROTECTED]
X-Bogosity: Ham, tests=bogofilter, spamicity=0.00, version=1.1.5
Status: R
X-Status: NC
X-KMail-EncryptionState:  
X-KMail-SignatureState:  
X-KMail-MDN-Sent:  

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


Re: Using the scrollbar on the N810

2008-02-22 Thread Richard Booth
Hi Eero

Yes I do get multiple taps while dragging. I'm running 50-2. I have a
short video here to show you what I mean,
http://video.google.com/videoplay?docid=-9012993319746862469

I've added this video link to bug 2961. 

Kind regards
Richard

On Thu, 21 Feb 2008 10:36:35 +0200
Eero Tamminen [EMAIL PROTECTED] wrote:

 I.e. you're really getting multiple stylus taps *while* dragging
 the stylus?  We had that kind of an issue in the Os2008 Beta, but
 AFAIK it should be fixed in the final OS2008 release (50-2).


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