Get xid from hildon desktop home plugin using pygtk

2008-04-20 Thread Sergio Galán
Hi,
I'm working in a home Widget which can play video using an embedded
mplayer, so I need to get the xid. Using usual (py)GTK window I don't
have any problem.

...
class videoPlugin():
def __init__(self):
self.mwindow=gtk.Window(gtk.WINDOW_TOPLEVEL)
MplayerWidget=gtk.DrawingArea()
self.mwindow.add(MplayerWidget)
self.mwindow.show_all()

xid = MplayerWidget.window.xid


but if I use the same code on hildondesktop.HomeItem class:


...
class videoPlugin(hildondesktop.HomeItem):
def __init__(self):
MplayerWidget=gtk.DrawingArea()
self.add(MplayerWidget)
self.show_all()
xid = MplayerWidget.window.xid
...

I get an error:
xid = MplayerWidget.window.xid
AttributeError: 'NoneType' object has no attribute 'xid'


¿Does hildon-desktop-home-plugin have xid? ¿How can I read it?

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


Re: Arabic l10n

2008-04-20 Thread Al Khadra

Your contribution would be highly appreciated.
 
 I would say that Maemo Chinook is 85% arabized. You can browse arabic
sites (encoded in Unicode) using the Mozilla MicroB browser, read RSS
feeds and thanks to the arabic keyboard Jiri Benc and I made, you can now
write emails, notes, chat and fill forms.

 I guess what is left to do is an Arabic Windows-1256 character encoding
package for the Mozilla MircoB.

 Thanks,

 AK

--- Khaled Hosny [EMAIL PROTECTED] wrote:

 Hi every one,
 
 I'm an Arabic localizer (I contributed Arabic translation to many FOSS
 projects, including Gnome) and I'm willing to localize various maemo
 components into Arabic, I actually started and translated few packages.
 
 I'm wondering how this translations can be upstreamed, is there any
 guidelines on how to submit new translations? 
 
 Thanks in advance,
 
 -- 
  Khaled Hosny
  ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers
 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Arabic l10n

2008-04-20 Thread Khaled Hosny
I know that GTK+ and Mozilla (especially gecko 1.9) support Arabic very
well, what I'm interested in the localization of the UI itself (at least
FOSS parts of it).

Thanks,
 -Khaled

On Sun, Apr 20, 2008 at 07:43:06PM -0700, Al Khadra wrote:
 
 Your contribution would be highly appreciated.
  
  I would say that Maemo Chinook is 85% arabized. You can browse arabic
 sites (encoded in Unicode) using the Mozilla MicroB browser, read RSS
 feeds and thanks to the arabic keyboard Jiri Benc and I made, you can now
 write emails, notes, chat and fill forms.
 
  I guess what is left to do is an Arabic Windows-1256 character encoding
 package for the Mozilla MircoB.
 
  Thanks,
 
  AK
 
 --- Khaled Hosny [EMAIL PROTECTED] wrote:
 
  Hi every one,
  
  I'm an Arabic localizer (I contributed Arabic translation to many FOSS
  projects, including Gnome) and I'm willing to localize various maemo
  components into Arabic, I actually started and translated few packages.
  
  I'm wondering how this translations can be upstreamed, is there any
  guidelines on how to submit new translations? 
  
  Thanks in advance,
  
  -- 
   Khaled Hosny
   ___
  maemo-developers mailing list
  maemo-developers@maemo.org
  https://lists.maemo.org/mailman/listinfo/maemo-developers
  
 
 
 
   
 
 Be a better friend, newshound, and 
 know-it-all with Yahoo! Mobile.  Try it now.  
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers