From 313f68b1a512df25e09cdc4a2042fd1bdefcd13c Mon Sep 17 00:00:00 2001 From: William Joye Date: Mon, 27 Mar 2017 12:01:58 -0400 Subject: gridGC --- tksao/util/gridbase.C | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tksao/util/gridbase.C b/tksao/util/gridbase.C index a941755..389e025 100644 --- a/tksao/util/gridbase.C +++ b/tksao/util/gridbase.C @@ -24,8 +24,7 @@ GridBase::GridBase(Widget* pp) : parent_(pp) line_ = new Attribute(parent_); text_ = new Attribute(parent_); - gridGC_ = XCreateGC(parent_->getDisplay(), Tk_WindowId(parent_->getTkwin()), - 0, NULL); + gridGC_ = NULL; pixmap_ = 0; mode_ = Widget::RGB; @@ -39,8 +38,7 @@ GridBase::GridBase(Widget* pp, const char* op) : parent_(pp) line_ = new Attribute(parent_); text_ = new Attribute(parent_); - gridGC_ = XCreateGC(parent_->getDisplay(), Tk_WindowId(parent_->getTkwin()), - 0, NULL); + gridGC_ = NULL; pixmap_ = 0; mode_ = Widget::RGB; @@ -51,9 +49,6 @@ GridBase::~GridBase() if (option_) delete [] option_; - if (gridGC_) - XFreeGC(parent_->getDisplay(), gridGC_); - if (line_) delete line_; if (text_) -- cgit v0.12