summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-01-12 12:29:11 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-01-12 12:29:11 +0000
commit87b53b396f753b863ef2e0ed2c7f3328299299a4 (patch)
tree6181071a33ad278822b557faa1c916948705c821
parent6c979f72e811f4d8629f5474c8ecd2e3d69a07e4 (diff)
downloadcontrol-center-87b53b396f753b863ef2e0ed2c7f3328299299a4.tar
control-center-87b53b396f753b863ef2e0ed2c7f3328299299a4.tar.gz
control-center-87b53b396f753b863ef2e0ed2c7f3328299299a4.tar.bz2
control-center-87b53b396f753b863ef2e0ed2c7f3328299299a4.tar.xz
control-center-87b53b396f753b863ef2e0ed2c7f3328299299a4.zip
kill dead code that enabled to embedd any non gtk+ X11 GUI
-rwxr-xr-xcontrol-center26
1 files changed, 0 insertions, 26 deletions
diff --git a/control-center b/control-center
index cf73eddd..33b08dd1 100755
--- a/control-center
+++ b/control-center
@@ -1380,13 +1380,6 @@ sub compute_exec_string {
$left_locked = 1;
$buttons->show;
$tool_pids{$label} = fork_($exec);
- } else { # gtkplug == 0
- $emb_box->grab_focus;
- $emb_socket->grab_focus;
- $emb_socket->show;
- $SIG{CHLD} = undef;
- $emb_socket->add_id(launch_xapp($exec));
- $SIG{CHLD} = \&sig_child;
}
} else { # not embedded
# fix #3415 when $gtkplug eq -1
@@ -1408,25 +1401,6 @@ sub start_logdrake {
}
-sub launch_xapp {
- my ($exec, $name, $xx) = @_;
- my $find_windows = sub {
- local *X;
- open(X, "-|", "xwininfo -root -tree -int");
- grep { /$name/ } <X>;
- };
- my @before = &$find_windows();
- fork_($exec);
- my @after = &$find_windows();
- require Time::HiRes;
- while (@after != $xx + @before) {
- Time::HiRes::usleep(50);
- @after = &$find_windows()
- }
- my $c = top(difference2(\@after, \@before));
- return $1 if $c =~ /\s*([0-9]*)\s*/;
-}
-
sub kill_them_all {
map { if__($_, kill 'TERM', $_) } @_;
}