From 3e25992f09d7341d827c900389e0de4a78ceca17 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 4 Aug 2014 23:32:59 -0400 Subject: [PATCH] Some slight Area cleanup. --- redo/control_unix.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/redo/control_unix.go b/redo/control_unix.go index 84ef4b7..5531b3c 100644 --- a/redo/control_unix.go +++ b/redo/control_unix.go @@ -35,15 +35,6 @@ func basepreferredSize(c controlPrivate, d *sizing) (int, int) { // The difference? Minimum size takes into account things like truncation with ellipses: the minimum size of a label can allot just the ellipses! // So we use the natural size instead. // There is a warning about height-for-width controls, but in my tests this isn't an issue. - // For Areas, we manually save the Area size and use that, just to be safe. - -//TODO -/* - if s.ctype == c_area { - return s.areawidth, s.areaheight - } -*/ - var r C.GtkRequisition C.gtk_widget_get_preferred_size(c.widget(), nil, &r)