diff options
author | Christian Pointner <equinox@helsinki.at> | 2010-02-20 19:01:51 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2010-02-20 19:01:51 (GMT) |
commit | ca06731e4d0e109959b58ad8742de34165a4bae6 (patch) | |
tree | 54b7f85ad36c328bc6305f8eceb0ef56e8e95957 | |
parent | fff93aea9647f441f688e2834104d3c1463d011b (diff) |
delayed Gtk2 init (no DISPLAY variable needed)
git-svn-id: https://svn.helsinki.at/rhimport/trunk@5 7c65635b-ec39-4f67-a626-873dbafdd612
-rwxr-xr-x | rhimport.pl | 4 |
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"; |