X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fappearanceprefs.C;h=0bf2e4f5ea008ac4605eef52263ade677e7d9515;hb=6338f0b010dfd93ae6a823970d853cfdd5279500;hp=46badb85276be26b9a0c7e14bdfdcf0bc6b45558;hpb=b5c58822be78c8820692c916e296a2230bb2b9e2;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/appearanceprefs.C b/cinelerra-5.1/cinelerra/appearanceprefs.C index 46badb85..0bf2e4f5 100644 --- a/cinelerra-5.1/cinelerra/appearanceprefs.C +++ b/cinelerra-5.1/cinelerra/appearanceprefs.C @@ -33,12 +33,6 @@ #include "theme.h" -#define MOVE_ALL_EDITS_TITLE N_("Drag all following edits") -#define MOVE_ONE_EDIT_TITLE N_("Drag only one edit") -#define MOVE_NO_EDITS_TITLE N_("Drag source only") -#define MOVE_EDITS_DISABLED_TITLE N_("No effect") - - AppearancePrefs::AppearancePrefs(MWindow *mwindow, PreferencesWindow *pwindow) : PreferencesDialog(mwindow, pwindow) { @@ -332,14 +326,15 @@ void ViewPluginIcons::create_objects() add_item(new ViewPluginIconItem(this, DEFAULT_PICON)); FileSystem fs; const char *plugin_path = File::get_plugin_path(); - if( fs.update(plugin_path) ) return; + char picon_path[BCTEXTLEN]; + snprintf(picon_path,sizeof(picon_path)-1,"%s/picon", plugin_path); + if( fs.update(picon_path) ) return; for( int i=0; ipath; if( !fs.is_dir(fs_path) ) continue; char *cp = strrchr(fs_path,'/'); cp = !cp ? fs_path : cp+1; - if( strncmp("picon_", cp, 6) ) continue; - if( !strcmp(cp += 6,DEFAULT_PICON) ) continue; + if( !strcmp(cp,DEFAULT_PICON) ) continue; add_item(new ViewPluginIconItem(this, cp)); } } @@ -516,7 +511,12 @@ HighlightInverseColor::HighlightInverseColor(PreferencesWindow *pwindow, int x, int HighlightInverseColor::handle_event() { int inverse_color = strtoul(get_text(),0,16); - inverse_color &= 0xffffff; + if( (inverse_color &= 0xffffff) == 0 ) { + inverse_color = 0xffffff; + char string[BCSTRLEN]; + sprintf(string,"%06x", inverse_color); + update(string); + } pwindow->thread->preferences->highlight_inverse = inverse_color; return 1; }