]> git.pld-linux.org Git - packages/XcursorTheme.git/commitdiff
- what was that!? - fixed cursor selection method, use dialog
authorTomasz Pala <gotar@pld-linux.org>
Thu, 1 Apr 2004 15:08:02 +0000 (15:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    XcursorTheme-cursorconfig -> 1.2
    XcursorTheme-cursorconfig.pl.po -> 1.2

XcursorTheme-cursorconfig
XcursorTheme-cursorconfig.pl.po

index d0799563a4c639312dc9b14ea7f4c3926f1e5475..c94ba16cdbdf795ea2f3bca70293a297da845ad3 100644 (file)
@@ -1,46 +1,17 @@
 #!/bin/sh
 
 alias nls='gettext -d cursorconfig'
-
-themes=`ls -d /usr/share/icons/*/cursors | sed -e 's,/usr/share/icons/,,;s,/cursors,,'`
-
-if [ -z "$1" ]; then
-       echo "$(nls 'Welcome to the Xcursor theme configurator.')"
-       echo
-       echo "$(nls 'Available themes are:')"
-       echo ${themes}
-       echo
-       if [ -r ~/.Xresources ]; then 
-       
-               if [ -n `grep Xcursor.theme ~/.Xresources|sed -e "s/Xcursor\.theme:\ //g"` ]; then
-                       default=`grep Xcursor.theme ~/.Xresources|sed -e "s/Xcursor\.theme:\ //g"`
-               fi
-       
-       
-       elif [ -r ~/.Xdefaults ]; then 
-       
-               if [ -n `grep Xcursor.theme ~/.Xdefaults|sed -e "s/Xcursor\.theme:\ //g"` ]; then
-                       default=`grep Xcursor.theme ~/.Xdefaults|sed -e "s/Xcursor\.theme:\ //g"`
-               fi
-       fi
-
-       echo "$(nls 'Currently active:') $default"
-
-else
-
-       if [ -r ~/.Xresources ]; then 
-
-               grep -v Xcursor.theme ~/.Xresources >> ~/.Xresources.tmp1
-               echo "Xcursor.theme: $1"  >> ~/.Xresources.tmp1
-               mv -f ~/.Xresources.tmp1 ~/.Xresources
-       
-       elif [ -r ~/.Xdefaults ]; then 
-       
-               grep -v Xcursor.theme ~/.Xdefaults >> ~/.Xdefaults.tmp1
-               echo "Xcursor.theme: $1"  >> ~/.Xdefaults.tmp1
-               mv -f ~/.Xdefaults.tmp1 ~/.Xdefaults
-
-       fi
-
-       echo "$(nls 'Switched to theme:') $1."
-fi
+themes="core `ls -d /usr/share/icons/*/cursors | sed -e 's,/usr/share/icons/,,;s,/cursors,,'`"
+default=`grep -s Inherits ~/.icons/default/index.theme | cut -f2 -d=`
+[ -z $default ] || default="($default)"
+
+theme=`dialog --title 'Cursorconfig' \
+       --backtitle "$(nls 'PLD Linux X Cursor Configuration Utility')" \
+       --one-column \
+       --menu "$(nls 'Available themes:') $default" $(($(echo $themes | wc -w)+7)) 60 0 \
+       $themes`
+[ -z $theme ] && exit 0
+
+mkdir -p ~/.icons/default || exit 1
+echo "[Icon Theme]" > ~/.icons/default/index.theme
+echo "Inherits=$theme" >> ~/.icons/default/index.theme
index bfafc68efe1f52fb86f88773a57797304fe09c3f..17c0a60110bc8bbc5b24aa2164ee63fa41aeeed5 100644 (file)
@@ -1,25 +1,19 @@
 # Polish translations for XFree86-Xcursors-pack cursorconfig
-# Jakub Bogusz <qboosh@pld.org.pl>, 2003
+# Jakub Bogusz <qboosh@pld-linux.org>, 2003
 #
 msgid ""
 msgstr ""
 "Project-Id-Version: cursorconfig\n"
 "POT-Creation-Date: 2003-02-26 23:54+0100\n"
-"PO-Revision-Date: 2003-02-26 23:55+0100\n"
-"Last-Translator: Jakub Bogusz <qboosh@pld.org.pl>\n"
+"PO-Revision-Date: 2004-04-01 16:55+0200\n"
+"Last-Translator: Tomasz Pala <gotar@poczta.onet.pl>\n"
 "Language-Team: Polish\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=ISO-8859-2\n"
 "Content-Transfer-Encoding: 8-bit\n"
 
-msgid "Welcome to the Xcursor theme configurator."
-msgstr "Witamy w konfiguratorze motywów Xcursor."
+msgid "PLD Linux X Cursor Configuration Utility"
+msgstr "Konfigurator Kursorów Xów dla PLD Linux"
 
-msgid "Available themes are:"
-msgstr "Dostêpne s± motywy:"
-
-msgid "Currently active:"
-msgstr "Teraz ustawiony motyw to:"
-
-msgid "Switched to theme:"
-msgstr "Motyw zmieniono na:"
+msgid "Available themes:"
+msgstr "Dostêpne motywy:"
This page took 0.069613 seconds and 4 git commands to generate.