[gnome-control-center] shell: Add additional arguments to bash completion file



commit 2b830e038853545c721b3ea622c8349c1f5c851e
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Mon Feb 11 11:31:38 2013 -0500

    shell: Add additional arguments to bash completion file
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693397

 shell/completions/gnome-control-center.in |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/shell/completions/gnome-control-center.in b/shell/completions/gnome-control-center.in
index 37e6830..19ead43 100644
--- a/shell/completions/gnome-control-center.in
+++ b/shell/completions/gnome-control-center.in
@@ -21,12 +21,28 @@ _gnome_control_center()
 			command_list="@PANELS@"
 		fi
 
-		# FIXME
-		# Add the argvs for some of the panels that
-		# support it, such as network
 		for i in --overview --version @PANELS@; do
 			if [ $i = $prev ]; then
-				command_list=""
+				case $i in
+				keyboard)
+					command_list="shortcuts typing"
+					;;
+				network)
+					# FIXME
+					# The first 3 commands need an object path like
+					# /org/freedesktop/NetworkManager/Devices/1
+					command_list="connect-3g connect-8021x-wifi show-device connect-hidden-wifi create-wifi"
+					;;
+				region)
+					command_list="formats language layouts system"
+					;;
+				sound)
+					command_list="applications effects hardware input outputs"
+					;;
+				*)
+					command_list=""
+					;;
+				esac
 			fi
 		done
 		;;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]