Oxygen-gtk style fails to load with Emacs

Bug #784379 reported by Davor Cubranic
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
gtk2-engines-oxygen (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Natty by Charlie Kravetz

Bug Description

Binary package hint: gtk2-engines-oxygen

Starting with KUbuntu Natty, Emacs fails to load the oxygen-gtk style when run under KDE. This causes Emacs
to run without a style applied, which looks really ugly. Other GTK application do not have this problem.

When Emacs is started from a terminal, it prints the following message:

(emacs:1814): GLib-GObject-WARNING **: plugin 'oxygen-gtk' failed to register
type 'OxygenStyle'

Revision history for this message
Davor Cubranic (cubranic) wrote :

According to KDE bug 263182, the problem is in the code initializing the engine. Can the patch, only two lines worth, be backported into Natty please?

Revision history for this message
Davor Cubranic (cubranic) wrote :

Of course, the real KDE bug link is: https://bugs.kde.org/show_bug.cgi?id=263182

Silly Launchpad linkifier.

Revision history for this message
Migrus (migrus123) wrote :

This problem causes menus to not show the current selection. It is to me surprisingly annoying to select an entry without the normal "highlight" of the menu items. To me it was more than just the looks.

The upstream patch fixes the problem for me. It applied cleanly to current (k)ubuntu .deb source.

Revision history for this message
Thiago Jung Bauermann (thiago-bauermann) wrote :

Evolution also fails to load the GTK Oxygen theme with the same error message. I created a gtk2-engines-oxygen package with the patch from KDE bug#263182 applied and Evolution now works correctly with the Oxygen theme.

Here's the upstream commit which I used:

https://projects.kde.org/projects/playground/artwork/oxygen-gtk/repository/revisions/b0e33d143c68a1737c8f283c457aea898a4c6766

Also, upgrading the package to upstream version 1.0.5 should fix the problem too.

Changed in gtk2-engines-oxygen (Ubuntu):
status: New → Confirmed
status: Confirmed → Fix Released
Revision history for this message
Joe Burgess (joemburgess) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in the latest development version of Ubuntu - Oneiric Ocelot.

This is a significant bug in Ubuntu. If you need a fix for the bug in previous versions of Ubuntu, please do steps 1 and 2 of the SRU Procedure [1] to bring the need to a developer's attention.

[1]: https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

Revision history for this message
Davor Cubranic (cubranic) wrote :

Joe, can this bugfix be ported to Natty as well?

1. it affects the display of menus and other GUI elements for Emacs and Evolution when using the default KDE theme
2. the bug fix is about two lines of code, to pull a body of an if-statement out of the check and make so make the theme register itself on every call to "registerType" (upstream commit https://projects.kde.org/projects/playground/artwork/oxygen-gtk/repository/revisions/b0e33d143c68a1737c8f283c457aea898a4c6766)

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.