Exemplo n.º 1
0
    def set_path(self, path, is_user=False):
        """
        :param bool is_user: this event was fired by user
        """
        self.clear_buttons()
        pathlist = util.rec_split_path(path)
        for (abspath, name) in pathlist:
            self.append_button(abspath, name)

        if is_user:
            self.add_view_history(path)
        self.show_all()
Exemplo n.º 2
0
    def set_path(self, path, is_user=False):
        """
        :param bool is_user: this event was fired by user
        """
        self.clear_buttons()
        pathlist = util.rec_split_path(path)
        for (abspath, name) in pathlist:
            self.append_button(abspath, name)

        if is_user:
            self.add_view_history(path)

        self.back_button.set_sensitive(self.can_back())
        self.forward_button.set_sensitive(self.can_forward())

        self.show_all()
Exemplo n.º 3
0
 def set_path(self, path):
     self.clear_buttons()
     pathlist = util.rec_split_path(path)
     for (abspath, name) in pathlist:
         self.append_button(abspath, name)
     self.show_all()
Exemplo n.º 4
0
 def set_path(self, path):
     self.clear_buttons()
     pathlist = util.rec_split_path(path)
     for (abspath, name) in pathlist:
         self.append_button(abspath, name)
     self.show_all()