summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/my_gtk.pm3
-rw-r--r--perl-install/ugtk.pm6
2 files changed, 5 insertions, 4 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm
index 87ff1fa20..fc76b3037 100644
--- a/perl-install/my_gtk.pm
+++ b/perl-install/my_gtk.pm
@@ -28,6 +28,9 @@ $border = 5;
sub new {
my ($type, $title, %opts) = @_;
+ Gtk->init;
+ Gtk->set_locale;
+
my $o = bless { %opts }, $type;
$o->_create_window($title);
while (my $e = shift @tempory::objects) { $e->destroy }
diff --git a/perl-install/ugtk.pm b/perl-install/ugtk.pm
index f60e678b2..3d26866a6 100644
--- a/perl-install/ugtk.pm
+++ b/perl-install/ugtk.pm
@@ -27,8 +27,6 @@ BEGIN {
}
use Gtk;
-Gtk->init;
-Gtk->set_locale;
use c;
use log;
@@ -136,8 +134,8 @@ sub gtkradio {
}
sub gtkroot {
-# Gtk->init;
-# Gtk->set_locale;
+ Gtk->init;
+ Gtk->set_locale;
Gtk::Gdk::Window->new_foreign(Gtk::Gdk->ROOT_WINDOW);
}