> Zhu, Peter J wrote:
>> Hi,
>>
>> I tried to add one style and use that style at end of
>> gtkrc.maemo_af_desktop as following: style "mid-media-back" {
>> GtkButton::child_displacement_x = 0
>> GtkButton::child_displacement_y = 0
>> engine "sapwood" {
>> image {
>> function = BOX
>> state = NORMAL
>> file = "../images/mb_media_btn_back.png"
>> } }
>> }
>> widget "*.wm_pm_tb_prev_bn" style: hightest "mid-media-back"
>>
>> And wm_pm_tb_prev_bn is the ID of "previous" button of photo view in
>> moblin-media defined in a glade file. To guarantee, I even use
>> GtkWidget.set_name("wm_pm_tb_prev_bn").
>>
Some progress are made while I can't make it out finanlly.
1. The value for gconf key /desktop/gnome/interface/gtk_theme is folder
name under /usr/share/themes, like mobilebasic, umebasic, rather than
package name.
2. Some bugs were there in gconf key probe code of molin-media. Fixed.
Some issues still there:
For current gtk theme in our desktop, it seems that only class and
widget_class path matching work while widget path NOT. I tested for both
marquee plugin buttons and moblin-media "back" button. For example:
"*.DropDownMenuPlugin.GtkButton*" can work but
"*.DropDownMenuPlugin.marquee-dropdown*" CAN'T. It might be my
misunderstanding. But it's also possible that something might break for
widget path matching. Without widget name matching, it's not possible to
add theme support for moblin-media since many buttons have same layout.
--
Ubuntu-mobile mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile