~vcs-imports/f-spot/main

« back to all changes in this revision

Viewing changes to src/Core/Photo.cs

  • Committer: sdelcroix
  • Date: 2009-04-01 13:52:58 UTC
  • Revision ID: vcs-imports@canonical.com-20090401135258-88mvx6vztvlyhr7p
2009-04-01  Stephane delcroix  <sdelcroix@novell.com>

        * src/Preferences.cs:
        * src/Core/Photo.cs:
        * src/MainWindow.cs: Allow creation of .xcf version of file from the
        "Open With" menu. Require a pixbuf loader for xcf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
506
506
                        }
507
507
                }
508
508
        
509
 
                public uint CreateNamedVersion (string name, uint base_version_id, bool create_file)
 
509
                public uint CreateNamedVersion (string name, uint baseVersionId, bool createFile)
 
510
                {
 
511
                        return CreateNamedVersion (name, baseVersionId, createFile);
 
512
                }
 
513
 
 
514
                public uint CreateNamedVersion (string name, string extension, uint base_version_id, bool create_file)
510
515
                {
511
516
                        int num = 1;
512
517
                        
517
522
                                                num, name);
518
523
        
519
524
                                if (! VersionNameExists (final_name))
520
 
                                        return CreateVersion (final_name, base_version_id, create_file);
 
525
                                        return CreateVersion (final_name, extension, base_version_id, create_file);
521
526
        
522
527
                                num ++;
523
528
                        }