Bug 802107 - [abrt] firewall-applet-0.2.2-1.fc17: Gtk.py:1381:popup:AttributeError: 'Menu' object has no attribute 'popup_for_device'
Summary: [abrt] firewall-applet-0.2.2-1.fc17: Gtk.py:1381:popup:AttributeError: 'Menu'...
Alias: None
Product: Fedora
Classification: Fedora
Component: pygobject3   
(Show other bugs)
Version: 17
Hardware: x86_64 Unspecified
Target Milestone: ---
Assignee: John Keck
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:922ad7d1efe95894bc32d4520b9...
: 805700 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2012-03-11 10:18 UTC by Tobias Florek
Modified: 2013-08-01 01:15 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-08-01 01:15:27 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
GNOME Bugzilla 657385 None None None Never

Description Tobias Florek 2012-03-11 10:18:28 UTC
libreport version: 2.0.8
abrt_version:   2.0.7
cmdline:        /usr/bin/python /usr/bin/firewall-applet
comment:        started firewall-applet in cmd-line, clicked on icon,
executable:     /usr/bin/firewall-applet
kernel:         3.3.0-0.rc6.git0.2.fc17.x86_64
reason:         Gtk.py:1381:popup:AttributeError: 'Menu' object has no attribute 'popup_for_device'
time:           Sun 11 Mar 2012 11:13:52 AM CET
uid:            500
username:       me

:Gtk.py:1381:popup:AttributeError: 'Menu' object has no attribute 'popup_for_device'
:Traceback (most recent call last):
:  File "/usr/bin/firewall-applet", line 267, in right_menu_cb
:    self.statusicon, button, time)
:  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 1381, in popup
:    self.popup_for_device(None, parent_menu_shell, parent_menu_item, func, data, button, activate_time)
:AttributeError: 'Menu' object has no attribute 'popup_for_device'
:Local variables in innermost frame:
:parent_menu_item: None
:activate_time: 8210107L
:parent_menu_shell: None
:button: 3L
:func: <function position_function at 0x27a4938>
:data: <StatusIcon object at 0x279ef50 (GtkStatusIcon at 0x2813d90)>
:self: <Menu object at 0x27af370 (GtkMenu at 0x254e360)>

