xlat default theme name, fix stop blunder
authorGood Guy <good1.2guy@gmail.com>
Fri, 4 Aug 2017 14:41:02 +0000 (08:41 -0600)
committerGood Guy <good1.2guy@gmail.com>
Fri, 4 Aug 2017 14:41:02 +0000 (08:41 -0600)
cinelerra-5.1/cinelerra/mwindow.C
cinelerra-5.1/cinelerra/playtransport.C
cinelerra-5.1/cinelerra/preferences.C
cinelerra-5.1/cinelerra/theme.C

index ce48f12407e82e03ab1b1fb29f6d3c8f4ad03e9a..8824b86872be7cd9430fbdddff51c639a2035935 100644 (file)
@@ -1022,12 +1022,13 @@ void MWindow::init_theme()
                fprintf(stderr, _("MWindow::init_theme: prefered theme %s not found.\n"),
                         preferences->theme);
 
-       if( !theme_plugin && strcasecmp(preferences->theme, DEFAULT_THEME) ) {
+       const char *default_theme = _(DEFAULT_THEME);
+       if( !theme_plugin && strcasecmp(preferences->theme, default_theme) ) {
                fprintf(stderr, _("MWindow::init_theme: trying default theme %s\n"),
-                       DEFAULT_THEME);
+                       default_theme);
                for(int i = 0; i < plugindb->total && !theme_plugin; i++) {
                        if( plugindb->get(i)->theme &&
-                           !strcasecmp(DEFAULT_THEME, plugindb->get(i)->title) )
+                           !strcasecmp(default_theme, plugindb->get(i)->title) )
                                theme_plugin = plugindb->get(i);
                }
        }
index 85fe95a446a9252cd6d5bd935b8cfffc99c6cb0b..991adb9ada070efb187e43ecfbb42715a0a4d3fa 100644 (file)
@@ -216,6 +216,9 @@ int PlayTransport::keypress_event()
                case STOP:
                        command = NORMAL_FWD;
                        break;
+               default:
+                       command = STOP;
+                       break;
                }
                break;
        default:
index c4252072995a531900fd9da4af24874eb30decfe..4e1f204f8cea98dba6e58e4c17323f5d54a22e8e 100644 (file)
@@ -314,7 +314,7 @@ int Preferences::load_defaults(BC_Hash *defaults)
        trap_sigsegv = defaults->get("TRAP_SIGSEGV", trap_sigsegv);
        trap_sigintr = defaults->get("TRAP_SIGINTR", trap_sigintr);
 
-       strcpy(theme, DEFAULT_THEME);
+       strcpy(theme, _(DEFAULT_THEME));
        strcpy(plugin_icons, DEFAULT_PICON);
        defaults->get("THEME", theme);
        defaults->get("PLUGIN_ICONS", plugin_icons);
index 827d5b9eeaa049ddcf2b1903652c725c5bc4ae2a..1e2b161dd25fd49e403cf863168d36e57fe448e2 100644 (file)
@@ -65,7 +65,7 @@ Theme::Theme()
        window_border = 10;
        widget_border = 5;
        this->mwindow = 0;
-       theme_title = DEFAULT_THEME;
+       theme_title = _(DEFAULT_THEME);
        data_buffer = 0;
        contents_buffer = 0;
        last_image = 0;