From b906a8be6a26923fae7a6a0bf282b471f7f5848f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 1 Aug 2002 13:23:01 +0000 Subject: move back Gtk->init to "new" and "gtkroot" --- perl-install/my_gtk.pm | 3 +++ perl-install/ugtk.pm | 6 ++---- 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); } -- cgit v1.2.1