Skip to content
This repository has been archived by the owner on Dec 20, 2020. It is now read-only.

Commit

Permalink
Fix focus issue playing/stopping on Win32.
Browse files Browse the repository at this point in the history
  • Loading branch information
minter committed Apr 19, 2006
1 parent c28b7fc commit 5690b45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,3 +1,6 @@
Wed Apr 19 2006 H. Wade Minter (minter@lunenburg.org)
* Fix issue with focus playing/stopping on Win32.

Tue Apr 18 2006 H. Wade Minter (minter@lunenburg.org)
* Tag 2.2

Expand Down
9 changes: 1 addition & 8 deletions mrvoice.pl
Expand Up @@ -251,7 +251,7 @@

#####

my $version = "2.2"; # Program version
my $version = "2.2.1"; # Program version
our $status = "Welcome to Mr. Voice version $version";

sub get_category
Expand Down Expand Up @@ -4111,7 +4111,6 @@ sub validate_id

sub stop_mp3
{
startcheck_player();
print "Stopping MP3\n" if $debug;

my $widget = shift;
Expand All @@ -4129,16 +4128,10 @@ sub stop_mp3
system("$config{mp3player} --stop");
}
$status = "Playing Stopped";

# Manually give the mainbox focus
print "Focusing on mainbox\n" if $debug;
$mainbox->focus();
}

sub play_mp3
{

startcheck_player();
print "Playing MP3\n" if $debug;
my ( $statustitle, $statusartist, $filename );
my $songstatusstring;
Expand Down

0 comments on commit 5690b45

Please sign in to comment.