From 9438d57fc15041c70e961bd6f5cee4518951e8c3 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 24 Feb 2003 07:59:13 +0000 Subject: fix embedding (even if we don't embbed it, it's better) --- perl-install/standalone/net_monitor | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor index 8889986d0..2df918780 100755 --- a/perl-install/standalone/net_monitor +++ b/perl-install/standalone/net_monitor @@ -52,10 +52,12 @@ require_root_capability(); my $window1 = my_gtk->new('net_monitor'); $window1->{rwindow}->signal_connect(delete_event => sub { my_gtk->exit(0) }); -$window1->{rwindow}->set_position(1); -$window1->{rwindow}->set_title(N("Network Monitoring")); -$window1->{rwindow}->set_policy(1, 1, 1); -$window1->{rwindow}->set_border_width(5); +unless ($::isEmbedded) { + $window1->{rwindow}->set_position(1) ; + $window1->{rwindow}->set_title(N("Network Monitoring")); + $window1->{rwindow}->set_policy(1, 1, 1); + $window1->{rwindow}->set_border_width(5); +} #$::isEmbedded or $window1->{rwindow}->set_usize(580, 320); my $colorr = gtkcolor(50400, 655, 20000); -- cgit v1.2.1