Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2009

    Porting Xlib Apps to N900

    I apologize if this is in the wrong forum; this seemed the most promising one, as my question concerns a GUI on the n900.

    Some years ago, I ported the graphical Links2 web browser to the n800. It uses raw Xlib rather than a toolkit such as Gtk or Qt. To get it to work on the n800, I added a thin GTK layer around it: basically, it created a Gtk window, and used this window as the parent of the Xlib window created by Links, and a few other shims to get input working.

    Now I have an n900, as I was pleasantly surprised to find that simply running Links resulted in a window, preview, and so on, with no Gtk required. On the other hand, it seems that making it full screen (which I consider a necessary feature) requires a Gtk/Gdk window. Unfortunately, the previous approach doesn't seem to work; I simply get a black window. I've played around a bit, and am unable to get a Gtk/Gdk window working with Links.

    I've taken a brief look at Qt, and haven't found anything that looks particularly useful. Before, I found a wonderful tutorial on porting X apps, explaining how to make a Gtk window, how the input works (and even an example which took Hildon input Clientmessages and converted them to X keyboard events); this made it much easier to port. Does anything like this currently exist, either for Gtk or Qt?

    Or, I would be delighted if there were a way to tell Maemo to hide the toolbar without having to give it a Gty,/Qt window. Unfortunately, documentation seems pretty sparse at the moment.

  2. #2
    Registered User
    Join Date
    Dec 2009

    Porting Xlib Apps to N900 (Solved)

    Of course, only hours after posting this it occurs to me to look at exactly what the GTK fullscreen call does. It turns out all that's required is sending an XClientMessage to the root of type _NET_WM_STATE with parameter _NET_WM_STATE_FULLSCREEN, and the window becomes fullscreen.

Similar Threads

  1. Porting xlib apps to Maemo
    By damianf in forum General Development Questions
    Replies: 2
    Last Post: 2009-01-19, 17:07
  2. [moved] Mobile Porting Solutions
    By ninnythomas in forum News and Announcements
    Replies: 3
    Last Post: 2008-11-03, 10:10
  3. FOC product for porting of S60 apps to UIQ
    By chomed in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-01-19, 10:42
  4. Porting Apps from 3650 --> 6600
    By wolfi1905 in forum Symbian
    Replies: 3
    Last Post: 2003-10-22, 03:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts