/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 viz/branchwin.py

  • Committer: John Arbash Meinel
  • Date: 2007-10-30 21:15:13 UTC
  • mfrom: (326 trunk)
  • mto: (330.3.3 trunk)
  • mto: This revision was merged to the branch mainline in revision 368.
  • Revision ID: john@arbash-meinel.com-20071030211513-l8ukdfa81g1y74mi
Merge the latest trunk 326

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
 
115
115
    def construct_navigation(self):
116
116
        """Construct the navigation buttons."""
117
 
        frame = gtk.Frame()
118
 
        frame.set_shadow_type(gtk.SHADOW_OUT)
119
 
        frame.show()
120
 
        
121
 
        hbox = gtk.HBox(spacing=12)
122
 
        frame.add(hbox)
123
 
        hbox.show()
 
117
        self.toolbar = gtk.Toolbar()
 
118
        self.toolbar.set_style(gtk.TOOLBAR_BOTH_HORIZ)
124
119
 
125
 
        self.back_button = gtk.Button(stock=gtk.STOCK_GO_BACK)
126
 
        self.back_button.set_relief(gtk.RELIEF_NONE)
 
120
        self.back_button = gtk.ToolButton(stock_id=gtk.STOCK_GO_BACK)
 
121
        self.back_button.set_is_important(True)
127
122
        self.back_button.add_accelerator("clicked", self.accel_group, ord('['),
128
123
                                         0, 0)
129
124
        self.back_button.connect("clicked", self._back_clicked_cb)
130
 
        hbox.pack_start(self.back_button, expand=False, fill=True)
 
125
        self.toolbar.insert(self.back_button, -1)
131
126
        self.back_button.show()
132
127
 
133
 
        self.fwd_button = gtk.Button(stock=gtk.STOCK_GO_FORWARD)
134
 
        self.fwd_button.set_relief(gtk.RELIEF_NONE)
 
128
        self.fwd_button = gtk.ToolButton(stock_id=gtk.STOCK_GO_FORWARD)
 
129
        self.fwd_button.set_is_important(True)
135
130
        self.fwd_button.add_accelerator("clicked", self.accel_group, ord(']'),
136
131
                                        0, 0)
137
132
        self.fwd_button.connect("clicked", self._fwd_clicked_cb)
138
 
        hbox.pack_start(self.fwd_button, expand=False, fill=True)
 
133
        self.toolbar.insert(self.fwd_button, -1)
139
134
        self.fwd_button.show()
140
135
 
141
 
        return frame
 
136
        self.toolbar.show()
 
137
 
 
138
        return self.toolbar
142
139
 
143
140
    def construct_bottom(self):
144
141
        """Construct the bottom half of the window."""