RE: GTK theme masters: Help! (RE: Theme Setting added to moblin-applets - bug #206389 )

2008-05-20 Thread Li, Horace
Hi, Bob,
 
My hildon-desktop patch is here: 
http://launchpadlibrarian.net/14555683/24_support_dynamic_theme_update.patch

I was thinking it might be better to have a review to those changes before I 
put it to hardy ppa. I can put it directly, and actually I have verified it in 
my target and it is working well.
 
Currently what is in the snapshot is 'Default' theme and I am not quite sure in 
which package 'Human' is set to the key /desktop/gnome/interface/gtk_theme. But 
when you modify that key by gconf-editor, and set it to 'mobilebasic', with 
updated hildon-theme-mobile-basic, you will see marquee panel updated at 
runtime. :-)
 
Thanks,
Horace



From: Spencer, Bob 
Sent: 2008年5月21日 7:41
To: Li, Horace; Brandt, Todd E; Bryan, Shane; Loïc Minier; Kyle Nitzsche
Cc: Wong, Carl; Alexander Sack; ubuntu-mobile@lists.ubuntu.com
Subject: GTK theme masters: Help! (RE: Theme Setting added to moblin-applets - 
bug #206389 )


We need to tweak some things to get our themes working correctly.   Questions / 
confusion in red
 
My goals are:
- Have all theme settings controlled via the standard gconf keys:  
desktop/gnome/interface/gtk_theme (and icon_theme).   These are currently set 
to non-existent Human
- Remove hard-coded theme in scripts (currently set to mobilebasic)
- Set gnome as default icon theme and verify it works
- Get midbrowser to use 48x48 icons instead of stretching 24x24 icons 
(These are coming from /usr/share/doc/libgtk2.0-doc/gtk/  !?  )
- Verify that apps, marquee, and home page change theme when gconf keys 
change.
 
What I thought happened, but doesn't exactly:
X starts
  /etc/X11/Xsession.d/25ume-config-common-startup
sets GTK2_RC_FILES = theme_dir/gtkrc-2.0/gtkrc(theme_dir 
currently /usr/share/theme/mobilebasic/ )
calls /usr/share/ume-config-common/ume-gui-start
starts matchbox, passing in --theme = 
theme_dir/matchbox/theme.xml(theme_dir currently:  
/usr/share/theme/mobilebasic )
The above should impact hildon-desktop and matchbox only.   (Horace, can we 
also find a way to remove the --theme parameter to matchbox?)
 
GTK apps get theme settings via xsettings daemon which reflects values in 
gconf:   ( I don't see any change in apps icons or theme.  Browser icons don't 
change -- what apps do?)
  /desktop/gnome/interface
/gtk_theme
/gtk_key_theme  (what is this?)
/icon_theme
 
There is also currently gconf keys in:  
  /desktop/moblin/interface  (Todd, what are these for and who uses them?)
/gtk_theme
/icon_theme
 
FYI:  Horace has changed the hildon-desktop to ignore the GTK2_RC_FILES and 
moved the gtkrc.maemo_af_desktop contents to gtkrc file.  
(Horace, where are your changes?  I built an image today but hildon-desktop 
hasn't changed.  If I comment out GTK2_RC_FILES value, I get the attached).
current hildon-desktop:  1:2.0.11-1-svn15367-0ubuntu2
 
wrt the gtkrc file in the mobilebasic theme package, all references to image 
files were changed from:  ../images/file to  
../../../../../usr/share/theme/mobilebasic/images/file  Why?  It seems less 
robust to have basically an almost absolute path instead of a relative one.
 
Bob
 


From: Li, Horace 
Sent: Tuesday, May 20, 2008 9:22 AM
To: Brandt, Todd E; Spencer, Bob
Subject: Theme Setting added to moblin-applets - bug #206389



Hi, Todd,

Below is the comment from Ubuntu engineer for your reference.

Gtk theme changes are made by setting the following gconf key to the name of a 
theme directory: /desktop/gnome/interface/gtk_theme . For example, this could 
be set to mobilebasic or any other valid theme directory in that location/

When that key changes, the change is propagated to xsettings and, through this, 
all gtk apps are notified of the new theme, and they immediately redraw 
themselves. Gtk applications launched later launch using the new theme.

Basically, we might need a theme setting dialog added to moblin-applets for 
users to select their favorite theme, when new theme is selected, 
/desktop/gnome/interface/gtk_theme key value should be updated.

Thanks,
Horace 

-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile


Re: Please help to review i18n support in marquee-plugins

2008-05-14 Thread Li, Horace
Hi, Kyle,

To answer your two questions,
1) So far, new locales have to be added manually by editing a new po file. I 
was 
looking at generating po files automatically by using 'gettext' utility, but 
somehow got
back luck on enabling it. I will investigate more and let you know when it is 
okay.

2) Application name internationalization seems to be maintained by each 
application. In
mobile-basic-flash, home plugin will read through app desktop file and check if 
there is
the translated name matched to current applied locale setting. Take Pidgin as 
example, its desktop
has following name field setting,

