示例#1
0
文件: dialog.cpp 项目: kevL/xoreos
void DialogBox::clear() {
	clearReplies();
	clearEntry();

	setPortrait("");
	setName("");
}
示例#2
0
文件: dialog.cpp 项目: kevL/xoreos
DialogBox::~DialogBox() {
	clearReplies();
	clearEntry();

	delete _name;
	delete _portrait;
}
bool
XWindowsClipboard::destroyRequest(Window requestor)
{
	ReplyMap::iterator index = m_replies.find(requestor);
	if (index == m_replies.end()) {
		// unknown requestor window
		return false;
	}

	// destroy all replies for this window
	clearReplies(index->second);
	m_replies.erase(index);

	// note -- we don't stop watching the window for events because
	// we're called in response to the window being destroyed.

	return true;
}
XWindowsClipboard::~XWindowsClipboard()
{
	clearReplies();
	clearConverters();
}