Commits

A2K  committed 8c8f0ad

Shortcuts work again

  • Participants
  • Parent commits 2539c94

Comments (0)

Files changed (4)

 	guicomponents/trackinfowidget_qt.py \
 	guicomponents/fileswidget_qt.py \
 	guicomponents/albumsearchwidget_qt.py \
+	guicomponents/ipodwidget_qt.py \
 	about_qt.py
 
 TRANSLATIONS = vplayer_ru.qm vplayer_uk.qm
                       QtCore.SIGNAL("triggered()"),
                       self.show_options)
 
-        if XLIB_SHORTCUTS:
-            self.register_xshortcuts()
+        #if XLIB_SHORTCUTS:
+        self.register_xshortcuts()
 
         print self.pages
         self.update_tabwidget()
             self.ui.tabWidget.addTab(page)
 
     def register_xshortcuts(self, restart = False):
-        if not XLIB_SHORTCUTS: return
+        log.debug("Registering X shortcuts...")
+        if not XLIB_SHORTCUTS:
+            log.error("No Xlib bindings found")
+            return
         if restart:
             self.shortcuts_thread.stop()
             sleep(0.5)

File guicomponents/collectionwidget_qt.ui

       <bool>true</bool>
      </property>
      <property name="dragDropMode">
-      <enum>QAbstractItemView::DragDrop</enum>
+      <enum>QAbstractItemView::DragOnly</enum>
      </property>
      <property name="alternatingRowColors">
       <bool>true</bool>

File shortcuts.py

 
 from PyQt4 import QtCore
 
-from vplayer import log
+from vplayer.logger import log
 
 class Shortcuts(QtCore.QThread):