Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 131675
Summary: | NetworkManager applet doesn't allow applet context menu to be invoked | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Matthias Clasen <mclasen> |
Component: | gnome-applets | Assignee: | Jonathan Blandford <jrb> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | barryn, ddumas, markmc, nobody+bclark |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-10-14 15:40:58 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 131589 |
Description
Matthias Clasen
2004-09-03 02:29:30 UTC
See also 131652 - no reason to fix one if we're removing it. :) Okay, this is the NetworkManager applet ... which really needs its own bugzilla component The way other applets like this do it is to make button press events which aren't from button 1 to be left for the applet to handle - e.g. from the show desktop applet: static gboolean do_not_eat_button_press (GtkWidget *widget, GdkEventButton *event) { if (event->button != 1) { g_signal_stop_emission_by_name (widget, "button_press_event"); } return FALSE; } { g_signal_connect (G_OBJECT (sdd->button), "button_press_event", G_CALLBACK (do_not_eat_button_press), NULL); } Mark, The applet used to have this code until Seth converted it from a Toggle Button to an actual Menu. You can get the context-menu if you click either the very top (if on a top-panel) or the very-bottom (on a bottom-panel) of the applet's panel presence, but this needs to happen regardless of where on it you click. Does the above method still work for GtkMenuBar/GtkMenuItem/GtkMenu objects? The code still might be there. Reassign to Seth since he touched it last :) Yeah, I think that works for a menu bar too. The panel itself does something similar - see menu_dummy_button_press_event() Note, the fact that you can popup the menu at the top and bottom is indicative of another problem - the applet doesn't expand itself to come flush up against the edge which means you don't take advantage of the pinning action of the edge of the screen. jrb's working on this now, right? *bounce* *** Bug 134651 has been marked as a duplicate of this bug. *** It's no longer an applet. |