/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-08 18:32:32 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-20060808183232-e27b1b45f7487da8
Implemented bookmarking.

2006-08-08  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>
    * olive/frontend/gtk/menu.py: Added left context menu + Bookmark option
    * olive/frontend/gtk/__init__.py: load bookmarks into the left panel
    * olive/frontend/gtk/handler.py: implemented signal handlers for left panel
    * olive.glade: added signals for the bookmark TreeView
    * cmenu.ui: added description for bookmark context menu

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
        diff = OliveDiff(self.gladefile, self.comm)
108
108
        diff.display()
109
109
    
 
110
    def on_treeview_left_button_press_event(self, widget, event):
 
111
        """ Occurs when somebody right-clicks in the bookmark list. """
 
112
        if event.button == 3:
 
113
            self.menu.left_context_menu().popup(None, None, None, 0,
 
114
                                                 event.time)
 
115
        
 
116
    def on_treeview_left_row_activated(self, treeview, path, view_column):
 
117
        """ Occurs when somebody double-clicks or enters an item in the
 
118
        bookmark list. """
 
119
        self.comm.set_busy(treeview)
 
120
        
 
121
        newdir = self.comm.get_selected_left()
 
122
        self.comm.set_path(newdir)
 
123
        
 
124
        self.comm.refresh_right()
 
125
        
 
126
        self.comm.set_busy(treeview, False)
 
127
    
110
128
    def on_treeview_right_button_press_event(self, widget, event):
111
129
        """ Occurs when somebody right-clicks in the file list. """
112
130
        if event.button == 3: