summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-11-30 14:01:39 +0000
committerThierry Vignaud <tv@mandriva.org>2009-11-30 14:01:39 +0000
commit81c3ff8d597a316c0509f28c7b15280c0bc54962 (patch)
tree278c5d494e6e4ed9b774958a39995c1fd0c3a960
parent4e6bdddafb89a02eb77a2b68d7a3d0011e686f93 (diff)
downloadcontrol-center-81c3ff8d597a316c0509f28c7b15280c0bc54962.tar
control-center-81c3ff8d597a316c0509f28c7b15280c0bc54962.tar.gz
control-center-81c3ff8d597a316c0509f28c7b15280c0bc54962.tar.bz2
control-center-81c3ff8d597a316c0509f28c7b15280c0bc54962.tar.xz
control-center-81c3ff8d597a316c0509f28c7b15280c0bc54962.zip
fix drakconsole not having the focus on startup (#48091)
"$w->{rwindow}->set_focus($vte)" would have worked too (backported from trunk)
-rw-r--r--NEWS3
-rwxr-xr-xdrakconsole2
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9f8bfca2..4e8e3317 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- drakconsole
+ o fix not having the focus on startup (#48091)
+
Version 11.9.1 - 19 March 2009, Thierry Vignaud
- drop again diagnostics, strict, vars and warnings pragmas
diff --git a/drakconsole b/drakconsole
index 6d5bf767..46d66ee0 100755
--- a/drakconsole
+++ b/drakconsole
@@ -34,6 +34,8 @@ $w->{rwindow}->add(gtkpack_(Gtk2::VBox->new(0, 0),
),
);
$w->{rwindow}->show_all;
+
+$vte->grab_focus();
#$ENV{PS1} = qq(Type "exit"\n);
$vte->fork_command($ENV{SHELL}, [ $ENV{SHELL} ], [ map { "$_=$ENV{$_}" } keys %ENV ], $ENV{PWD}, 0, 0, 0);