Exemple #1
0
    def _create_ui(self):
        if self._osx_app:
            self._osx_setup_menus()

        self._create_headerbar()
        self._create_actions()
        self._create_shared_ui()

        toplevel = self.get_toplevel().get_toplevel()
        add_current_toplevel(toplevel)

        if self.options.debug:
            self.add_debug_ui()
Exemple #2
0
    def _create_ui(self):
        if self._osx_app:
            self._osx_setup_menus()

        self._create_headerbar()
        self._create_actions()
        self._create_shared_ui()

        toplevel = self.get_toplevel().get_toplevel()
        add_current_toplevel(toplevel)

        if self.options.debug:
            self.add_debug_ui()
Exemple #3
0
    def create_ui(self):
        toplevel = self.get_toplevel().get_toplevel()
        add_current_toplevel(toplevel)
        self.model.set_sort_column_id(COL_LABEL, gtk.SORT_ASCENDING)
        self.iconview.set_markup_column(COL_LABEL)
        self.iconview.set_pixbuf_column(COL_PIXBUF)
        if hasattr(self.iconview, "set_item_orientation"):
            self.iconview.set_item_orientation(gtk.ORIENTATION_HORIZONTAL)
        self.iconview.set_item_width(300)
        self.iconview.set_selection_mode(gtk.SELECTION_BROWSE)
        self.iconview.set_spacing(10)

        for app in self._get_available_applications():
            pixbuf = self.get_toplevel().render_icon(app.icon, gtk.ICON_SIZE_DIALOG)
            text = '<b>%s</b>\n<small>%s</small>' % (
                api.escape(app.fullname),
                api.escape(app.description))
            self.model.append([text, pixbuf, app])

        # FIXME: last opened application
        if len(self.model):
            self.iconview.select_path(self.model[0].path)
            self.iconview.grab_focus()
Exemple #4
0
 def _create_ui(self):
     if self._osx_app:
         self._osx_setup_menus()
     self._create_shared_ui()
     toplevel = self.get_toplevel().get_toplevel()
     add_current_toplevel(toplevel)
Exemple #5
0
 def _create_ui(self):
     if self._osx_app:
         self._osx_setup_menus()
     self._create_shared_ui()
     toplevel = self.get_toplevel().get_toplevel()
     add_current_toplevel(toplevel)