~ubuntu-branches/ubuntu/quantal/colord/quantal-proposed

« back to all changes in this revision

Viewing changes to src/cd-profile-store.c

  • Committer: Package Import Robot
  • Author(s): Sjoerd Simons
  • Date: 2011-10-25 16:21:20 UTC
  • mto: (2.1.1 sid) (1.1.2)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20111025162120-0aypjqn1zx9n6vgf
Tags: upstream-0.1.13
ImportĀ upstreamĀ versionĀ 0.1.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
        if (profile != NULL)
192
192
                goto out;
193
193
 
 
194
        /* is system wide? */
 
195
        profile = cd_profile_new ();
 
196
        if (g_str_has_prefix (filename, "/usr/share/color") ||
 
197
            g_str_has_prefix (filename, "/var/lib/color"))
 
198
                cd_profile_set_is_system_wide (profile, TRUE);
 
199
 
194
200
        /* parse the profile name */
195
 
        profile = cd_profile_new ();
196
201
        ret = cd_profile_set_filename (profile, filename, &error);
197
202
        if (!ret) {
198
203
                g_warning ("CdProfileStore: failed to add profile '%s': %s",