[Desktop Entry]
Name=Pidgin Internet Messenger
... ...
Name[zh_TW]=Pidgin 網路即時通
... ...

and in zh_TW environment, when starting Pidgin from mobile-basic-flash, banner 
will show up
Pidgin 網路即時通 正在启动...

Thanks,
Horace

On Wed, 2008-05-14 at 17:29 -0400, Kyle Nitzsche wrote:
 Hi Horace, 
 
 
 I tested mobile-basic-flash i18n. It worked!
 
 
  * We need a zh_TW (Chinese/TW) translation first
  * so I created the po file manually
  * translated it into Chinese
  * created the mo file manually
  * switched to that locale
 
 
 And the Starting app pop-up displayed in Chinese. (Not the app
 name, just the Starting part.)
 
 
 Two questions:
 
 
  1) How does one add new locales to the package so that when the
 package is built with debuild the new po file is created if it doesn't
 already exist? (As mentioned, I know how to do it manually.)
 
 
  2) Do you expect the application name also to be displayed translated
 in the Starting appname popup?  
 
 
 Cheers,
 Kyle
 
 
 
 
 
 
 
 
 
 
 On May 12, 2008, at 1:55 AM, Li, Horace wrote:
 
  Hi, All,
   
  I have added i18n support in marquee-plugins and mobile-basic-flash,
  following GNU ‘gettext’ utilities specification.
   
  Marquee-plugins has a patch to integrate the change, while
  mobile-basic-flash has been modified in source package directly.
  Currently, only zh_CN translation script is included, which can be
  taken as a sample. There are only few messages that need to be
  translated in marquee-plugins  mobile-basic-flash.
   
  The patch is attached in the mail, and it is based on latest
  marquee-plugins-0.22_0ubuntu2, which is at Ubuntu Hardy PPA. If
  possible, please help to review the patch and if okay, we can add it
  in next release.
   
  You could also get the patch
  from 
  http://moblin.org/repos/users/horace.li/65_internationalization-support.patch
   
  Any comments are welcome.
   
  Thanks in advance,
  Horace
  65_internationalization-support.patch
 
 

-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile


RE: Help for add my application

2008-05-13 Thread Li, Horace
Hi, Alex,

 

There is a key in gconf to switch on/off non-mobile desktop link showing up on 
screen. If that key is switched on, you will have to add following field in 
your desktop file so as to be a mobile application.

 

[Desktop Entry]

… …

OnlyShowIn=GNOME;Mobile

… …

 

The key in gconf is /desktop/Hildon/htmlhomeplugin/onlyshowin_filter. You could 
simply set it to FALSE without adding ‘OnlyShowIn’ field in your desktop file, 
which could show up your hello link on screen.

 

Thanks,

