int ShBtnAddButton::handle_event()
{
-
+
Preferences *preferences = sb_window->shbtn_edit->pwindow->thread->preferences;
ShBtnPref *pref = new ShBtnPref(_("new"), "", 0);
preferences->shbtn_prefs.append(pref);
}
ShBtnErrWarn::ShBtnErrWarn(ShBtnTextWindow *st_window, int x, int y)
- : BC_CheckBox(x, y, &st_window->warn, "Warn on err exit")
+ : BC_CheckBox(x, y, &st_window->warn, _("Warn on err exit"))
{
this->st_window = st_window;
}
int MainShBtns::load(Preferences *preferences)
{
- while( total_items() ) remove_item(get_item(0));
+ while( total_items() ) del_item(0);
for( int i=0; i<preferences->shbtn_prefs.size(); ++i )
add_item(new MainShBtnItem(this, preferences->shbtn_prefs[i]));
return 0;