Skip to content

Instantly share code, notes, and snippets.

View acsellers's full-sized avatar

Andrew Sellers acsellers

View GitHub Profile
@acsellers
acsellers / go-gtk_vs_gg.go
Created July 13, 2012 03:46
A gtk interface for Go that feels right
//go-gtk
func on_window_resize(){
window := gtk.WidgetFromObject(builder.GetObject("main_window"))
switcher := gtk.WidgetFromObject(builder.GetObject("main_switcher"))
vline := gtk.WidgetFromObject(builder.GetObject("vline"))
win_alloc := new(gtk.GtkAllocation)
window.GetAllocation(win_alloc)
sw_alloc := new(gtk.GtkAllocation)
switcher.GetAllocation(sw_alloc)