Horace



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexandre Safa
Sent: 2008年5月13日 17:01
To: ubuntu-mobile@lists.ubuntu.com
Subject: Help for add my application

 

Hello all, i writed a simple hello C/GTK application, but i can't put a new 
icon to the ume desktop. I made a hello.desktop file which contain:

 [Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Hello
Comment=A hello application
Exec=hello
Icon=hello
StartupNotify=true
Type=Application
Categories=GTK;Application;Utility

i've copied this file into /usr/share/applications

Nothing appear into the Utility menu...any ideas ? Is there a symbolic link to 
make anywhere ?

-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile


Please help to review i18n support in marquee-plugins

2008-05-11 Thread Li, Horace
Hi, All,

 

I have added i18n support in marquee-plugins and mobile-basic-flash, following 
GNU 'gettext' utilities specification.

 

Marquee-plugins has a patch to integrate the change, while mobile-basic-flash 
has been modified in source package directly. Currently, only zh_CN translation 
script is included, which can be taken as a sample. There are only few messages 
that need to be translated in marquee-plugins  mobile-basic-flash.

 

The patch is attached in the mail, and it is based on latest 
marquee-plugins-0.22_0ubuntu2, which is at Ubuntu Hardy PPA. If possible, 
please help to review the patch and if okay, we can add it in next release.

 

You could also get the patch from 
http://moblin.org/repos/users/horace.li/65_internationalization-support.patch

 

Any comments are welcome.

 

Thanks in advance,

Horace



65_internationalization-support.patch
Description: 65_internationalization-support.patch
-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile


RE: Boot time +8sec with freedesktop.org changes

2008-04-21 Thread Li, Horace
I might not describe so clearly, I am saying when installing/removing a debian 
package that doesn't ship a file in /usr/share/applications, cache update 
should not be triggered.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lo?c Minier
Sent: 2008年4月21日 19:56
To: ubuntu-mobile@lists.ubuntu.com
Subject: Re: Boot time +8sec with freedesktop.org changes

On Mon, Apr 21, 2008, Li, Horace wrote:
 what if a debian package is not an application package, which will not
 install desktop file to /usr/share/applications, it might also be
 necessary to filter those non-application package when updating cache.

 I don't understand the case you describe: you're saying a package
 doesn't ship a file in /usr/share/applications but still needs to run a
 cache update?  Could you give an example?

-- 
Loïc Minier

-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile


RE: Boot time +8sec with freedesktop.org changes

2008-04-20 Thread Li, Horace
what if a debian package is not an application package, which will not install 
desktop file to /usr/share/applications, it might also be necessary to filter 
those non-application package when updating cache.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lo?c Minier
Sent: 2008年4月19日 17:24
To: ubuntu-mobile@lists.ubuntu.com
Subject: Re: Boot time +8sec with freedesktop.org changes

On Fri, Apr 18, 2008, Spencer, Bob wrote:
 Perhaps a light-weight daemon that uses inotify to listen for changes to
 /usr/share/applications and then update the cache.  That seems easier
 than requiring changes to debian packages, but it would be running all
 the time and new packages are installed less frequently.  

 dpkg in Ubuntu and soon in Debian will allow to use triggers, so any
 package can register interest in a tree and changes to this tree; it
 will only be told that the tree changed (and not what changed), but
 that's enough for this use case.

 See deb-triggers(5).

   HTH
-- 
Loïc Minier

-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile


RE: Moblin Media launching issues?

2008-03-27 Thread Li, Horace
This issue seems to be caused by wrong X-OSSO-Service name set in 
/usr/share/applications/moblin-media-music [ | photo | video].desktop

Take moblin-media-music.desktop as example.
Proper name should be 'X-Osso-Service = org.moblin.media.music', not 
'X-Osso-Service=org.moblin.media.music.service'

I think this would be fixed soon.

Regards,
Horace

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rusty Lynch
Sent: 2008年3月27日 1:06
To: Rob Lifford
Cc: ubuntu-mobile@lists.ubuntu.com
Subject: Re: Moblin Media launching issues?

Which image-creator platform are you using?

--rusty

On Wed, 2008-03-26 at 11:32 -0500, Rob Lifford wrote:
 Last night I built a fresh target with Image Creator, using the
 full-mobile-stack-with-proprietary fset, created an install USB key,
 and installed it fully on a Q1U. I've got the device booting into UME
 but the Moblin Media apps refuse to start from the home screen (they
 show the loading message but then it just sits there). I've discovered
 that I can run it (the Photo viewer) by invoking moblin-media from the
 command line, but just thought I'd ask if anyone else has experienced
 this and knows what's up.
 
 Thanks,
 Rob

-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile

-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile


RE: Suggestion about interface

2007-10-15 Thread Li, Horace
Just some personal feeling as an end-user.

I think buttons are good, they can let users directly access some basic
but useful functions, and they looks good for finger touching. :-)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adilson
Oliveira
Sent: Tuesday, October 16, 2007 9:14 AM
To: GrueMaster
Cc: ubuntu-mobile@lists.ubuntu.com
Subject: Re: Suggestion about interface

