Subversion Repositories basico

Rev

Rev 126 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 126 Rev 130
Line 133... Line 133...
133
133
134
134
135
    def set_view(self, view):
135
    def set_view(self, view):
136
        # FIXME: Get last view visited from config
136
        # FIXME: Get last view visited from config
137
        # Change icon
137
        # Change icon
-
 
138
        if view is None:
-
 
139
                view ='chronologic'
-
 
140
        self.log.debug ("View: %s - Type (%s)" % (view, type(view)))
138
        iconview = self.gui.get_widget('imgViewCurrent')
141
        iconview = self.gui.get_widget('imgViewCurrent')
139
        icon = self.im.get_pixbuf_icon(view, 16, 16)
142
        icon = self.im.get_pixbuf_icon(view, 16, 16)
140
        iconview.set_from_pixbuf(icon)
143
        iconview.set_from_pixbuf(icon)
141
-
 
142
        self.view = view
144
        self.view = view
143
        self.log.debug("Set current view to: %s" % view)
145
        self.log.debug("Set current view to: %s" % view)
144
146
145
        # Change label
147
        # Change label
146
        viewlabel = self.gui.get_widget('lblViewCurrent')
148
        viewlabel = self.gui.get_widget('lblViewCurrent')