Modified: trunk/programs/ide/lib/ide_notebook.class.php (88 => 89)
--- trunk/programs/ide/lib/ide_notebook.class.php 2007-01-05 14:31:27 UTC (rev 88)
+++ trunk/programs/ide/lib/ide_notebook.class.php 2007-01-05 14:34:13 UTC (rev 89)
@@ -36,11 +36,11 @@
$label->show();
$button->show();
$id = $this->append_page($view,$hbox);
- $this->set_current_page($id);
$view->set_data('tab_id',self::$count);
$button->connect('clicked', array($this,'tab_close'),$view);
$this->buffers[self::$count] = $buffer;
$this->show_all();
+ $this->set_current_page($id);
}
public function tab_close($button, $view){
@@ -76,12 +76,12 @@
$label->show();
$button->show();
$id = $this->append_page($view,$hbox);
- $this->set_current_page($id);
//$button->set_data('tab_id',self::$count);
$view->set_data('tab_id',self::$count);
$button->connect('clicked', array($this,'tab_close'),$view);
$this->buffers[self::$count] = $buffer;
$this->show_all();
+ $this->set_current_page($id);
}
}