repair default keyframe load, tweak init default histogram threshold
[goodguy/history.git] / cinelerra-5.1 / cinelerra / statusbar.C
index b2f0bcc618745acb06c6e2627ac6fbd40aeaa2fa..4e86de5916f346b2926d6826cc33993d39dba551 100644 (file)
@@ -72,7 +72,7 @@ void StatusBar::create_objects()
                        mwindow->theme->mstatus_cancel_x,
                        mwindow->theme->mstatus_cancel_y));
 //printf("StatusBar::create_objects 1\n");
-       default_message();
+       reset_default_message();
        flash();
 }
 
@@ -103,18 +103,27 @@ void StatusBar::resize_event()
        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)
 {