/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/frontend/gtk/handler.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-08-15 18:59:46 UTC
  • mto: (0.14.1 main) (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060815185946-8b169c3f73aef666
Added View menu; implemented Refresh; some TODO changes.

2006-08-15  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * olive.glade: added View menu
    * olive/frontend/gtk/handler.py: implement the signal handlers
    * olive/frontend/gtk/__init__.py: connect the signals
    * TODO: some items marked as [DONE]

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
        log = OliveLog(self.gladefile, self.comm, self.dialog)
163
163
        log.display()
164
164
    
 
165
    def on_menuitem_view_refresh_activate(self, widget):
 
166
        """ View/Refresh menu handler. """
 
167
        # Refresh the left pane
 
168
        self.comm.refresh_left()
 
169
        # Refresh the right pane
 
170
        self.comm.refresh_right()
 
171
    
 
172
    def on_menuitem_view_show_hidden_files_activate(self, widget):
 
173
        """ View/Show hidden files menu handler. """
 
174
        if widget.get_active():
 
175
            # Show hidden files
 
176
            self.comm.pref.set_preference('dotted_files', True)
 
177
            self.comm.pref.refresh()
 
178
            self.comm.refresh_right()
 
179
        else:
 
180
            # Do not show hidden files
 
181
            self.comm.pref.set_preference('dotted_files', False)
 
182
            self.comm.pref.refresh()
 
183
            self.comm.refresh_right()
 
184
 
165
185
    def on_treeview_left_button_press_event(self, widget, event):
166
186
        """ Occurs when somebody right-clicks in the bookmark list. """
167
187
        if event.button == 3: