Plasma-menu-bar fail with gtk2 appmenu apps

Bug #762865 reported by Cédric Bellegarde
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
plasma-widget-menubar
Fix Released
High
Aurélien Gâteau

Bug Description

Since recent updates in GTK2 appmenu (patch/appmenu-gtk2/libdbusmenu, don't know), plasma-menu-bar fail to get app menu at launch.

Exemple:
- I launch gedit
- plasma-menu-bar just show File->close
- i focus another window and then focus gedit again
- plasma-menu-bar show me gedit menu.

It's the same with all gtk apps.

Revision history for this message
avlas (avlas) wrote :

I think this is solved with the new version of appmenu-gtk 0.2.1-0ubuntu3. The problem with libreoffice (https://bugs.launchpad.net/plasma-widget-menubar/+bug/755504) is still there though.

Revision history for this message
avlas (avlas) wrote :

I have to correct myself. it seems that it's a bit stochastic, sometimes gtk apps work properly, sometimes they don't :-/

Revision history for this message
Cédric Bellegarde (gnumdk) wrote :

You're right, it's working better, maybe this bug is in appmenu-gtk ... :-(

Revision history for this message
7penselen (zienszo) wrote :

I checked which appmenu-gtk I have and it seems 0.2.1-0ubuntu3 and I still have the problems.

user@computer:~$ sudo aptitude show appmenu-gtk
Package: appmenu-gtk
State: installed
Automatically installed: no
Version: 0.2.1-0ubuntu3
Priority: optional
Section: libs
Maintainer: Ubuntu Desktop Team <email address hidden>
Uncompressed Size: 98.3 k
Depends: libatk1.0-0 (>= 1.12.4), libc6 (>= 2.3.6-6~), libcairo2 (>= 1.2.4), libdbusmenu-glib3 (>=
         0.4.2), libdbusmenu-gtk3 (>= 0.4.2), libfontconfig1 (>= 2.8.0), libfreetype6 (>= 2.2.1),
         libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.26.0), libgtk2.0-0 (>= 2.21.2-0ubuntu6),
         libpango1.0-0 (>= 1.14.0)
Conflicts: indicator-appmenu (< 0.0.9)
Description: Export GTK menus over DBus

This package provides support for application menus.
Homepage: https://launchpad.net/appmenu-gtk

Revision history for this message
Cédric Bellegarde (gnumdk) wrote :

Same here, probleme always present...

http://kde-look.org/content/show.php/Oxygen-appmenu?content=141254

I've got same issue with oxygen-appemenu, it seems that when gtk window appear, menuForWinId(windowId()) return a NULL menu...

Not sure bug is in appmenu-qt or appmenu-gtk...

Maybe appmenu-gtk should be ready sooner, Aurelien, can you check with gtk devs ?

Revision history for this message
Cédric Bellegarde (gnumdk) wrote :

Here a patch fixing the issue.

Based on my commit for oxygen-appmenu kwin style:
http://quickgit.kde.org/?p=scratch%2Fcedric%2Foxygen-appmenu.git&a=commit&h=a872abf165d95b336ca8343619c44ef62ca66386

Here what is happening, Gtk apps (but i see this with Kopete for exemple) register to Window manager and then to dbus so menu by default is empty (you can make it appear by switching windows).

To fix issue, when a window is registered, we look if it's id is active window and then update menu.

Revision history for this message
Aurélien Gâteau (agateau) wrote :

Thanks for the patch Cédric.
I am super busy right with work now and next week (uds) but will review it when I am back.

Revision history for this message
avlas (avlas) wrote :

This is a fix that would be very appreciated to have :)

Revision history for this message
shane (shane-animail) wrote :

Any further news on when we might see this fixed?
I haven't tried patching myself but I am now using oxygen-appmenu which works perfectly with GTK apps so I assume that patch is the answer.

Changed in plasma-widget-menubar:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Aurélien Gâteau (agateau)
Changed in plasma-widget-menubar:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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