Example #1
0
        // Constructor
        /// <summary>
        ///	Create a <see cref="CoverDatabase"/ > object.
        /// </summary>
        /// <param name="version">
        ///	Version of the database to use.
        /// </param>
        public CoverDatabase(int version)
        {
            db = new Database(FileUtils.CoversDBFile, version);

            covers = new Hashtable();

            // Hack to get the GtkStyle
            Gtk.Label label = new Gtk.Label(String.Empty);
            label.EnsureStyle();

            downloading_pixbuf =
                label.RenderIcon
                    ("muine-cover-downloading", StockIcons.CoverSize, null);

            label.Destroy();

            getter = new CoverGetter(this);
        }