예제 #1
0
void tcontrol::set_members(const string_map& data)
{
	/** @todo document this feature on the wiki. */
	/** @todo do we need to add the debug colors here as well? */
	string_map::const_iterator itor = data.find("id");
	if(itor != data.end()) {
		set_id(itor->second);
	}

	itor = data.find("linked_group");
	if(itor != data.end()) {
		set_linked_group(itor->second);
	}

	itor = data.find("label");
	if(itor != data.end()) {
		set_label(itor->second);
	}

	itor = data.find("tooltip");
	if(itor != data.end()) {
		set_tooltip(itor->second);
	}

	itor = data.find("help");
	if(itor != data.end()) {
		set_help_message(itor->second);
	}

	itor = data.find("use_markup");
	if(itor != data.end()) {
		set_use_markup(utils::string_bool(itor->second));
	}
}
예제 #2
0
ToolboxItemWidget::ToolboxItemWidget(const Glib::ustring & title)
    : Gtk::Expander(Glib::ustring("<b>") + title + "</b>")
{
    set_expanded(true);
    set_use_markup(true);
}
void tdrop_button::set_label(const t_string& str) {
	set_use_markup(true);
	std::string s = transform_(str)["drop_button"]["label"];
	super::set_label(s);
}