0

How can I add image before the label like a warning sign?? and how can I make bold the label?? Thanks!

OkCancelDialog::OkCancelDialog():Gtk::Dialog( "Clear all calls", false ){
	Gtk::VBox * vbox = get_vbox();
	Gtk::Table * table = new Gtk::Table( 2, 1, false );
	Gtk::Label * label = new Gtk::Label( "Please Confirm..." );
	//Gtk::Image * image = new Gtk::Image("dialog-warning.png");    <----this is wrong!

	vbox->pack_start( *table, false, false );
	
	add_button( Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL );
	add_button( Gtk::Stock::OK, Gtk::RESPONSE_OK );
	//table->attach( *image, 0, 1, 1, 2 );
	table->attach( *label,  1, 2, 1, 2 );
	vbox->show_all();
	set_default_size(100, 80);
}
2
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by Nick Evan
0

and please can someone tell me how this code done:

list< MRef<PhoneBookPerson *> > persons = phonebook->getPersons();

I dont understand it. Thanks! =)

0

I haven't got a clue. It's not C++, it's probably something from GTK. Where did you get the code from?

help help help

Don't do that. It makes me very sad when people do that.:icon_frown:

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.