! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Menu doesn't start applications from desktop with gtk+-2.11.x
Status:
RESOLVED: FIXED
Product:
Xfdesktop
Component:
General

Comments

Description Olivier Fourdan editbugs 2007-06-23 23:54:33 CEST
When using the menu from the desktop, all xfce-settings-show actions seems to fail silently, nothing happens.

However, the same action performed from menu on the panel works fine...

This is with gtk+-2.11.x - Odd heh? Thing is they changed the way gtk selects PropertyNotify events (ie, it doesn't select PropertyNotifyMask anymore), see this bug in Gnome:

http://bugzilla.gnome.org/show_bug.cgi?id=354213

Maybe it's related? Dunno.
Comment 1 Olivier Fourdan editbugs 2007-06-24 09:50:18 CEST
Actually, the menu doesn't spawn any application at all (not just settings) when used from the menu...
Comment 2 Olivier Fourdan editbugs 2007-07-01 14:58:53 CEST
Ok, found out what happens here...

Seems gtk+-2.11.x now expects the same button to be pressed as the one given by gtk_menu_popup() to activate the menu entry or it does not activate the entry at all. 

In xfdesktop, the menu is opened with the right mouse button, so gtk+ was expecting the right mouse button to activate, and was discarding the usual left mouse button.

To fix this, use mouse button 0 in gtk_menu_popup() and all is fine again.

The fix has been committed in xfce_4_4 and xfce_4_2 branches.
Comment 3 Olivier Fourdan editbugs 2007-07-01 15:02:42 CEST
Created attachment 1273 
lways use button 0 in gtk_menu_popup() as GTK+ 2.11+ expects the same button to be pressed or it doesn't activate the entry

Patch added for the record.

Bug #3359

Reported by:
Olivier Fourdan
Reported on: 2007-06-23
Last modified on: 2009-07-14

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
0 users

Version

Attachments

Additional information