Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

DBusMenuExporterPrivate::addAction verbage at startup. #2988

Open
the-moog opened this Issue · 4 comments

5 participants

@the-moog

On starting qt-console (0.13) on Ubuntu 11.10, Python 2.7.2. I get "DBusMenuExporterPivate:.....Already tracking action" for many menu actions.

e.g.
void DBusMenuExporterPrivate::addAction(QAction, int): Already tracking action "%%capture" under id 56
...
void DBusMenuExporterPrivate::addAction(QAction
, int): Already tracking action "%page" under id 152

This happens about 110 times.

The 'Magic' menu, although present, has no content other than the top level headings, so I guess this is the result of this problem.

I have found an identical issue already reported with 'Paraview', reported here: http://www.paraview.org/pipermail/paraview/2012-September/026108.html, so perhaps the solution is the same?

@takluyver
Owner
@chrisjordansquire

I also have this issue with python 2.7.3 on Ubuntu 12.04 with IPython 0.13.2.

@henryiii

A hackish fix is to go to the file:

/usr/share/pyshared/IPython/frontend/qt/console/mainwindow.py

And comment this line:

#self.all_magic_menu.addAction(xaction)

This removes the all menu, so the rest populates like it should. (ubuntu 13.04, pip installed) The all menu doesn't scroll at all in Ubuntu 13.04, and I like the organized view better. A search dialog, or pop-up list box, would be better, I think.

@henryiii

Better fix:

xaction = QtGui.QAction(pmagic,
    self,
    triggered=self._make_dynamic_magic(pmagic)
    )
xaction_all = QtGui.QAction(pmagic,
    self,
    triggered=self._make_dynamic_magic(pmagic)
    )

magic_menu.addAction(xaction)
self.all_magic_menu.addAction(xaction_all)
@henryiii henryiii referenced this issue from a commit in henryiii/ipython
@henryiii henryiii Fixed empty menu entries and error output, fix for Issue #2988
Recent Ubuntu's (12.10 and later) give DBusMenuExporterPrivate::addAction errors on adding the same action multiple times. 13.04 does not add the duplicate item to the menu (causing all menus in magics to be empty except one). Fixes Issue #2988.
4e4b83f
@takluyver takluyver referenced this issue from a commit
@henryiii henryiii Fixed empty menu entries and error output, fix for Issue #2988
Recent Ubuntu's (12.10 and later) give DBusMenuExporterPrivate::addAction errors on adding the same action multiple times. 13.04 does not add the duplicate item to the menu (causing all menus in magics to be empty except one). Fixes Issue #2988.
2c9367e
@mattvonrocketstein mattvonrocketstein referenced this issue from a commit in mattvonrocketstein/ipython
@henryiii henryiii Fixed empty menu entries and error output, fix for Issue #2988
Recent Ubuntu's (12.10 and later) give DBusMenuExporterPrivate::addAction errors on adding the same action multiple times. 13.04 does not add the duplicate item to the menu (causing all menus in magics to be empty except one). Fixes Issue #2988.
e0ddcc7
@minrk minrk removed the prio-low label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.