#-- This function builds the about window --#
sub build_about {
	#-- Defines the window --#
	my $scrollwin;
	my $aboutwindow = new Gtk::Window('toplevel');

	$aboutwindow->signal_connect("delete_event",sub{$aboutwindow->destroy();});
	$aboutwindow->title("-=[ " . $fromconf{abouttitle} ." " . $fromconf{progname} . " " .$fromconf{version}.  " ]=-");
	$aboutwindow->border_width(2);

	if ($fromconf{lowres} =~ /yes/) {
	 	$aboutwindow->set_default_size(($fromconf{screenwidth} - 10),($fromconf{screenheight} - 10));
	 	$scrollwin = new Gtk::ScrolledWindow("","");
	 	$scrollwin->set_policy("automatic", "automatic");
 		$scrollwin->border_width(2);
 		$aboutwindow->add($scrollwin); 
 		$scrollwin->show();
	}

	#-- Without the realize the pixmap would not work --#
	$aboutwindow->realize();

	#-- create the top and bottom label --#
	my $labeltop = new Gtk::Label ("\nWellenreiter $fromconf{version}\n");
	my $labelbot = new Gtk::Label ("\nBrought to you by:\n". '-=[ http://www.remote-exploit.org ]=- '."\n");
	
	#-- Insert the logo --#
	my ($style, $pixmap, $mask, $pixmapwid);
	$style = $aboutwindow->get_style()->bg('normal');
	($pixmap, $mask) = Gtk::Gdk::Pixmap->create_from_xpm_d ($aboutwindow->window,$style,@g_logo);
	$pixmapwid = new Gtk::Pixmap ($pixmap, $mask);

	#-- Table definition --#
	my $table = new Gtk::Table(4,1,$false);
	
	if ($fromconf{lowres} =~ /yes/) {
		$scrollwin->add_with_viewport($table);
	}
	else {
		$aboutwindow->add ($table);
	}


	#-- Frame and the close button --#
		my $closeframe = new Gtk::Frame ();
		my $closebutton = new Gtk::Button ('Close');
		$closebutton->signal_connect("clicked",sub{$aboutwindow->destroy();});
		$closebutton->set_relief('none');
		$closebutton->show();
		$closeframe->add($closebutton);		

	#-- Place the items --#
	$table->attach_defaults($labeltop, 0,1,0,1);
	$table->attach_defaults($pixmapwid, 0,1,1,2);
	$table->attach_defaults($labelbot, 0,1,2,3);
	$table->attach_defaults($closeframe,0,1,3,4);
	
	#-- Show items --#
	$closeframe->show();
	$labeltop->show();
	$labelbot->show();
	$pixmapwid->show();
	$table->show();
	$aboutwindow->show();
}	
