Exemplo n.º 1
0
OneMoment::OneMoment():
	Gtk::Window(Gtk::WINDOW_TOPLEVEL)
{
	// Create the Label
	Gtk::Label *label = manage(new class Gtk::Label(_("One Moment, Please...")));

	set_title(_("Working..."));
	set_modal(true);
	set_decorated(0);
	property_window_position().set_value(Gtk::WIN_POS_CENTER);
	set_resizable(false);
	add(*label);

	Pango::AttrList attr_list;
	Pango::AttrInt pango_size(Pango::Attribute::create_attr_size(Pango::SCALE*16));
	pango_size.set_start_index(0);
	pango_size.set_end_index(64);
	attr_list.change(pango_size);

	label->set_attributes(attr_list);

	label->set_size_request(400,60);

	set_transient_for((Gtk::Window&)(*App::main_window));
	
	// show everything off
	show_all();

	present();
	while(studio::App::events_pending())studio::App::iteration(false);
}
Exemplo n.º 2
0
/* === M E T H O D S ======================================================= */
void 
Widget_ColorEdit::SliderRow(int i,ColorSlider * n, char * l, Pango::AttrList & attr_list, Gtk::Table* table)
{
	Gtk::Label *label;
	n->signal_slider_moved().connect(sigc::mem_fun(*this,&studio::Widget_ColorEdit::on_slider_moved));
	//n->signal_activated().connect(sigc::mem_fun(*this,&studio::Widget_ColorEdit::activated));
	n->signal_activated().connect(sigc::mem_fun(*this,&studio::Widget_ColorEdit::on_value_changed));
	label=manage(new class Gtk::Label(l,0.0,0.5));
	label->set_use_markup(false);
	label->set_use_underline(false);
	label->set_attributes(attr_list);
	table->attach(*label, 0, 1, 1+2*i, 2+2*i, Gtk::EXPAND|Gtk::FILL, Gtk::EXPAND|Gtk::FILL, 0, 0);
	table->attach(*n, 0, 1, 2+2*i, 3+2*i, Gtk::EXPAND|Gtk::FILL, Gtk::EXPAND|Gtk::FILL, 0, 0);
}