diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-11-21 10:57:28 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-11-21 10:57:28 +0000 |
commit | d0bc1a61790e16d4499b80539cf1561a45c75daf (patch) | |
tree | e9c4dc8f8dc7e30d15acd7e063214b440476f37f /perl-install/standalone/drakTermServ | |
parent | 584e9c0f4dba22cb924a1bd407c247fe83b1629f (diff) | |
download | drakx-backup-do-not-use-d0bc1a61790e16d4499b80539cf1561a45c75daf.tar drakx-backup-do-not-use-d0bc1a61790e16d4499b80539cf1561a45c75daf.tar.gz drakx-backup-do-not-use-d0bc1a61790e16d4499b80539cf1561a45c75daf.tar.bz2 drakx-backup-do-not-use-d0bc1a61790e16d4499b80539cf1561a45c75daf.tar.xz drakx-backup-do-not-use-d0bc1a61790e16d4499b80539cf1561a45c75daf.zip |
switch latest tools that still manually handle embedding
to use my_gtk
Diffstat (limited to 'perl-install/standalone/drakTermServ')
-rwxr-xr-x | perl-install/standalone/drakTermServ | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/perl-install/standalone/drakTermServ b/perl-install/standalone/drakTermServ index 55059bda1..ceb377387 100755 --- a/perl-install/standalone/drakTermServ +++ b/perl-install/standalone/drakTermServ @@ -37,7 +37,6 @@ # Michael Brown <mbrown@fensystems.co.uk> # -use Gtk; use lib qw(/usr/lib/libDrakX); use standalone; #- warning, standalone must be loaded very first, for 'explanations' @@ -201,13 +200,13 @@ x:5:respawn:/usr/X11R6/bin/X -ac -query $server_ip\n"; sub cursor_wait { # turn the cursor to a watch - $window1->window->set_cursor(new Gtk::Gdk::Cursor(150)); + $window1->{rwindow}->window->set_cursor(new Gtk::Gdk::Cursor(150)); Gtk->main_iteration while Gtk->events_pending; } sub cursor_norm { # restore normal cursor - $window1->window->set_cursor(new Gtk::Gdk::Cursor(68)); + $window1->{rwindow}->window->set_cursor(new Gtk::Gdk::Cursor(68)); Gtk->main_iteration while Gtk->events_pending; } @@ -231,16 +230,17 @@ sub display_error { sub interactive_mode { my $font_sel; # $interactive = 1; - init Gtk; - $window1 = $::isEmbedded ? new Gtk::Plug ($::XID) : new Gtk::Window -toplevel; - $window1->signal_connect (delete_event => sub { Gtk->exit(0) }); - $window1->set_position(1); - $window1->set_title(N("Mandrake Terminal Server Configuration")); - $window1->set_border_width(5); + $window1 = my_gtk->new('drakTermServ'); + $window1->{rwindow}->signal_connect (delete_event => sub { my_gtk->exit(0) }); + unless ($::isEmbedded) { + $window1->{rwindow}->set_position(1); + $window1->{rwindow}->set_title(N("Mandrake Terminal Server Configuration")); + } + $window1->{rwindow}->set_border_width(5); my ($pix_user_map, $pix_user_mask) = gtkcreate_png("ic82-network-40"); my ($pix_u_map, $pix_u_mask) = gtkcreate_png("drakTS.620x57"); - gtkadd($window1, + gtkadd($window1->{window}, gtkpack_(new Gtk::VBox(0,2), if_(!$::isEmbedded, 0, new Gtk::Pixmap($pix_u_map, $pix_u_mask)), 1, gtkpack_(new Gtk::HBox(0,2), @@ -308,14 +308,12 @@ sub interactive_mode { ), ); $central_widget = \$main_box; - $window1->show_all; - $window1->realize; - $window1->show_all(); - - Gtk->main_iteration while Gtk->events_pending; - $::isEmbedded and kill 'USR2', $::CCPID; - Gtk->main; - Gtk->exit(0); + $window1->{rwindow}->show_all; + $window1->{rwindow}->realize; + $window1->{rwindow}->show_all(); + + $window1->main; + my_gtk->exit(0); } sub about { |