install _() func in music_track_listener.py BEFORE importing dbus_support which needs it

This commit is contained in:
Yann Leboulanger 2006-09-27 17:16:04 +00:00
parent b2c71fb427
commit 3df7e1b84f
1 changed files with 3 additions and 2 deletions

View File

@ -14,6 +14,9 @@
## GNU General Public License for more details. ## GNU General Public License for more details.
## ##
import gobject import gobject
if __name__ == '__main__':
# install _() func before importing dbus_support
from common import i18n
import dbus_support import dbus_support
if dbus_support.supported: if dbus_support.supported:
@ -141,8 +144,6 @@ class MusicTrackListener(gobject.GObject):
# here we test :) # here we test :)
if __name__ == '__main__': if __name__ == '__main__':
from common import i18n
def music_track_change_cb(listener, music_track_info): def music_track_change_cb(listener, music_track_info):
if music_track_info is None: if music_track_info is None:
print "Stop!" print "Stop!"