~ubuntu-branches/ubuntu/wily/padre/wily

« back to all changes in this revision

Viewing changes to lib/Padre/Task/LaunchDefaultBrowser.pm

  • Committer: Bazaar Package Importer
  • Author(s): Damyan Ivanov
  • Date: 2009-05-09 18:19:53 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090509181953-ttew3adppp057nha
Tags: 0.35-1
* New Upstream Version

* install eg/ as examples only in padre (not also in libwx-perl-
  dialog-perl)
* mention --pristine-tar in README.source
* add disable-tcp-server.patch
  the tcp server is used for communication with running instance of padre.
  Although it only listens on 127.0.0.1, there is no measures taken to
  ensure that the user connecting to the server is the same as the user
  running padre.
* add README.debian documenting changes in the package compared to
  upstream sources

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package Padre::Task::LaunchDefaultBrowser;
 
2
 
 
3
# The Wx::LaunchDefaultBrowser function blocks until the default
 
4
# browser has been launched. For something like a heavily loaded down
 
5
# Firefox, this can take perhaps a minute.
 
6
# This task moves the function into the background.
 
7
 
 
8
use strict;
 
9
use warnings;
 
10
use Padre::Task ();
 
11
use Padre::Wx   ();
 
12
 
 
13
our $VERSION = '0.35';
 
14
our @ISA     = 'Padre::Task';
 
15
 
 
16
sub run {
 
17
        Wx::LaunchDefaultBrowser( $_[0]->{url} );
 
18
        return 1;
 
19
}
 
20
 
 
21
1;
 
22
 
 
23
# Copyright 2008-2009 The Padre development team as listed in Padre.pm.
 
24
# LICENSE
 
25
# This program is free software; you can redistribute it and/or
 
26
# modify it under the same terms as Perl 5 itself.