[maemo-developers] Porting fltk-app
From: Jørn Christensen news at mettle.dkDate: Sat Sep 15 01:43:05 EEST 2007
- Previous message: Porting fltk-app
- Next message: Porting fltk-app
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tapani Pälli wrote: > 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/ This is just the source, and searching google gives only sparse documentation for it. And none of how to make fltk-apps display the keyboard and receive inputs from it. Is there any "real" documentation for it? >>>> 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 .. Well, I toyed a bit around with it and found out that the reason for the program not launching was that in my service-file, I had written com.cendio.thinlinc instead of com.nokia.thinlinc!!! Anyway - program launches fine now, but still no icon in the pager! Any advice? And oh, thanks for your help :-) ~Jørn
- Previous message: Porting fltk-app
- Next message: Porting fltk-app
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]