コード例 #1
0
        public SmugMugAddAlbum(SmugMugExport export, SmugMugApi smugmug)
        {
            builder = new GtkBeans.Builder (null, "smugmug_add_album_dialog.ui", null);
            builder.Autoconnect (this);

            this.export = export;
            this.smugmug = smugmug;

            this.category_store = new ListStore (typeof(int), typeof(string));
            CellRendererText display_cell = new CellRendererText();
            category_combo.PackStart (display_cell, true);
            category_combo.SetCellDataFunc (display_cell, new CellLayoutDataFunc (CategoryDataFunc));
            this.category_combo.Model = category_store;
            PopulateCategoryCombo ();

            Dialog.Response += HandleAddResponse;

            title_entry.Changed += HandleChanged;
            HandleChanged (null, null);
        }
コード例 #2
0
		public SmugMugAddAlbum (SmugMugExport export, SmugMugApi smugmug)
		{
			xml = new Glade.XML (null, "SmugMugExport.glade", dialog_name, "f-spot");
			xml.Autoconnect (this);

			this.export = export;
			this.smugmug = smugmug;

			this.category_store = new ListStore (typeof(int), typeof(string));
			CellRendererText display_cell = new CellRendererText();
			category_combo.PackStart (display_cell, true);
			category_combo.SetCellDataFunc (display_cell, new CellLayoutDataFunc (CategoryDataFunc));
			this.category_combo.Model = category_store;
			PopulateCategoryCombo ();

			Dialog.Response += HandleAddResponse;

			title_entry.Changed += HandleChanged;
			HandleChanged (null, null);
		}