Skip to content

Commit

Permalink
Remove :class: for readthedoc cause gi won't import
Browse files Browse the repository at this point in the history
  • Loading branch information
algorys committed Oct 6, 2016
1 parent 91fa900 commit 2c199f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions alignak_app/app_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def create_items(self, style):
:param style: style of menu to create
:type style: str
:return: :class:`~gi.repository.gtk.ImageMenuItem`
:return: **gi.repository.gtk.ImageMenuItem**
"""
item = Gtk.ImageMenuItem('')
img = Gtk.Image()
Expand Down Expand Up @@ -122,7 +122,7 @@ def build_menu(self, menu):
:param menu: Gtk Menu
:type menu: :class:`~gi.repository.Gtk.Menu`
:return: menu with all items.
:rtype: :class:`~gi.repository.gtk.Menu`
:rtype: **gi.repository.gtk.Menu**
"""
# Separators
separator_host = Gtk.SeparatorMenuItem()
Expand All @@ -148,7 +148,7 @@ def open_url(self, item):
Add a link to WebUI on every menu
:param item: items of Gtk menu
:type item: :class:`~gi.repository.Gtk.ImageMenuItem`
:type item: **gi.repository.Gtk.ImageMenuItem**
"""
assert isinstance(item, Gtk.ImageMenuItem)

Expand All @@ -174,12 +174,12 @@ def open_url(self, item):

webbrowser.open(webui_url + endurl)

# @staticmethod
def quit_app(self, item):
@staticmethod
def quit_app(item):
"""
Quit application
:param item: item of Gtk menu. Required by :class:`~Gtk.ImageMenuItem().connect`.
:param item: item of Gtk menu. Required by **connect**.
:type item: :class:`~Gtk.ImageMenuItem`
"""
assert isinstance(item, Gtk.ImageMenuItem)
Expand Down
4 changes: 2 additions & 2 deletions alignak_app/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def set_indicator(self):
Initialize a new Indicator and his notifications
:return: Indicator
:rtype: :py:class:`~gi.repository.AppIndicator3.Indicator`
:rtype: **gi.repository.AppIndicator3.Indicator**
"""

# Define ID and build Indicator
Expand Down Expand Up @@ -125,7 +125,7 @@ def create_menu(self):
Create the menu, and get first states.
:return: menu
:rtype: :class:`~gi.repository.Gtk.Menu()`
:rtype: **gi.repository.Gtk.Menu**
"""
logger.info('Build menus...')
menu = Gtk.Menu()
Expand Down

0 comments on commit 2c199f0

Please sign in to comment.