Search
lxdream.org :: lxdream/src/cocoaui/cocoa_path.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoa_path.c
changeset 770:429ff505c450
prev765:4cd066048203
next881:10b67e485aa4
author nkeynes
date Mon Jul 28 10:13:13 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Move grab management to window
Clear grab if the window loses key focus (probably a good idea in general)
file annotate diff log raw
1.1 --- a/src/cocoaui/cocoa_path.c Wed Jul 23 11:11:30 2008 +0000
1.2 +++ b/src/cocoaui/cocoa_path.c Mon Jul 28 10:13:13 2008 +0000
1.3 @@ -19,7 +19,11 @@
1.4 #include "cocoaui.h"
1.5 #include "config.h"
1.6
1.7 -
1.8 +@interface LxdreamPrefsPathPane: LxdreamPrefsPane
1.9 +{
1.10 +}
1.11 ++ (LxdreamPrefsPathPane *)new;
1.12 +@end
1.13
1.14 @implementation LxdreamPrefsPathPane
1.15 + (LxdreamPrefsPathPane *)new
1.16 @@ -39,7 +43,7 @@
1.17 if( entry->label != NULL ) {
1.18 NSRect frame = NSMakeRect( TEXT_GAP, height -((TEXT_HEIGHT+TEXT_GAP)*i - 2),
1.19 150, LABEL_HEIGHT );
1.20 - NSTextField *label = [self addLabel: NS_(entry->label) withFrame: frame];
1.21 + NSTextField *label = cocoa_gui_add_label(self, NS_(entry->label), frame);
1.22 [label setAlignment: NSRightTextAlignment];
1.23
1.24 frame = NSMakeRect( 150 + (TEXT_GAP*2),
1.25 @@ -70,3 +74,9 @@
1.26 }
1.27 }
1.28 @end
1.29 +
1.30 +
1.31 +NSView *cocoa_gui_create_prefs_path_pane()
1.32 +{
1.33 + return [LxdreamPrefsPathPane new];
1.34 +}
.