From 99b6b47a4963a84eab6aa0a941b7da5253399975 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 2 Aug 2014 01:14:09 -0400 Subject: Migrated the GTK+ backend to the new sizer system. --- redo/sizing_unix.go | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 redo/sizing_unix.go (limited to 'redo/sizing_unix.go') diff --git a/redo/sizing_unix.go b/redo/sizing_unix.go deleted file mode 100644 index 5fa7fac..0000000 --- a/redo/sizing_unix.go +++ /dev/null @@ -1,40 +0,0 @@ -// +build !windows,!darwin - -// 23 february 2014 - -package ui - -// #include "gtk_unix.h" -import "C" - -type sizing struct { - sizingbase - - // for size calculations - // gtk+ needs nothing - - // for the actual resizing - shouldVAlignTop bool -} - -const ( - gtkXMargin = 12 - gtkYMargin = 12 - gtkXPadding = 12 - gtkYPadding = 6 -) - -func (c *container) beginResize() (d *sizing) { - d = new(sizing) - if spaced { - d.xmargin = gtkXMargin - d.ymargin = gtkYMargin - d.xpadding = gtkXPadding - d.ypadding = gtkYPadding - } - return d -} - -func (c *container) translateAllocationCoords(allocations []*allocation, winwidth, winheight int) { - // no need for coordinate conversion with gtk+ -} -- cgit v1.2.3