Removed infobar from class scope
This commit is contained in:
parent
bc017737fd
commit
20bf6d7d19
@ -158,14 +158,14 @@ class Main extends GtkWindow {
|
|||||||
*/
|
*/
|
||||||
private function _create_infobox()
|
private function _create_infobox()
|
||||||
{
|
{
|
||||||
$this->infobar = new GtkInfoBar();
|
$infobar = new GtkInfoBar();
|
||||||
$this->messagelabel = new GtkLabel('Welcome to OpenSQLManager!');
|
$messagelabel = new GtkLabel('Welcome to OpenSQLManager!');
|
||||||
$contentarea = $this->infobar->get_content_area();
|
$contentarea = $infobar->get_content_area();
|
||||||
$contentarea->add($this->messagelabel);
|
$contentarea->add($messagelabel);
|
||||||
$this->infobar->add_button(GTK::STOCK_OK, GTK::RESPONSE_OK);
|
$infobar->add_button(GTK::STOCK_OK, GTK::RESPONSE_OK);
|
||||||
$this->infobar->connect_simple('response', array($this->infobar, 'hide'));
|
$infobar->connect_simple('response', array($infobar, 'hide'));
|
||||||
|
|
||||||
return ($this->infobar);
|
return ($infobar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user