LinuxMCE Forums
June 18, 2013, 10:25:30 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: X Progress Window and UTF8  (Read 681 times)
nite_man
NEEDS to work for LinuxMCE
***
Posts: 1019


Want to work with LinuxMCE


View Profile WWW
« on: October 13, 2009, 02:31:26 pm »

Hi,

Another problem appears with localization LinuxMCE UI. The progress window where some messages are displayed during loading the core is developed using Xlib. I didn't find a way to show messages correctly. As I understand the function  XDrawString() doesn't support UFT8 at all. Some other one should be use such XmbDrawString() or so. But I didn't find the actual solution. If somebody who has better experience with X programming can help me I'll be very very appreciated!

TIA
Logged

Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru
tschak909
LinuxMCE God
****
Posts: 5116

DOES work for LinuxMCE.


View Profile
« Reply #1 on: October 13, 2009, 02:58:47 pm »

The correct course of action here would be to pick a UI toolkit, either GTK+ or Qt, and rewrite the OrbiterLinux portions that use the xlib calls, to use the toolkit calls, because xlib does NOT support unicode, and the amount of infrastructure required to graft such support on (think Pango) would be better spent basically just rewriting the code to use proper calls anyway. There are far too many weird little bugs with this code to continue using it in its current state.

Go for it.

-Thom
Logged
nite_man
NEEDS to work for LinuxMCE
***
Posts: 1019


Want to work with LinuxMCE


View Profile WWW
« Reply #2 on: October 13, 2009, 09:00:51 pm »

You confirmed my thoughts, Tom Smiley I vote Qt since LinuxMCE is based on KDE. If so I'll try to implement it.
Logged

Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!