~ubuntu-branches/debian/squeeze/f-spot/squeeze

« back to all changes in this revision

Viewing changes to extensions/FlickrExport/FlickrNet/FlickrConfigurationManager.cs

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane, Mirco Bauer, Iain Lane
  • Date: 2009-02-07 20:23:32 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20090207202332-oc93rfjo1st0571s
Tags: 0.5.0.3-2
[ Mirco Bauer]
* Upload to unstable.
* debian/control:
  + Lowered GNOME# build-deps to 2.0 ABI as that transition didn't happen
    yet in unstable.

[ Iain Lane ]
* debian/patches/svn-r4545_locales-import.dpatch: Patch backported from SVN
  trunk revision 4545 - initialize the translation catalog earlier (LP: #293305)
  (Closes: #514457). Thanks to Florian Heinle for finding the patch and to
  Chris Coulson for preparing the update.
* debian/control: Build-depend on libmono-dev (>= 1.2.4) to match configure
  checks.
* debian/rules: Pass CSC=/usr/bin/csc to configure for gio-sharp to fix FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
using System;
2
 
using System.Configuration;
3
 
using System.Xml;
4
 
 
5
 
namespace FlickrNet
6
 
{
7
 
        /// <summary>
8
 
        /// Summary description for FlickrConfigurationManager.
9
 
        /// </summary>
10
 
        internal class FlickrConfigurationManager : IConfigurationSectionHandler
11
 
        {
12
 
                private static string ConfigSection = "flickrNet";
13
 
                private static FlickrConfigurationSettings settings;
14
 
 
15
 
                public FlickrConfigurationManager()
16
 
                {
17
 
                }
18
 
 
19
 
                public static FlickrConfigurationSettings Settings
20
 
                {
21
 
                        get     
22
 
                        {
23
 
                                if( settings == null )
24
 
                                {
25
 
                                        settings = (FlickrConfigurationSettings)ConfigurationSettings.GetConfig( ConfigSection );
26
 
                                }
27
 
                                
28
 
                                return settings;
29
 
                        }
30
 
                }
31
 
 
32
 
                public object Create(object parent, object configContext, XmlNode section) 
33
 
                {       
34
 
                        ConfigSection = section.Name;
35
 
                        return new FlickrConfigurationSettings( section );
36
 
                }
37
 
        }
38
 
}