/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 branch.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2007-05-16 14:00:46 UTC
  • mto: (195.1.8 trunk)
  • mto: This revision was merged to the branch mainline in revision 200.
  • Revision ID: szilveszter.farkas@gmail.com-20070516140046-0iqhzmarqln6hop3
Add bookmarked locations to the branch history.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
from dialog import error_dialog, info_dialog
34
34
 
35
35
from history import UrlHistory
 
36
from olive import Preferences
36
37
 
37
38
class BranchDialog(gtk.Dialog):
38
39
    """ New implementation of the Branch dialog. """
107
108
    def _build_history(self):
108
109
        """ Build up the branch history. """
109
110
        self._combo_model = gtk.ListStore(str)
 
111
        
110
112
        for item in self._history.get_entries():
111
113
            self._combo_model.append([ item ])
 
114
        
 
115
        pref = Preferences()
 
116
        for item in pref.get_bookmarks():
 
117
            self._combo_model.append([ item ])
 
118
        
112
119
        self._combo.set_model(self._combo_model)
113
120
        self._combo.set_text_column(0)
114
121
    
199
206
    
200
207
    def _on_combo_changed(self, widget, event):
201
208
        """ We try to get the last revision if focus lost. """
202
 
        print "DEBUG: combo changed."
203
209
        rev = self._get_last_revno()
204
210
        if rev is None:
205
211
            self._entry_revision.set_text(_('N/A'))