Ubuntu

Some gnome-panel Applets still use GTK theme's panel-background, even if "use system theme" is not selected

Reported by sahilshinesalways on 2011-02-26
390
This bug affects 94 people
Affects Status Importance Assigned to Milestone
GNOME Panel
Confirmed
Undecided
Unassigned
gnome-panel (Ubuntu)
High
Unassigned

Bug Description

Package: gnome-panel 1:2.32.1-0ubuntu6

Some panel applets do not following custom background, images, colour or transparent-colour.
This bug has been around for a long time.

A messy hack to fix this is to set no panel-background options in the GTK theme (e.g. http://www.omgubuntu.co.uk/2011/02/gnome-panel-transparency-fix-ubuntu/ )

DistroRelease: Ubuntu 11.04
ProcVersionSignature: Ubuntu 2.6.38-1.28-generic 2.6.38-rc2
Architecture: i386
Date: Sat Feb 26 20:35:49 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110202)

Matt Sturgeon (mattsturgeon) wrote :

This hack is a bit messy, since it doesn't allow the panel to use the GTK theme (if the user selects "use system theme" under panel options).

A better bug title would be 'Some gnome-panel Applets still use GTK theme, even if "use system theme" is not selected'

summary: - fixing non-transparent applet issues on gnome panel
+ Some gnome-panel Applets still use GTK theme's panel-background, even if
+ "use system theme" is not selected
description: updated
description: updated
Changed in gnome-panel (Ubuntu):
importance: Undecided → Low
Pedro Villavicencio (pedro) wrote :

Raising the priority this is affecting a *lot* of users. assigning it to desktop team for investigation

Changed in gnome-panel (Ubuntu):
status: New → Confirmed
importance: Low → High
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
Martin Pitt (pitti) wrote :

Unassigning from Canonical Desktop Team. This is not a regression, and gnome-panel became less important with Unity and Unity 2D being the default desktops now.

Changed in gnome-panel (Ubuntu):
assignee: Canonical Desktop Team (canonical-desktop-team) → nobody
Changed in gnome-panel:
status: New → Confirmed
Lanoxx (lanoxx) wrote :

I am curious what would be the steps to fix this in the source code? I have written an applet that has exactly this problem and I would like to fix it.

Lanoxx (lanoxx) wrote :

Ok, I figured it out. There is actually a simple fix for it:

just call this

    panel_applet_set_background_widget(applet, GTK_WIDGET(applet)); //passing applet for the first and second parameter

when the applet is being initialized.

Lanoxx (lanoxx) wrote :

Note: In some cases the second parameter needs to be a widget that is on the applet and not the applet itself, this has to be figured out on a per applet basis.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers