diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-08-01 13:23:01 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-08-01 13:23:01 +0000 |
commit | b906a8be6a26923fae7a6a0bf282b471f7f5848f (patch) | |
tree | f875741a586c4975f458c445973a77aae7d4c3b2 /perl-install | |
parent | 4b469c8f9c0a667ecae61055071f6dd9ce790ba2 (diff) | |
download | drakx-backup-do-not-use-b906a8be6a26923fae7a6a0bf282b471f7f5848f.tar drakx-backup-do-not-use-b906a8be6a26923fae7a6a0bf282b471f7f5848f.tar.gz drakx-backup-do-not-use-b906a8be6a26923fae7a6a0bf282b471f7f5848f.tar.bz2 drakx-backup-do-not-use-b906a8be6a26923fae7a6a0bf282b471f7f5848f.tar.xz drakx-backup-do-not-use-b906a8be6a26923fae7a6a0bf282b471f7f5848f.zip |
move back Gtk->init to "new" and "gtkroot"
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/my_gtk.pm | 3 | ||||
-rw-r--r-- | 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); } |