summaryrefslogtreecommitdiff
path: root/rhimport.pl
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-02-20 19:01:51 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-02-20 19:01:51 (GMT)
commit95baf65858e03ff8d9357a7d4decf829fdadd3d0 (patch)
tree54b7f85ad36c328bc6305f8eceb0ef56e8e95957 /rhimport.pl
parent46019a7fdc84cf3dfde4a3a95292af2b7899be58 (diff)
delayed Gtk2 init (no DISPLAY variable needed)
Diffstat (limited to 'rhimport.pl')
-rwxr-xr-xrhimport.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/rhimport.pl b/rhimport.pl
index 5c3b2ca..12dd902 100755
--- a/rhimport.pl
+++ b/rhimport.pl
@@ -6,7 +6,7 @@ use strict;
use Getopt::Long;
use DBI;
-use Gtk2 -init;
+use Gtk2;
use Gtk2::GladeXML;
my $DBHOST = "airplay";
@@ -68,6 +68,8 @@ if($LISTALLOWED) {
## GUI mode
if(!$M3U) {
+ Gtk2->init;
+
my $guixml = Gtk2::GladeXML->new('rhimport.glade');
$guixml or die "can't load glade xml file";