Changeset 245

Show
Ignore:
Timestamp:
05/29/06 11:59:57 (2 years ago)
Author:
nicfit
Message:

Make ctrl+f open the search UI like / does. Fixes #72

Files:

Legend:

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

    r240 r245  
    122122        -rm tags 
    123123        -rm ./etc/mesk.desktop 
    124         ${MAKE} -C po maintainer-clean 
    125124 
    126125WIKI_README=http://trac.nicfit.net/wiki/Installation?format=txt 
  • trunk/po/Makefile.in

    r231 r245  
    6464distclean: clean 
    6565        -rm Makefile 
    66 maintainer-clean: distclean 
    6766 
    6867.PHONY: check check-% clean distclean maintainer-clean 
  • trunk/src/mesk_gui.glade

    r242 r245  
    541541                          <property name="hover_expand">False</property> 
    542542                          <signal name="row_activated" handler="_on_playlist_view_row_activated" last_modification_time="Mon, 20 Feb 2006 02:10:11 GMT"/> 
     543                          <signal name="button_press_event" handler="_on_playlist_view_button_press_event" last_modification_time="Mon, 29 May 2006 16:08:33 GMT"/> 
     544                          <signal name="key_press_event" handler="_on_playlist_view_key_press_event" last_modification_time="Mon, 29 May 2006 17:49:33 GMT"/> 
    543545                        </widget> 
    544546                      </child> 
  • trunk/src/playlist_control.py

    r225 r245  
    8282        # Although this seems nice it prevents of DnD operations 
    8383        self._pl_view.set_reorderable(False) 
     84        # A search UI is provided, so disable the native handler 
     85        self._pl_view.set_enable_search(False) 
    8486        # Allow multi-select 
    8587        self._pl_view.get_selection().set_mode(gtk.SELECTION_MULTIPLE) 
     
    243245        self._audio_control.play() 
    244246 
     247    def _on_playlist_view_button_press_event(self, treeview, event): 
     248        if event.button == 3: 
     249            # Intercept right clicks for context menu 
     250            # TODO 
     251            return True 
     252        else: 
     253            return False 
     254 
    245255    def _on_audio_playing(self, audio_control): 
    246256        if self._is_active: 
     
    436446                                     '[%d]' % count) 
    437447            count += 1 
     448 
     449    def _on_playlist_view_key_press_event(self, widget, event): 
     450        # This handler is for key press events on just the treeview,  
     451        # whereas the normal handler is on the container 
     452        return self._on_playlist_control_key_press_event(widget, event) 
    438453 
    439454    def _on_playlist_control_key_press_event(self, widget, event):