def on_event_login_success(self, obj, data):
     if self.list_type == self.COLLECT_TYPE:
         self.song_view.load_collect_songs(clear=True)
         switch_tab(self.main_box, self.song_view)
         
         self.normal_pixbuf = gtk.gdk.pixbuf_new_from_file(get_image("collect_list.png"))
         self.emit_redraw_request()
    def on_event_login_success(self, obj, data):
        if self.list_type == self.COLLECT_TYPE:
            self.song_view.load_collect_songs(clear=True)
            switch_tab(self.main_box, self.song_view)

            self.normal_pixbuf = gtk.gdk.pixbuf_new_from_file(
                get_image("collect_list.png"))
            self.emit_redraw_request()
 def init_pixbufs(self):        
     if self.list_type == self.DEFAULT_TYPE:
         normal_image_name = "listen_list.png"
         press_image_name = "listen_list_press.png"
         
     elif self.list_type == self.LOCAL_TYPE:    
         normal_image_name = "local_list.png"
         press_image_name = "local_list_press.png"
         
     elif self.list_type == self.COLLECT_TYPE:    
         if bplayer.is_login:
             normal_image_name = "collect_list.png"
         else:    
             normal_image_name = "collect_list_unlogin.png"
         press_image_name = "collect_list_press.png"    
     else:    
         normal_image_name = "online_list.png"
         press_image_name = "online_list_press.png"
         
     self.normal_pixbuf = gtk.gdk.pixbuf_new_from_file(get_image(normal_image_name))
     self.press_pixbuf = gtk.gdk.pixbuf_new_from_file(get_image(press_image_name))
     self.icon_width = self.normal_pixbuf.get_width()
    def init_pixbufs(self):
        if self.list_type == self.DEFAULT_TYPE:
            normal_image_name = "listen_list.png"
            press_image_name = "listen_list_press.png"

        elif self.list_type == self.LOCAL_TYPE:
            normal_image_name = "local_list.png"
            press_image_name = "local_list_press.png"

        elif self.list_type == self.COLLECT_TYPE:
            if bplayer.is_login:
                normal_image_name = "collect_list.png"
            else:
                normal_image_name = "collect_list_unlogin.png"
            press_image_name = "collect_list_press.png"
        else:
            normal_image_name = "online_list.png"
            press_image_name = "online_list_press.png"

        self.normal_pixbuf = gtk.gdk.pixbuf_new_from_file(
            get_image(normal_image_name))
        self.press_pixbuf = gtk.gdk.pixbuf_new_from_file(
            get_image(press_image_name))
        self.icon_width = self.normal_pixbuf.get_width()