#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)
{
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; i<fs.dir_list.total; ++i ) {
char *fs_path = fs.dir_list[i]->path;
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));
}
}
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;
}