Skip to content

Commit

Permalink
[libreoffice] add *args to all public functions
Browse files Browse the repository at this point in the history
Needed when started from a menu button.

Fix #53
  • Loading branch information
gkarsay committed Oct 7, 2018
1 parent 492356d commit 1ebc1b7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions libreoffice/Parlatype.py
Expand Up @@ -65,7 +65,7 @@ def _getTextRange():
return None


def InsertTimestamp():
def InsertTimestamp(*args):
textrange = _getTextRange()
if (textrange is None):
return
Expand All @@ -78,7 +78,7 @@ def InsertTimestamp():
pass


def InsertTimestampOnNewLine():
def InsertTimestampOnNewLine(*args):
textrange = _getTextRange()
if (textrange is None):
return
Expand Down Expand Up @@ -129,7 +129,7 @@ def _extractTimestamp():
return cursor.getString()


def GotoTimestamp():
def GotoTimestamp(*args):
timestamp = _extractTimestamp()
if (timestamp is None):
return
Expand All @@ -142,7 +142,7 @@ def GotoTimestamp():
pass


def PlayPause():
def PlayPause(*args):
service = _getDBUSService()

try:
Expand All @@ -151,7 +151,7 @@ def PlayPause():
pass


def JumpBack():
def JumpBack(*args):
service = _getDBUSService()

try:
Expand All @@ -160,7 +160,7 @@ def JumpBack():
pass


def JumpForward():
def JumpForward(*args):
service = _getDBUSService()

try:
Expand All @@ -169,7 +169,7 @@ def JumpForward():
pass


def IncreaseSpeed():
def IncreaseSpeed(*args):
service = _getDBUSService()

try:
Expand All @@ -178,7 +178,7 @@ def IncreaseSpeed():
pass


def DecreaseSpeed():
def DecreaseSpeed(*args):
service = _getDBUSService()

try:
Expand Down

0 comments on commit 1ebc1b7

Please sign in to comment.