GrueMaster escreveu:
 Is this in the current build?  If so, I can see what they are like on
a
 small (4x6) screen tomorrow.

Hi.

Not yet but you can download the patch from here
http://launchpadlibrarian.net/10046532/claws-mail-hildon.diff and build
yourself.
Just remember that it should be built on lpia to have the hildon
interface.

[]s

Adilson.

-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile

-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile


Python-gtk2-dev lacks of gtk-extrafuncs.defs

2007-07-18 Thread Li, Horace
Hi, All
 
I am trying to integrating python-hildon into archive, and when
generating debian package, it will report IOError: gtk-extrafuncs.defs
not found in include path ['/usr/share/pygtk/2.0/defs', '.'].
 
I checked the python-gtk2-dev package, and there is a defs
file:/usr/share/pygtk/2.0/defs/gtk-base.defs, includes
gtk-extrafuncs.defs but no gtk-extrafuncs.defs is included in
python-gtk2-dev package.
 
Does anyone know what package now include
/usr/share/pygtk/2.0/defs/gtk-extrafuncs.defs? Is it used any more? If
not, should we update gtk-base.defs to remove the include?
 
Thanks a lot,
Horace
-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile


RE: Python-gtk2-dev lacks of gtk-extrafuncs.defs

2007-07-18 Thread Li, Horace
Adilson Oliveira wrote:
 
 I'm not aware of this one. The only python-related package for maemo I
 know is this one
 https://code.launchpad.net/~ubuntu-mobile/python-hildondesktop/ubuntu
 
 []s
 
 Adilson.
Hi, Adilson,

Thanks for the link, I have seen python-hildondesktop is already in
launchpad. Nokia guys shared out a new link to access python-hildon.
https://garage.maemo.org/svn/pymaemo/packages/python-hildon/branches/sar
dine/

And it should used to let python base application use hildon widgets
defined in hildon library and hildon fm. It might not be useful right
now but it is the interface for python developers who want to develop
hildon applications.

I am not sure if it will be added into Ubuntu Mobile and Embedded
project, just currently we met some problem when packing it up.

Thanks,
Horace

-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile


RE: Hildon Japanese Language Support?

2007-07-18 Thread Li, Horace
Kevin Fries wrote:
 I am running a test for my bosses, and wanted to evaluate the Hildon
 Desktop.  What would be required to have the screens interact with the
 end user in Japanese?
 
 Thank You (ありがと)

Hi, Kevin,

Currently there is no japanese translation for hildon desktop.

For english translation, please try `apt-get source maemo-af-desktop-l10n` and 
you might like to take it as a sample for Japanese translation.

Thanks,
Horace

-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile