/** * Set Legend * @param $legend frame legend */ public function setLegend($legend) { if (is_string($legend)) { parent::set_label($legend); } else { if ($legend instanceof GtkWidget) { parent::set_label_widget($legend); } } }