Active Topics

 


Reply
Thread Tools
ian_ryge's Avatar
Posts: 138 | Thanked: 262 times | Joined on Oct 2006
#11
Like Milhouse said, this is one for bugzilla.

The fmradio applet gained a new button in this version, and the background graphic needed to be updated to fit the change. Until now, the fmradio applet has used the same graphic as the internet radio, and has been easily theme-able.

Looking around in /usr/share/fmradio you can see that they're now using a file called gtkrc.fmradio which defines new gtk styles for each of the four built-in themes. Apparently if any other theme is used, the fmradio applet defaults to its Adria style. I tried adding new styles for other themes to the gtkrc.fmradio file, but that didn't fix the problem. It must have been obvious to the developers that relying on the hardcoded names of four themes wouldn't work with all the other themes...

Other themes can be modified to work around the problem, however. Adding the following "osso-fmradio-applet-adria" style to a theme's gtkrc file does the trick. The fmradio applet will then use the graphic from the internet radio, as it did in previous versions. The new button won't fit perfectly with the old background graphic, but that could be fixed with a quick edit in the GIMP

Append the following to /usr/share/themes/THEME-NAME/gtk-2.0/gtkrc
Code:
style "osso-fmradio-applet-adria"
{
  GtkFrame::hildonlike = 1
  xthickness = 0
  ythickness = 0

  engine "sapwood"
    {
      image
        {
          function = BOX
          file     = "../images/qgn_plat_radio_applet_bg.png"
          border   = { 30, 140, 0, 0 }
          stretch  = TRUE
          shaped = TRUE
        }
    }
}
widget "*.osso-fmradio-applet-adria" style "osso-fmradio-applet-adria"
This is a weak fix for a problem Nokia should deal with... The funny thing is, they wouldn't have needed a new fmradio graphic at all if they had just put the buttons a little closer together (see the internet radio applet).
 
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#12
Thanks qian_ryge, this worked flawlessly for my "puchi"-ed nuvopearl theme... No need to editing the radio tower .png.
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:42.