Changeset 308

Show
Ignore:
Timestamp:
06/11/06 14:46:16 (2 years ago)
Author:
nicfit
Message:

MultiMediaKeys? start (code from listen) and po updates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Makefile.in

    r304 r308  
    2525exec_prefix:=@exec_prefix@ 
    2626bindir:=$(subst //,/,${DESTDIR}/@bindir@) 
    27 libdir:=$(subst //,/,${DESTDIR}/@libdir@/mesk
     27libdir:=$(subst //,/,${DESTDIR}/@libdir@
    2828mandir:=$(subst //,/,${DESTDIR}/@mandir@) 
    2929datadir:=$(subst //,/,${DESTDIR}/@datadir@) 
     
    4848module: 
    4949        ${PYTHON} setup.py build 
     50        ${MAKE} -C ./src/mmkeys all 
    5051 
    5152etc/mesk.desktop: etc/mesk.desktop.in 
     
    5556install: all 
    5657        ${PYTHON} setup.py install --prefix=${prefix} 
     58        #${MAKE} -C src/mmkeys install 
    5759 
    5860        # Code 
    5961        install -m 755 -d ${bindir} 
    6062        install -m 755 scripts/mesk ${bindir} 
    61         install -m 755 -d ${libdir} 
    62         install -m 644 ./src/*.py ${libdir} 
    63         install -m 644 ./src/*.glade ${libdir} 
    64         install -m 755 -d ${libdir}/images 
    65         install -m 644 ./src/* ${libdir}/images 
    66         # This blows, but AFAIK pixmaps MUST be in the same dir per glade 
    67         install -m 644 ./src/*.png ${libdir} 
    68         install -m 644 ./src/*.svg ${libdir} 
     63        install -m 755 -d ${libdir}/mesk 
     64        install -m 644 ./src/*.py ${libdir}/mesk 
     65        install -m 644 ./src/*.glade ${libdir}/mesk 
     66        install -m 644 ./src/mmkeys/mmkeys.so ${libdir}/mesk 
     67        # Data 
     68        install -m 755 -d ${libdir}/mesk/images 
     69        install -m 644 ./src/images/* ${libdir}/mesk/images 
    6970        # Plugins 
    70         install -m 755 -d ${libdir}/plugins 
    71         install -m 644 ./src/plugins/*.py ${libdir}/plugins 
    72         install -m 644 ./src/plugins/*.glade ${libdir}/plugins 
     71        install -m 755 -d ${libdir}/mesk/plugins 
     72        install -m 644 ./src/plugins/*.py ${libdir}/mesk/plugins 
     73        install -m 644 ./src/plugins/*.glade ${libdir}/mesk/plugins 
    7374 
    7475        # Docs 
     
    110111        -rm -rf ${bindir}/mesk 
    111112        -rm -rf ${libdir}/python2.4/site-packages/mesk 
    112         -rm -rf ${libdir}  
     113        -rm -rf ${libdir}/mesk  
    113114        -rm -rf ${docdir} 
    114115        -rm ${datadir}/applications/mesk.desktop 
     
    119120        find . -name \*.pyc -exec rm '{}' \; 
    120121        find . -name \*.pyo -exec rm '{}' \; 
     122        ${MAKE} -C src/mmkeys clean 
    121123 
    122124distclean: clean 
     
    133135        -rm Makefile 
    134136        -${MAKE} -C po distclean 
     137        ${MAKE} -C src/mmkeys distclean 
    135138 
    136139maintainer-clean: 
  • trunk/configure.ac

    r303 r308  
    4545                 src/mesk/info.py\ 
    4646                 scripts/mesk\ 
    47                  etc/mesk.1]) 
     47                 etc/mesk.1\ 
     48                 src/mmkeys/Makefile]) 
    4849if test -f README.in; then 
    4950   AC_CONFIG_FILES([README]) 
  • trunk/launch.sh

    r157 r308  
    66    ./autogen.sh 
    77fi 
    8 cd ${ROOT}/src 
    98 
    109profile=${MESK_TEST_PROFILE:-testing} 
     10cd ${ROOT}/src 
     11export PYTHONPATH=${PYTHONPATH}:./mmkeys 
    1112exec python -OO main.py --profile=${profile} $@ 
  • trunk/po/es.po

    r303 r308  
    88"Project-Id-Version: 0.1.1\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2006-06-10 22:42-0600\n" 
     10"POT-Creation-Date: 2006-06-11 14:26-0600\n" 
    1111"PO-Revision-Date: 2006-04-15 17:38-0600\n" 
    1212"Last-Translator: Travis Shirk <travis@pobox.com>\n" 
     
    222222msgstr "Pausa" 
    223223 
    224 #: ../src/audio_control.py:117 
     224#: ../src/audio_control.py:122 
    225225#, python-format 
    226226msgid "Gstreamer version %d.%d.%d audio control initialized" 
     
    261261msgstr "La gerencia de la sesión inhabilitó (ningún módulo de gnome.ui)" 
    262262 
    263 #: ../src/main_window.py:78 
     263#: ../src/main_window.py:69 ../src/main_window.py:302 
     264#, python-format 
     265msgid "Volume %d%%" 
     266msgstr "" 
     267 
     268#: ../src/main_window.py:84 
    264269#, python-format 
    265270msgid "Error loading playlist '%s'" 
     
    376381msgstr "Número de los milisegundos a detenerse brevemente entre las pistas" 
    377382 
    378 #: ../src/mesk/__init__.py:98 
     383#: ../src/mesk/__init__.py:96 
     384msgid "Volume level is a value between 0.0 and 1.0" 
     385msgstr "" 
     386 
     387#: ../src/mesk/__init__.py:100 
    379388msgid "Playlist (file) location" 
    380389msgstr "Localización de Playlist (archivo)" 
    381390 
    382 #: ../src/mesk/__init__.py:99 
     391#: ../src/mesk/__init__.py:101 
    383392msgid "Open on startup" 
    384393msgstr "Ábrase en arranque" 
    385394 
    386 #: ../src/mesk/__init__.py:100 
     395#: ../src/mesk/__init__.py:102 
    387396msgid "Starting playlist index" 
    388397msgstr "Comenzar índice del playlist" 
    389398 
    390 #: ../src/mesk/__init__.py:101 
     399#: ../src/mesk/__init__.py:103 
    391400msgid "Is the playlist in repeat mode" 
    392401msgstr "Es el playlist en modo de la repetición" 
    393402 
    394 #: ../src/mesk/__init__.py:102 
     403#: ../src/mesk/__init__.py:104 
    395404msgid "Is the playlist in shuffle mode" 
    396405msgstr "Es el playlist en modo de la barajadura" 
    397406 
    398 #: ../src/mesk/__init__.py:103 
     407#: ../src/mesk/__init__.py:105 
    399408msgid "The playlist queue which is a comma separated list of indices" 
    400409msgstr "La coleta del playlist que es una coma separó la lista de índices" 
    401410 
    402 #: ../src/mesk/__init__.py:106 
     411#: ../src/mesk/__init__.py:108 
    403412msgid "The directory to open when adding files" 
    404413msgstr "El directorio a abrirse al agregar archivos" 
    405414 
    406 #: ../src/mesk/__init__.py:117 ../src/mesk/__init__.py:119 
    407 #: ../src/mesk/__init__.py:121 
     415#: ../src/mesk/__init__.py:119 ../src/mesk/__init__.py:121 
     416#: ../src/mesk/__init__.py:123 
    408417#, python-format 
    409418msgid "Creating %s..." 
     
    472481 
    473482#. Text columns 
    474 #: ../src/playlist_control.py:13
     483#: ../src/playlist_control.py:14
    475484msgid "Title" 
    476485msgstr "Título" 
    477486 
    478 #: ../src/playlist_control.py:14
     487#: ../src/playlist_control.py:15
    479488msgid "Artist" 
    480489msgstr "Artista" 
    481490 
    482 #: ../src/playlist_control.py:14
     491#: ../src/playlist_control.py:15
    483492msgid "Album" 
    484493msgstr "Álbum" 
    485494 
    486 #: ../src/playlist_control.py:14
     495#: ../src/playlist_control.py:15
    487496msgid "#" 
    488497msgstr "#" 
    489498 
    490 #: ../src/playlist_control.py:14
     499#: ../src/playlist_control.py:15
    491500msgid "Year" 
    492501msgstr "Año" 
    493502 
    494 #: ../src/playlist_control.py:14
     503#: ../src/playlist_control.py:15
    495504msgid "Time" 
    496505msgstr "Tiempo" 
    497506 
    498 #: ../src/playlist_control.py:472 
     507#: ../src/playlist_control.py:485 
    499508msgid "tracks" 
    500509msgstr "pistas" 
    501510 
    502 #: ../src/playlist_control.py:777 
     511#: ../src/playlist_control.py:790 
    503512#, fuzzy, python-format 
    504513msgid "" 
     
    508517msgstr "Fuente que cae del error: %s" 
    509518 
    510 #: ../src/playlist_control.py:785 
     519#: ../src/playlist_control.py:798 
    511520#, fuzzy, python-format 
    512521msgid "" 
     
    518527"%s" 
    519528 
    520 #: ../src/playlist_control.py:828 
     529#: ../src/playlist_control.py:841 
    521530msgid "Add Music" 
    522531msgstr "Agregue La Música" 
    523532 
    524 #: ../src/playlist_control.py:835 
     533#: ../src/playlist_control.py:848 
    525534msgid "MP3s" 
    526535msgstr "MP3s" 
    527536 
    528 #: ../src/playlist_control.py:840 
     537#: ../src/playlist_control.py:853 
    529538msgid "Playlists" 
    530539msgstr "Playlists" 
     
    533542#. the checkbox is toggles and files when not since this is not 
    534543#. possible by default 
    535 #: ../src/playlist_control.py:847 
     544#: ../src/playlist_control.py:860 
    536545msgid "Make the _dialog be able/unable to select directories" 
    537546msgstr "Haga que el _diálogo es able/unable para seleccionar directorios" 
    538547 
    539 #: ../src/playlist_control.py:939 
     548#: ../src/playlist_control.py:952 
    540549#, python-format 
    541550msgid "'%s' string not found" 
  • trunk/po/mesk.pot

    r303 r308  
    99"Project-Id-Version: PACKAGE VERSION\n" 
    1010"Report-Msgid-Bugs-To: \n" 
    11 "POT-Creation-Date: 2006-06-10 22:42-0600\n" 
     11"POT-Creation-Date: 2006-06-11 14:26-0600\n" 
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    221221msgstr "" 
    222222 
    223 #: ../src/audio_control.py:117 
     223#: ../src/audio_control.py:122 
    224224#, python-format 
    225225msgid "Gstreamer version %d.%d.%d audio control initialized" 
     
    256256msgstr "" 
    257257 
    258 #: ../src/main_window.py:78 
     258#: ../src/main_window.py:69 ../src/main_window.py:302 
     259#, python-format 
     260msgid "Volume %d%%" 
     261msgstr "" 
     262 
     263#: ../src/main_window.py:84 
    259264#, python-format 
    260265msgid "Error loading playlist '%s'" 
     
    364369msgstr "" 
    365370 
    366 #: ../src/mesk/__init__.py:98 
     371#: ../src/mesk/__init__.py:96 
     372msgid "Volume level is a value between 0.0 and 1.0" 
     373msgstr "" 
     374 
     375#: ../src/mesk/__init__.py:100 
    367376msgid "Playlist (file) location" 
    368377msgstr "" 
    369378 
    370 #: ../src/mesk/__init__.py:99 
     379#: ../src/mesk/__init__.py:101 
    371380msgid "Open on startup" 
    372381msgstr "" 
    373382 
    374 #: ../src/mesk/__init__.py:100 
     383#: ../src/mesk/__init__.py:102 
    375384msgid "Starting playlist index" 
    376385msgstr "" 
    377386 
    378 #: ../src/mesk/__init__.py:101 
     387#: ../src/mesk/__init__.py:103 
    379388msgid "Is the playlist in repeat mode" 
    380389msgstr "" 
    381390 
    382 #: ../src/mesk/__init__.py:102 
     391#: ../src/mesk/__init__.py:104 
    383392msgid "Is the playlist in shuffle mode" 
    384393msgstr "" 
    385394 
    386 #: ../src/mesk/__init__.py:103 
     395#: ../src/mesk/__init__.py:105 
    387396msgid "The playlist queue which is a comma separated list of indices" 
    388397msgstr "" 
    389398 
    390 #: ../src/mesk/__init__.py:106 
     399#: ../src/mesk/__init__.py:108 
    391400msgid "The directory to open when adding files" 
    392401msgstr "" 
    393402 
    394 #: ../src/mesk/__init__.py:117 ../src/mesk/__init__.py:119 
    395 #: ../src/mesk/__init__.py:121 
     403#: ../src/mesk/__init__.py:119 ../src/mesk/__init__.py:121 
     404#: ../src/mesk/__init__.py:123 
    396405#, python-format 
    397406msgid "Creating %s..." 
     
    460469 
    461470#. Text columns 
    462 #: ../src/playlist_control.py:13
     471#: ../src/playlist_control.py:14
    463472msgid "Title" 
    464473msgstr "" 
    465474 
    466 #: ../src/playlist_control.py:14
     475#: ../src/playlist_control.py:15
    467476msgid "Artist" 
    468477msgstr "" 
    469478 
    470 #: ../src/playlist_control.py:14
     479#: ../src/playlist_control.py:15
    471480msgid "Album" 
    472481msgstr "" 
    473482 
    474 #: ../src/playlist_control.py:14
     483#: ../src/playlist_control.py:15
    475484msgid "#" 
    476485msgstr "" 
    477486 
    478 #: ../src/playlist_control.py:14
     487#: ../src/playlist_control.py:15
    479488msgid "Year" 
    480489msgstr "" 
    481490 
    482 #: ../src/playlist_control.py:14
     491#: ../src/playlist_control.py:15
    483492msgid "Time" 
    484493msgstr "" 
    485494 
    486 #: ../src/playlist_control.py:472 
     495#: ../src/playlist_control.py:485 
    487496msgid "tracks" 
    488497msgstr "" 
    489498 
    490 #: ../src/playlist_control.py:777 
     499#: ../src/playlist_control.py:790 
    491500#, python-format 
    492501msgid "" 
     
    496505msgstr "" 
    497506 
    498 #: ../src/playlist_control.py:785 
     507#: ../src/playlist_control.py:798 
    499508#, python-format 
    500509msgid "" 
     
    504513msgstr "" 
    505514 
    506 #: ../src/playlist_control.py:828 
     515#: ../src/playlist_control.py:841 
    507516msgid "Add Music" 
    508517msgstr "" 
    509518 
    510 #: ../src/playlist_control.py:835 
     519#: ../src/playlist_control.py:848 
    511520msgid "MP3s" 
    512521msgstr "" 
    513522 
    514 #: ../src/playlist_control.py:840 
     523#: ../src/playlist_control.py:853 
    515524msgid "Playlists" 
    516525msgstr "" 
     
    519528#. the checkbox is toggles and files when not since this is not 
    520529#. possible by default 
    521 #: ../src/playlist_control.py:847 
     530#: ../src/playlist_control.py:860 
    522531msgid "Make the _dialog be able/unable to select directories" 
    523532msgstr "" 
    524533 
    525 #: ../src/playlist_control.py:939 
     534#: ../src/playlist_control.py:952 
    526535#, python-format 
    527536msgid "'%s' string not found" 
  • trunk/src/main_window.py

    r307 r308  
    3030from album_cover_control import AlbumCoverControl 
    3131from preference_window import PreferenceWindow 
     32from multi_media_keys import MultiMediaKeys 
    3233 
    3334class MainWindow: 
     
    302303                               _('Volume %d%%') % (vol * 100)) 
    303304 
    304 class MultiMediaKeys: 
    305     def __init__(self, audio_control): 
    306         self._audio = audio_control 
    307         import mmkeys