Browse the code

 

Differences between 233 and 234 on /.
Number of edited files: 1 (0 added, 0 deleted and 1 modified)
Revision 234

About 1 month and 2 days ago.

* Added a treeview searching popup in genre/year/artist filters
Added file(s) Deleted file(s) Modified file(s)

 

Old New Code
159
159
            column.add_attribute(pixbufcell, 'pixbuf', 0)
160
160
            tree_store.append_column(column)
161
161

                                        
162
 
            if filterkind != 'artist':
163
 
                column.set_visible(False)
 
162
            column.set_visible(False)
164
163

                                        
165
164
            column = TreeViewColumn()
166
165
            markupcell1.set_padding(0, 5)
202
201
                    tree_selection.select_iter(eiter)
203
202
            self.pause_update = False
204
203

                                        
 
204
            def search_tooltip(smodel, scolumn, skey, siter):
 
205
                content = smodel.get_value(siter, scolumn)
 
206
                if skey.lower() in content.lower():
 
207
                    return False
 
208
                else:
 
209
                    return True
 
210

                                    
 
211
            tree_store.set_search_column(3)
 
212
            tree_store.set_search_equal_func(search_tooltip)
 
213

                                    
205
214
            btn_erase = wdwobj.get_object('btn_erase')
206
215
            btn_erase.connect('clicked', erase_all_filter,
207
216
                              tree_selection, filterkind, popup)
208
217