~teejee2008/timeshift/trunk

« back to all changes in this revision

Viewing changes to src/RestoreWindow.vala

  • Committer: Tony George
  • Date: 2016-03-28 15:36:17 UTC
  • Revision ID: tony.george.kol@gmail.com-20160328153617-fq5onsoz6dhyfsvt
Added embedded VTE terminal for restoring snapshots

Show diffs side-by-side

added added

removed removed

Lines of Context:
663
663
                        }
664
664
                }
665
665
 
 
666
                string txt = pi.device;
 
667
                
666
668
                if ((App.root_device != null) && (pi.device == App.root_device.device)){
667
 
                        (cell as Gtk.CellRendererText).text = pi.device + " (" + _("sys") + ")" + ((symlink.length > 0) ? " → " + symlink : "");
668
 
                }
669
 
                else{
670
 
                        (cell as Gtk.CellRendererText).text = pi.device + ((symlink.length > 0) ? " → " + symlink : "");
 
669
                        txt += " (" + _("sys") + ")";
671
670
                }
672
671
 
 
672
                if (symlink.length > 0){
 
673
                        txt += " → ";
 
674
                        if (symlink.length > 10){
 
675
                                txt += symlink[0:10] + "...";
 
676
                        }
 
677
                        else{
 
678
                                txt += symlink;
 
679
                        }
 
680
                }
 
681
                
673
682
                Gtk.CellRendererText ctxt = (cell as Gtk.CellRendererText);
 
683
                ctxt.text = txt;
674
684
                set_cell_text_color(ref ctxt);
675
685
        }
676
686