:UUID: 23b0b77a-1e1d-4da1-abfd-3b84d99b972d
:OS: Fedora release 17 (Beefy Miracle)
:Default run level: 5
:Language: en_US.utf8
:Platform: x86_64
:BogoMIPS: 4200.26
:CPU Vendor: AuthenticAMD
:CPU Model: AMD Athlon(tm) Dual Core Processor 4050e
:CPU Stepping: 2
:CPU Family: 15
:CPU Model Num: 107
:Number of CPUs: 2
:CPU Speed: 2100
:System Memory: 7987
:System Swap: 8095
:Vendor: System manufacturer
:System: System Product Name System Version
:Form factor: Desktop
:Kernel: 3.3.0-0.rc6.git0.2.fc17.x86_64
:SELinux Enabled: 1
:SELinux Policy: targeted
:SELinux Enforce: Enforcing
:MythTV Remote: Unknown
:MythTV Role: Unknown
:MythTV Theme: Unknown
:MythTV Plugin: 
:MythTV Tuner: -1
:(4098:22908:4098:22871) pci, pcieport, PCI/PCI, RD790 PCI to PCI bridge (PCI express gpp port C)
:(6505:4168:4163:33318) pci, atl1, ETHERNET, P5KPL-VM Motherboard
:(4098:22904:4098:22871) pci, pcieport, PCI/PCI, RD790 PCI to PCI bridge (external gfx0 port A)
:(4098:17285:4163:33263) pci, piix4_smbus, SERIAL, SBx00 SMBus Controller
:(4098:17293:4163:33263) pci, None, PCI/ISA, SB600 PCI to LPC Bridge
:(4098:17283:4163:33467) pci, snd_hda_intel, MULTIMEDIA, SBx00 Azalia (Intel HDA)
:(4318:357:4318:820) pci, nouveau, VIDEO, NV44 [Quadro NVS 285]
:(4098:17284:0:0) pci, None, PCI/PCI, SBx00 PCI to PCI Bridge
:(4098:17286:4163:33263) pci, ehci_hcd, USB, SB600 USB Controller (EHCI)
:(4098:17292:4163:33263) pci, pata_atiixp, STORAGE, SB600 IDE
:(4130:4353:0:0) pci, None, HOST/PCI, K8 [Athlon64/Opteron] Address Map
:(4130:4352:0:0) pci, None, HOST/PCI, K8 [Athlon64/Opteron] HyperTransport Technology Configuration
:(4130:4355:0:0) pci, k8temp, HOST/PCI, K8 [Athlon64/Opteron] Miscellaneous Control
:(4130:4354:0:0) pci, None, HOST/PCI, K8 [Athlon64/Opteron] DRAM Controller
:(4098:17289:4163:33263) pci, ohci_hcd, USB, SB600 USB (OHCI2)
:(4098:17290:4163:33263) pci, ohci_hcd, USB, SB600 USB (OHCI3)
:(4098:22871:4098:22871) pci, None, HOST/PCI, RX780/RX790 Chipset Host Bridge
:(4098:17288:4163:33263) pci, ohci_hcd, USB, SB600 USB (OHCI1)
:(4098:17287:4163:33263) pci, ohci_hcd, USB, SB600 USB (OHCI0)
:(4098:17291:4163:33263) pci, ohci_hcd, USB, SB600 USB (OHCI4)
:(4098:17280:4163:33329) pci, ahci, STORAGE, SB600 Non-Raid-5 SATA
:Filesystem Information
:device mtpt type bsize frsize blocks bfree bavail file ffree favail
:/dev/mapper/vg_muesli-root / btrfs 4096 4096 8192000 4405970 551324 0 0 0
:/dev/mapper/vg_muesli-home /home btrfs 4096 4096 347773952 51160018 31647996 0 0 0
:/dev/sdb1 /boot ext4 1024 1024 202770 112598 102358 51200 50954 50954

Comment 1 Thomas Woerner 2012-03-12 13:51:27 UTC
This is the location of the problem:

* gi/overrides/Gtk.py:

if Gtk._version != '2.0':
    class Menu(Gtk.Menu):
        def popup(self, parent_menu_shell, parent_menu_item, func, data, button, activate_time):
            self.popup_for_device(None, parent_menu_shell, parent_menu_item, func, data, button, activate_time)
    Menu = override(Menu)

Reassigning to pygobject3.

Comment 2 Nils Philippsen 2012-03-19 13:29:37 UTC
This issue is filed against gtk3 upstream here: https://bugzilla.gnome.org/show_bug.cgi?id=657385

The cause seems to be that newer Gtk replaces the Menu.popup() method with the Menu.popup_for_device() implementation, so you have the former method name with the latter API, which is kind of screwed.

The Python introspection binding creates the former method manually by calling the latter method with None as the device which would offer the right API for both Menu.popup() and Menu.popup_for_device(), only the latter isn't exposed anymore (and therefore calls to .popup() also fail).

Comment 3 Thomas Woerner 2012-03-21 20:57:51 UTC
*** Bug 805700 has been marked as a duplicate of this bug. ***

Comment 4 Julian Sikorski 2012-03-21 22:45:36 UTC
Right click the firewall-applet icon

Package: firewall-applet-0.2.4-1.fc17
OS Release: Fedora release 17 (Beefy Miracle)

Comment 5 Amir Hedayaty 2012-04-17 03:01:14 UTC
Seems to be fixed, I believe this can be closed

Comment 7 Fedora End Of Life 2013-07-03 22:58:46 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2013-08-01 01:15:31 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.