~ubuntu-branches/ubuntu/saucy/deja-dup/saucy

« back to all changes in this revision

Viewing changes to widgets/ConfigEntry.vala

  • Committer: Package Import Robot
  • Author(s): Michael Terry
  • Date: 2013-02-04 15:12:32 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20130204151232-3xr9quxod9pltlro
Tags: 25.5-0ubuntu1
* New upstream release
  - Use same partition for temp files as include files (to avoid problems
    with tiny /tmp partitions like tmpfs).  LP: #1100092
  - Tell GNOME 3 about notifications, so the user can disable them
  - Always exclude /run (in case user includes /)
* debian/rules:
  - Be explicit about what features we turn on (ccpanel, nautilus, unity)
* debian/control:
  - Require duplicity 0.6.21

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
public class ConfigEntry : ConfigWidget
25
25
{
26
 
  public ConfigEntry(string key, string ns="")
 
26
  public bool is_uri {get; set;}
 
27
 
 
28
  public ConfigEntry(string key, string ns="", bool is_uri=false)
27
29
  {
28
 
    Object(key: key, ns: ns);
 
30
    Object(key: key, ns: ns, is_uri: is_uri);
29
31
  }
30
32
  
31
33
  public string get_text()
52
54
 
53
55
  protected override async void set_from_config()
54
56
  {
55
 
    var val = settings.get_string(key);
56
 
    if (val == null)
57
 
      val = "";
 
57
    var val = is_uri ? settings.get_uri(key) : settings.get_string(key);
58
58
    entry.set_text(val);
59
59
  }
60
60