~mrooney/ecryptfs/nautilus-integration

« back to all changes in this revision

Viewing changes to src/python/nautilus/storage.py

  • Committer: Michael Rooney
  • Date: 2009-05-28 10:40:56 UTC
  • Revision ID: mrooney@ubuntu.com-20090528104056-mqirt68bbs3quj5t
reflect api changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    def __toggle_state(self, button):
71
71
        """Toggle the connectivity state."""
72
72
        if self.__mounted:
73
 
            ecryptapi.setMounted(False)
 
73
            ecryptapi.set_mounted(False)
74
74
        else:
75
 
            ecryptapi.setMounted(True)
 
75
            ecryptapi.set_mounted(True)
76
76
 
77
77
        self.__update_status()
78
78
        
81
81
 
82
82
    def __update_status(self):
83
83
        """Update the label, and button when connection status changes."""
84
 
        self.__mounted = ecryptapi.getMounted()
 
84
        self.__mounted = ecryptapi.get_mounted()
85
85
        if self.__mounted:
86
86
            label = "Lock directory"
87
87
            img = LOCK_SECURE_SMALL