[maemo-developers] Porting fltk-app

From: Tapani Pälli tapani.palli at nokia.com
Date: Fri Sep 14 10:27:32 EEST 2007
ext Jørn Christensen wrote:
> Hi,
>
> Thanks for your answer, and sorry for my late answer, but I am a bit
> busy with my studies as well.
>
> Eero Tamminen wrote:
>   
>> Hi,
>> ext Tapani Pälli wrote:
>>     
>>>> I am trying to port an FLTK (www.fltk.org) application to N770/N800. I
>>>> got FLTK compiled and the application as well, but when I run the
>>>> application, it is not managed by Matchbox. That is, the program is not
>>>> shown in the taskbar and the keyboard will not pop up.
>>>>
>>>> I have tried to hack FLTK according to the code snippets
>>>> https://garage.maemo.org/snippet/detail.php?type=snippet&id=3 and
>>>> https://garage.maemo.org/snippet/detail.php?type=snippet&id=4 but
>>>> without luck.
>>>>
>>>> What do I need in order for Matchbox being aware of my program?
>>>>         
>>> The window is being managed by matchbox. Maemo input-methods (keyboard, 
>>> hwr) use their own protocol to communicate directly with gtk-widgets. 
>>> You have to implement this protocol in text-entry fltk-widgets.
>>>       
>> Basically it means sending an X to the input method window when the
>> widget wants the input method to show itself.  In the Maemo Gtk this
>> happens when user taps to a widget.
>>
>> Maemo Input Method framework was just opened, so now other widget sets
>> like Fltk or Qt can be fully ported to Maemo.  The IM protocol source
>> for widget <-> input method communication is here:
>> https://stage.maemo.org/svn/maemo/projects/haf/trunk/hildon-input-method-framework/src/
>>     
>
> I will look into this.
>
>   
>>> In order 
>>> to get program shown in taskbar (which is a pager, not  a component of 
>>> window manager) you have to provide valid .desktop file. Instructions to 
>>> do this is in maemo.org documentation.
>>>       
>
> I found an example on a .desktop file and (basically) copied it. When I
> start the program, the notification says "Launching ThinLinc" (the
> program), but nothing happens. I also tried to make a service file - but
> with no luck.
>
>   
You have to copy .desktop file to /usr/share/applications/hildon
directory. What version(s) of Maemo are you using? There used to be some
issues with .desktop files not having _exactly_ correct syntax ..

> ~Jørn
>
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>   

// Tapani


More information about the maemo-developers mailing list