public static void Main(string[] args) { Application.Init(); GtkMain win = new GtkMain(); win.Show(); Application.Run(); }
internal ToolbarItem(GtkToolbar toolbar, ToolbarModel model, int i) { this.IconWidget = GtkMain.GetImage(model.GetImageName(i)); this.Index = i; this.Toggled += (sender, e) => { if (!toolbar.Updating) { model.Selected = this.Active ? i : -1; } }; }
private GtkAbout(Window parent) : base("About Toves", parent, 0) { VBox vbox = new VBox(); AddLabel(vbox, string.Format("Toves {0}", GtkMain.Version)); AddLabel(vbox, string.Format("(c) {0}, Carl Burch (<tt>[email protected]</tt>)", GtkMain.CopyrightYear)); AddLabel(vbox, "Released under GPLv3"); AddLabel(vbox, "Information at <i>http://www.toves.org/</i>"); vbox.PackEnd(new Label(""), true, true, 0); HBox hbox = new HBox(); Image img = GtkMain.GetImage("tove.png"); hbox.BorderWidth = 10; hbox.Spacing = 10; hbox.Add(img); hbox.Add(vbox); this.VBox.Add(hbox); this.ShowAll(); }