Search
lxdream.org :: lxdream/src/cocoaui/cocoa_path.m :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoa_path.m
changeset 1036:af7b0c5905dd
prev964:f2f3c7612d06
next1039:98b9f0791bff
author nkeynes
date Wed Jun 24 06:06:40 2009 +0000 (13 years ago)
permissions -rw-r--r--
last change Support shell substitutions in config paths
Keep track of last folder in file dialogs
Fix out-of-dateness in GTK path dialog
file annotate diff log raw
1.1 --- a/src/cocoaui/cocoa_path.m Thu Jan 15 04:15:11 2009 +0000
1.2 +++ b/src/cocoaui/cocoa_path.m Wed Jun 24 06:06:40 2009 +0000
1.3 @@ -40,7 +40,7 @@
1.4 int height = [self contentHeight] - TEXT_HEIGHT - TEXT_GAP;
1.5
1.6 for( i=0; i<=CONFIG_KEY_MAX; i++ ) {
1.7 - const struct lxdream_config_entry *entry = lxdream_get_config_entry(i);
1.8 + const struct lxdream_config_entry *entry = lxdream_get_global_config_entry(i);
1.9 if( entry->label != NULL ) {
1.10 NSRect frame = NSMakeRect( TEXT_GAP, height -((TEXT_HEIGHT+TEXT_GAP)*i - 2),
1.11 150, LABEL_HEIGHT );
1.12 @@ -66,7 +66,7 @@
1.13 {
1.14 int tag = [[notify object] tag];
1.15 const char *str = [[[notify object] stringValue] UTF8String];
1.16 - const char *oldval = lxdream_get_config_value(tag);
1.17 + const char *oldval = lxdream_get_global_config_value(tag);
1.18 if( str[0] == '\0' )
1.19 str = NULL;
1.20 if( oldval == NULL ? str != NULL : (str == NULL || strcmp(oldval,str) != 0 ) ) {
.