Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

treeview: refactor: move append_column calls together

Changeset 9d4fd081fd1b

Parent 59b594c2aba4

by Adrian Buehlmann

Changes to one file · Browse files at 9d4fd081fd1b Showing diff from parent 59b594c2aba4 Diff from another changeset...

 
414
415
416
417
418
419
420
 
427
428
429
430
431
432
433
 
440
441
442
443
444
445
446
 
453
454
455
456
457
458
459
 
465
466
467
468
469
470
471
 
478
479
480
481
482
483
484
 
491
492
493
494
495
496
497
 
504
505
506
507
508
509
510
 
517
518
519
520
521
522
523
 
530
531
532
 
 
 
 
 
 
 
 
 
 
 
533
534
535
 
414
415
416
 
417
418
419
 
426
427
428
 
429
430
431
 
438
439
440
 
441
442
443
 
450
451
452
 
453
454
455
 
461
462
463
 
464
465
466
 
473
474
475
 
476
477
478
 
485
486
487
 
488
489
490
 
497
498
499
 
500
501
502
 
509
510
511
 
512
513
514
 
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
@@ -414,7 +414,6 @@
  "in-lines", treemodel.LAST_LINES)   self.graph_column.add_attribute(self.graph_cell,   "out-lines", treemodel.LINES) - self.treeview.append_column(self.graph_column)     cell = gtk.CellRendererText()   cell.set_property("width-chars", 8) @@ -427,7 +426,6 @@
  self.rev_column.pack_start(cell, expand=True)   self.rev_column.add_attribute(cell, "text", treemodel.REVID)   self.rev_column.add_attribute(cell, "foreground", treemodel.FGCOLOR) - self.treeview.append_column(self.rev_column)     cell = gtk.CellRendererText()   cell.set_property("width-chars", 15) @@ -440,7 +438,6 @@
  self.id_column.pack_start(cell, expand=True)   self.id_column.add_attribute(cell, "text", treemodel.HEXID)   self.id_column.add_attribute(cell, "foreground", treemodel.FGCOLOR) - self.treeview.append_column(self.id_column)     cell = gtk.CellRendererText()   cell.set_property("width-chars", 15) @@ -453,7 +450,6 @@
  self.branch_column.pack_start(cell, expand=True)   self.branch_column.add_attribute(cell, "foreground", treemodel.FGCOLOR)   self.branch_column.add_attribute(cell, "markup", treemodel.BRANCH) - self.treeview.append_column(self.branch_column)   cell = gtk.CellRendererText()     cell.set_property("width-chars", 80) @@ -465,7 +461,6 @@
  self.msg_column.pack_end(cell, expand=True)   self.msg_column.add_attribute(cell, "foreground", treemodel.FGCOLOR)   self.msg_column.add_attribute(cell, "markup", treemodel.MESSAGE) - self.treeview.append_column(self.msg_column)     cell = gtk.CellRendererText()   cell.set_property("width-chars", 20) @@ -478,7 +473,6 @@
  self.committer_column.add_attribute(cell, "text", treemodel.COMMITER)   self.committer_column.add_attribute(cell, "foreground",   treemodel.FGCOLOR) - self.treeview.append_column(self.committer_column)     cell = gtk.CellRendererText()   cell.set_property("width-chars", 20) @@ -491,7 +485,6 @@
  self.date_column.pack_start(cell, expand=True)   self.date_column.add_attribute(cell, "text", treemodel.LOCALTIME)   self.date_column.add_attribute(cell, "foreground", treemodel.FGCOLOR) - self.treeview.append_column(self.date_column)     cell = gtk.CellRendererText()   cell.set_property("width-chars", 20) @@ -504,7 +497,6 @@
  self.utc_column.pack_start(cell, expand=True)   self.utc_column.add_attribute(cell, "text", treemodel.UTC)   self.utc_column.add_attribute(cell, "foreground", treemodel.FGCOLOR) - self.treeview.append_column(self.utc_column)     cell = gtk.CellRendererText()   cell.set_property("width-chars", 10) @@ -517,7 +509,6 @@
  self.age_column.pack_start(cell, expand=True)   self.age_column.add_attribute(cell, "text", treemodel.AGE)   self.age_column.add_attribute(cell, "foreground", treemodel.FGCOLOR) - self.treeview.append_column(self.age_column)     cell = gtk.CellRendererText()   cell.set_property("width-chars", 10) @@ -530,6 +521,17 @@
  self.tag_column.pack_start(cell, expand=True)   self.tag_column.add_attribute(cell, "text", treemodel.TAGS)   self.tag_column.add_attribute(cell, "foreground", treemodel.FGCOLOR) + + # append columns + self.treeview.append_column(self.graph_column) + self.treeview.append_column(self.rev_column) + self.treeview.append_column(self.id_column) + self.treeview.append_column(self.branch_column) + self.treeview.append_column(self.msg_column) + self.treeview.append_column(self.committer_column) + self.treeview.append_column(self.date_column) + self.treeview.append_column(self.utc_column) + self.treeview.append_column(self.age_column)   self.treeview.append_column(self.tag_column)     def text_color_orig(self, parents, rev, author):