namespace Tickypip { using Gtk; public class ImageButton : Button { public ImageButton(string title, Image image) { HBox hbox = new HBox(false, 2); hbox.Show(); Add(hbox); image.Show(); hbox.PackStart(image, false, false, 0); Label label = new Label(title); label.Show(); hbox.PackStart(label, false, true, 0); } public ImageButton(string title, string stockId) : this(title, new Image(stockId, IconSize.Button)) { } } }