public SourceComboBox() { Clear(); CellRendererPixbuf image = new CellRendererPixbuf(); PackStart(image, false); AddAttribute(image, "pixbuf", 0); CellRendererText text = new CellRendererText(); PackStart(text, true); AddAttribute(text, "text", 1); Model = new SourceModel(); SourceManager.ActiveSourceChanged += delegate { UpdateActiveSource(); }; SourceManager.SourceUpdated += delegate { QueueDraw(); }; }
public SourceComboBox() { Clear(); CellRendererPixbuf image = new CellRendererPixbuf(); PackStart(image, false); AddAttribute(image, "pixbuf", 0); CellRendererText text = new CellRendererText(); PackStart(text, true); AddAttribute(text, "text", 1); Model = new SourceModel(); SourceManager.ActiveSourceChanged += delegate { UpdateActiveSource(); }; SourceManager.SourceUpdated += delegate { QueueDraw(); }; }