summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-25 14:02:08 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-25 14:02:08 +0000
commit305fedf99052d11732b88e9df361f205892de627 (patch)
treef40263c217ef61d522f37cf9854fda3939b02fd9
parent04fcfe8b49d397fc7a6c765ef9b7e53932f96f37 (diff)
downloadcontrol-center-305fedf99052d11732b88e9df361f205892de627.tar
control-center-305fedf99052d11732b88e9df361f205892de627.tar.gz
control-center-305fedf99052d11732b88e9df361f205892de627.tar.bz2
control-center-305fedf99052d11732b88e9df361f205892de627.tar.xz
control-center-305fedf99052d11732b88e9df361f205892de627.zip
disable contextual menu
-rwxr-xr-xcontrol-center6
1 files changed, 6 insertions, 0 deletions
diff --git a/control-center b/control-center
index 1fcd97b8..2da31097 100755
--- a/control-center
+++ b/control-center
@@ -919,6 +919,12 @@ foreach (@tree) {
}
}
+# disable contextual menu:
+$view->signal_connect('populate-popup' => sub {
+ my (undef, $menu) = @_;
+ $menu->destroy if $menu;
+ 1;
+ });
$view->signal_connect('navigation-requested' =>
sub {
my (undef, undef, $request) = @_;