diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-03-27 16:01:58 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-03-27 16:01:58 (GMT) |
commit | 313f68b1a512df25e09cdc4a2042fd1bdefcd13c (patch) | |
tree | 0f77b6d424af808c53c77fcc4978d492bd1add44 /tksao | |
parent | 8a531e6830526c70e9d3d2477428bc39ed4b05ea (diff) | |
download | blt-313f68b1a512df25e09cdc4a2042fd1bdefcd13c.zip blt-313f68b1a512df25e09cdc4a2042fd1bdefcd13c.tar.gz blt-313f68b1a512df25e09cdc4a2042fd1bdefcd13c.tar.bz2 |
gridGC
Diffstat (limited to 'tksao')
-rw-r--r-- | tksao/util/gridbase.C | 9 |
1 files 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_) |