Logo Search packages:      
Sourcecode: activity-log-manager version File versions  Download package

def window::ApplicationsTab::populate_view (   self,
  app_list 
)
Populates the applications list.

Every application in app_list parameter should be in the form:
application://*.desktop

Definition at line 408 of file window.py.

                                     :
        """Populates the applications list.
        
        Every application in app_list parameter should be in the form:
        application://*.desktop
        """
        for app in app_list:
            try:
                app_info =  gio.unix.DesktopAppInfo(app)
                app_name = app_info.get_name()
                self.duplicate = False
                self.treeview.store.foreach(self._is_duplicate, app_name)
                if app_info is not None and not self.duplicate:
                    pix = self.treeview._get_pixbuf_from_gio_icon(app_info.get_icon())
                    self.treeview.store.append([app_name, app_info.get_description(), pix, app_info.get_id()])
            except RuntimeError:
                log.warning(_("Failed to load %s") % app)
                continue


Generated by  Doxygen 1.6.0   Back to index