Re: [gedit-list] Reloading gconf2 settings




Hi Sean,

what about turning this in a gedit python plugin? That would be much easier:
http://live.gnome.org/Gedit/PythonPluginHowTo


___/\_______________________________________________________________________

Ich darf nicht während der Schulstunde schlafen.

|\/\/\/| 
|      |        Bart.
| (O)(O)        bart neeneenee de
C      _) 
|   ,_/         Linux for Designers - http://my.opera.com/area42/blog/
|   /           SweeTS delicious Typo3 development - http://typo3.area42.de/
/   \ 


Am Dienstag, den 22.07.2008, 13:16 +0100 schrieb Sean Delaney:
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





_______________________________________________
gedit-list mailing list
gedit-list gnome org
http://mail.gnome.org/mailman/listinfo/gedit-list


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