function setPreferencesNoticeBox($msg, $color = false) { global $dialogPreferences, $gui; if ($msg === false) { $dialogPreferences->get_widget('_noticeBar')->hide(); return; } $color = $color ?: $gui['CNoticeBarBG']; gtColor($dialogPreferences->get_widget('_noticeBar'), 'bg', $color); gtSetText($dialogPreferences->get_widget('_noticeLabel'), $msg); $dialogPreferences->get_widget('_noticeBar')->show(); }
function setTopBar($label, $icon) { global $glade, $_topLabel, $_topIcon, $_infoTipBox, $_infoHBox; $glade->get_widget('_btnTopURL')->hide(); // hide the link which is shown only after upload $_infoTipBox->hide(); // hide tip of the day and show info bar $_infoHBox->show(); gtIcon($_topIcon, $icon); gtSetText($_topLabel, $label); }