~deja-dup-hackers/deja-dup/32

« back to all changes in this revision

Viewing changes to deja-dup/widgets/ConfigLocationGDrive.vala

  • Committer: Michael Terry
  • Date: 2014-04-29 02:38:47 UTC
  • mfrom: (1377.1.1 deja-dup)
  • Revision ID: michael.terry@canonical.com-20140429023847-kteaitzmd0ta61ld
Add Google Drive support

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: Vala; indent-tabs-mode: nil; tab-width: 2 -*- */
 
2
/*
 
3
    This file is part of Déjà Dup.
 
4
    For copyright information, see AUTHORS.
 
5
 
 
6
    Déjà Dup is free software: you can redistribute it and/or modify
 
7
    it under the terms of the GNU General Public License as published by
 
8
    the Free Software Foundation, either version 3 of the License, or
 
9
    (at your option) any later version.
 
10
 
 
11
    Déjà Dup is distributed in the hope that it will be useful,
 
12
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
    GNU General Public License for more details.
 
15
 
 
16
    You should have received a copy of the GNU General Public License
 
17
    along with Déjà Dup.  If not, see <http://www.gnu.org/licenses/>.
 
18
*/
 
19
 
 
20
using GLib;
 
21
 
 
22
namespace DejaDup {
 
23
 
 
24
public class ConfigLocationGDrive : ConfigLocationTable
 
25
{
 
26
  public ConfigLocationGDrive(Gtk.SizeGroup sg) {
 
27
    Object(label_sizes: sg);
 
28
  }
 
29
 
 
30
  construct {
 
31
    add_widget(_("_Email address"),
 
32
               new ConfigEntry(DejaDup.GDRIVE_EMAIL, DejaDup.GDRIVE_ROOT));
 
33
    add_widget(_("_Folder"),
 
34
               new ConfigFolder(DejaDup.GDRIVE_FOLDER, DejaDup.GDRIVE_ROOT));
 
35
  }
 
36
}
 
37
 
 
38
}
 
39