]> git.sesse.net Git - vlc/commitdiff
osx dialog provider: minor cleanup
authorFelix Paul Kühne <fkuehne@videolan.org>
Sat, 26 Dec 2009 03:20:19 +0000 (04:20 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 26 Dec 2009 03:20:19 +0000 (04:20 +0100)
modules/gui/macosx_dialog_provider/VLCLoginPanel.m
modules/gui/macosx_dialog_provider/dialogProvider.m

index 81663f845285c487023231105c7420f9963af5e0..856a7031956e78a11e2bed0cf966614d6aeb0957 100644 (file)
                                 defer:YES];
 }
 
-#define addButton( theButton, ox, oy, title, action )           \
-s_rc.origin.x = ox;                                             \
-s_rc.origin.y = oy;                                             \
-s_rc.size.height = 32;                                          \
-s_rc.size.width = 108;                                          \
-theButton = [[NSButton alloc] initWithFrame:s_rc];              \
-[theButton setButtonType:NSMomentaryLightButton];               \
-[theButton setTitle:title];                                     \
-[theButton setBordered:NO];                                     \
-[theButton setTarget:self];                                     \
-[theButton setAction:@selector(action:)];                       \
-[ourContentView addSubview:theButton]
-
 - (void)createContentView
 {
     NSRect s_rc = [self frame];
index d997292fc9195e77a8d66ae8b3b9899a68cc79d7..26be3461fe7ae612a4c7e8c9d1ef8e8987f6ea3b 100644 (file)
@@ -86,7 +86,6 @@ int OpenIntf(vlc_object_t *p_this)
 
     memset(p_intf->p_sys,0,sizeof(*p_intf->p_sys));
 
-//    p_intf->b_should_run_on_first_thread = true;
     p_intf->pf_run = Run;
 
     msg_Dbg(p_intf,"Opening Mac OS X dialog provider");