Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > 13f5dcef5358e9d5a2a5a1ae6baf28fc > files > 168

gtkdialog-0.8.3-1.mga5.x86_64.rpm

#!/bin/sh

## Includes.
. functmpGet
. functmpSet
. funcWidgetUnSchedule

## Pause the track.

funcPause() {
	if [ -z "$BASH" ]; then local FUNCNAME=funcPause; fi
	if [ $DEBUG_TRANSITS -ne 0 ]; then echo "$FUNCNAME: IN"; fi

	if [ `functmpGet playerstate` = playing ]; then
		kill -s STOP `functmpGet playerpid` 2> /dev/null
		functmpSet playerstate paused
		functmpSet playpause 0
		funcWidgetUnSchedule muiAutoNextCheck autonextcheck
	fi

	if [ $DEBUG_TRANSITS -ne 0 ]; then echo "$FUNCNAME: OUT"; fi
}