@@ -561,6 +561,7 @@ def _change_person(self, handle):
561
561
self .write_events (person )
562
562
self .write_album (person )
563
563
self .write_timeline (person )
564
+ self .write_associations (person )
564
565
565
566
#self.stack.set_visible_child_name(self.person_tab)
566
567
@@ -1368,6 +1369,36 @@ def write_media(self, media_list, event):
1368
1369
self .vbox2 .attach_next_to (vbox , image ,
1369
1370
Gtk .PositionType .RIGHT , 1 , 1 )
1370
1371
1372
+ ##############################################################################
1373
+ #
1374
+ # Associations
1375
+ #
1376
+ ##############################################################################
1377
+
1378
+ def write_associations (self , person ):
1379
+
1380
+ self .vbox2 = Gtk .Box (orientation = Gtk .Orientation .VERTICAL )
1381
+
1382
+ scroll = Gtk .ScrolledWindow ()
1383
+ scroll .add (self .vbox2 )
1384
+ scroll .show_all ()
1385
+ self .stack .add_titled (scroll , 'associations' , _ ('Associations' ))
1386
+
1387
+ for person_ref in person .get_person_ref_list ():
1388
+ self .write_association (person_ref )
1389
+
1390
+
1391
+ def write_association (self , person_ref ):
1392
+
1393
+ vbox = self .write_person ('assoc' , person_ref .ref )
1394
+ rel = Gtk .Label (person_ref .rel )
1395
+ rel .set_halign (Gtk .Align .START )
1396
+ vbox .pack_start (rel , False , False , 0 )
1397
+ eventbox = self .make_dragbox (vbox , 'Person' , person_ref .ref )
1398
+ eventbox .show_all ()
1399
+ self .vbox2 .pack_start (eventbox , False , False , 1 )
1400
+
1401
+
1371
1402
##############################################################################
1372
1403
#
1373
1404
# Participants list
0 commit comments