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

  • Committer: Jelmer Vernooij
  • Date: 2007-10-02 04:59:13 UTC
  • Revision ID: jelmer@samba.org-20071002045913-iavr7ft7nntc2pwr
Put children widget on a new line.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
        self.tags_list.show_all()
117
117
        self.tags_label.show_all()
118
118
        
119
 
 
120
119
    def _add_parents_or_children(self, revids, widgets, table):
121
120
        while len(widgets) > 0:
122
121
            widget = widgets.pop()
161
160
        vbox = gtk.VBox(False, 6)
162
161
        vbox.set_border_width(6)
163
162
        vbox.pack_start(self._create_headers(), expand=False, fill=True)
164
 
        vbox.pack_start(self._create_parents_and_children(), expand=False, fill=True)
 
163
        vbox.pack_start(self._create_parents(), expand=False, fill=True)
 
164
        if self.show_children:
 
165
            vbox.pack_start(self._create_children(), expand=False, fill=True)
165
166
        vbox.pack_start(self._create_message_view())
166
167
        self.add_with_viewport(vbox)
167
168
        vbox.show()
272
273
        return self.table
273
274
 
274
275
    
275
 
    def _create_parents_and_children(self):
276
 
        hbox = gtk.HBox(True, 6)
 
276
    def _create_parents(self):
 
277
        hbox = gtk.HBox(True, 3)
277
278
        
278
279
        self.parents_table = self._create_parents_or_children_table(
279
280
            "<b>Parents:</b>")
280
281
        self.parents_widgets = []
281
282
        hbox.pack_start(self.parents_table)
282
 
        
283
 
        if self.show_children:
284
 
            self.children_table = self._create_parents_or_children_table(
285
 
                "<b>Children:</b>")
286
 
            self.children_widgets = []
287
 
            hbox.pack_start(self.children_table)
288
 
        
 
283
 
 
284
        hbox.show()
 
285
        return hbox
 
286
 
 
287
    def _create_children(self):
 
288
        hbox = gtk.HBox(True, 3)
 
289
        self.children_table = self._create_parents_or_children_table(
 
290
            "<b>Children:</b>")
 
291
        self.children_widgets = []
 
292
        hbox.pack_start(self.children_table)
289
293
        hbox.show()
290
294
        return hbox
291
295