Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right click on tray not working #83

Closed
gmdfalk opened this issue Jan 3, 2016 · 3 comments
Closed

Right click on tray not working #83

gmdfalk opened this issue Jan 3, 2016 · 3 comments
Labels

Comments

@gmdfalk
Copy link
Owner

gmdfalk commented Jan 3, 2016

Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/blockify/gui.py", line 763, in on_tray_right_click
    self.create_traymenu(event_button, event_time)
  File "/usr/lib/python3.5/site-packages/blockify/gui.py", line 270, in create_traymenu
    menu.popup(None, None, Gtk.status_icon_position_menu,
  File "/usr/lib/python3.5/site-packages/gi/overrides/__init__.py", line 39, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python3.5/site-packages/gi/module.py", line 137, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.Gtk' object has no attribute 'status_icon_position_menu'
@gmdfalk gmdfalk added the bug label Jan 3, 2016
@gmdfalk
Copy link
Owner Author

gmdfalk commented Jan 3, 2016

Might be due to using Gtk with python instead of pygtk directly. The popup methods have slightly different signatures:
pygtk - def popup(parent_menu_shell, parent_menu_item, func, button, activate_time, data=None)
gtk - def popup(parent_menu_shell, parent_menu_item, func, data, button, activate_time)

It seems to be used slightly differently, too, because even with the new signature the popup is not showing.

@gmdfalk
Copy link
Owner Author

gmdfalk commented Jan 3, 2016

Partially addressed by 40a04c7#diff-7aefdf02813cf6f900d1a6cb5eb28907R269, i.e. avoid the exception.

@gmdfalk
Copy link
Owner Author

gmdfalk commented Mar 25, 2016

Fixed with 3.4.

@gmdfalk gmdfalk closed this as completed Mar 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant