mwindow->theme->mstatus_cancel_x,
mwindow->theme->mstatus_cancel_y));
//printf("StatusBar::create_objects 1\n");
- default_message();
+ reset_default_message();
flash();
}
flash(0);
}
-void StatusBar::set_message(char *text)
+void StatusBar::show_message(const char *text, int color)
{
+ if( color < 0 ) color = mwindow->theme->message_normal;
+ status_text->set_color(color);
status_text->update(text);
}
-
+void StatusBar::reset_default_message()
+{
+ status_color = -1;
+ strcpy(default_msg, _("Welcome to Cinelerra."));
+}
+void StatusBar::update_default_message()
+{
+ status_color = status_text->get_color();
+ strcpy(default_msg, status_text->get_text());
+}
void StatusBar::default_message()
{
- status_text->set_color(mwindow->theme->message_normal);
- status_text->update(_("Welcome to Cinelerra."));
+ show_message(default_msg, status_color);
}
-
StatusBarCancel::StatusBarCancel(MWindow *mwindow, int x, int y)
: BC_Button(x, y, mwindow->theme->statusbar_cancel_data)
{