Removed infobar from class scope

This commit is contained in:
Timothy Warren 2012-01-30 15:30:34 -05:00
parent bc017737fd
commit 20bf6d7d19
1 changed files with 7 additions and 7 deletions

View File

@ -158,14 +158,14 @@ class Main extends GtkWindow {
*/
private function _create_infobox()
{
$this->infobar = new GtkInfoBar();
$this->messagelabel = new GtkLabel('Welcome to OpenSQLManager!');
$contentarea = $this->infobar->get_content_area();
$contentarea->add($this->messagelabel);
$this->infobar->add_button(GTK::STOCK_OK, GTK::RESPONSE_OK);
$this->infobar->connect_simple('response', array($this->infobar, 'hide'));
$infobar = new GtkInfoBar();
$messagelabel = new GtkLabel('Welcome to OpenSQLManager!');
$contentarea = $infobar->get_content_area();
$contentarea->add($messagelabel);
$infobar->add_button(GTK::STOCK_OK, GTK::RESPONSE_OK);
$infobar->connect_simple('response', array($infobar, 'hide'));
return ($this->infobar);
return ($infobar);
}