~ubuntu-branches/ubuntu/trusty/anjuta/trusty

« back to all changes in this revision

Viewing changes to plugins/am-project/amp-source.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-02-20 22:38:35 UTC
  • mfrom: (1.1.43)
  • Revision ID: package-import@ubuntu.com-20120220223835-ny223imz62qkk9ns
Tags: 2:3.3.90-0ubuntu1
* New upstream release.
* debian/rules: Watch for unstable releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
AnjutaProjectNode*
90
90
amp_source_node_new_valid (GFile *file, AnjutaProjectNodeType type, GError **error)
91
91
{
 
92
        /* Validate source name */
 
93
 
 
94
        if (g_file_query_file_type (file, G_FILE_QUERY_INFO_NONE, NULL) == G_FILE_TYPE_DIRECTORY)
 
95
        {
 
96
                amp_set_error (error, IANJUTA_PROJECT_ERROR_VALIDATION_FAILED,
 
97
                               _("Source file must be a regular file, not a directory"));
 
98
 
 
99
                return NULL;
 
100
        }
 
101
 
92
102
        return amp_source_node_new (file, type);
93
103
}
94
104