[gedit-list] Reloading gconf2 settings
- From: "Sean Delaney" <sdelaney cp dias ie>
- To: gedit-list gnome org
- Subject: [gedit-list] Reloading gconf2 settings
- Date: Tue, 22 Jul 2008 13:16:04 +0100
Hi,
I wrote the External Tool below to turn "word wrap" on and off using a keyboard shortcut. It does this perfectly well.
I would like the bottom panel to disappear after the script runs. The last 2 lines should do this. In fact, they work fine in another tool I wrote to open the current directory.
Any ideas how to get them working here?
The script:
#!/bin/sh
x=`gconftool-2 -g /apps/gedit-2/preferences/editor/wrap_mode/wrap_mode`
echo $x
[ $x = "GTK_WRAP_NONE" ] && gconftool-2 -s -t string /apps/gedit-2/preferences/editor/wrap_mode/wrap_mode GTK_WRAP_WORD || gconftool-2 -s -t string /apps/gedit-2/preferences/editor/wrap_mode/wrap_mode GTK_WRAP_NONE
x=`gconftool-2 -g /apps/gedit-2/preferences/editor/wrap_mode/wrap_mode`
echo $x
x=`gconftool-2 -g /apps/gedit-2/preferences/ui/bottom_panel/bottom_panel_visible`
[ $x = "true" ] && gconftool-2 -s -t bool /apps/gedit-2/preferences/ui/bottom_panel/bottom_panel_visible false
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]