Commit bfdbb36f authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: we need to import intf.h before any import of vlc/vlc.h, because it includes config.h

parent a0e5fe35
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
*****************************************************************************/ *****************************************************************************/
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#import "intf.h"
#import <vlc/vlc.h> #import <vlc/vlc.h>
@interface VLCBookmarks : NSObject @interface VLCBookmarks : NSObject
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
*****************************************************************************/ *****************************************************************************/
#import "bookmarks.h" #import "bookmarks.h"
#import "intf.h"
#import "wizard.h" #import "wizard.h"
#import <vlc_interface.h> #import <vlc_interface.h>
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
*****************************************************************************/ *****************************************************************************/
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#import "intf.h"
#import <vlc/vlc.h> #import <vlc/vlc.h>
@interface VLCExtended : NSObject @interface VLCExtended : NSObject
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
*****************************************************************************/ *****************************************************************************/
#import "extended.h" #import "extended.h"
#import "intf.h"
#import "vout.h" #import "vout.h"
#import <vlc_aout.h> #import <vlc_aout.h>
#import <vlc_vout.h> #import <vlc_vout.h>
......
/***************************************************************************** /*****************************************************************************
* sfilter.h: MacOS X Subpicture filters dialogue * sfilter.h: MacOS X Subpicture filters dialogue
***************************************************************************** *****************************************************************************
* Copyright (C) 2005-2006 the VideoLAN team * Copyright (C) 2005-2008 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Felix Kühne <fkuehne@users.sf.net> * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
*****************************************************************************/ *****************************************************************************/
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#import "intf.h"
#import <vlc/vlc.h> #import <vlc/vlc.h>
@interface VLCsFilters : NSObject @interface VLCsFilters : NSObject
......
/***************************************************************************** /*****************************************************************************
* sfilter.m: MacOS X Subpicture filters dialogue * sfilter.m: MacOS X Subpicture filters dialogue
***************************************************************************** *****************************************************************************
* Copyright (C) 2005-2006 the VideoLAN team * Copyright (C) 2005-2008 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Felix Kühne <fkuehne@users.sf.net> * Authors: Felix Paul Kühne <fkuehne -at -videolan -dot- org>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
*****************************************************************************/ *****************************************************************************/
#import "sfilters.h" #import "sfilters.h"
#import "intf.h"
#import <vlc_vout.h> #import <vlc_vout.h>
/* TODO: /* TODO:
...@@ -215,8 +214,7 @@ static VLCsFilters *_o_sharedInstance = nil; ...@@ -215,8 +214,7 @@ static VLCsFilters *_o_sharedInstance = nil;
/* retrieve the time settings */ /* retrieve the time settings */
x = 0; x = 0;
tempInt = config_GetInt( p_intf, "time-color" ); tempInt = config_GetInt( p_intf, "time-color" );
while( strtol([[[o_colors objectAtIndex:x] objectAtIndex:1] UTF8String], while( strtol([[[o_colors objectAtIndex:x] objectAtIndex:1] UTF8String], NULL, 0) != tempInt )
NULL, 0) != tempInt )
{ {
x = (x + 1); x = (x + 1);
...@@ -484,38 +482,20 @@ static VLCsFilters *_o_sharedInstance = nil; ...@@ -484,38 +482,20 @@ static VLCsFilters *_o_sharedInstance = nil;
{ {
if( sender == o_marq_enabled_ckb ) if( sender == o_marq_enabled_ckb )
{ {
if( [o_marq_enabled_ckb state] == NSOnState ) [self changeFiltersString:"marq" onOrOff: [o_marq_enabled_ckb state]];
{
[self changeFiltersString:(char *)"marq" onOrOff:VLC_TRUE];
}
else
{
[self changeFiltersString:(char *)"marq" onOrOff:VLC_FALSE];
}
[self enableMarq]; [self enableMarq];
} }
if( sender == o_logo_enabled_ckb ) if( sender == o_logo_enabled_ckb )
{ {
if( [o_logo_enabled_ckb state] == NSOnState ) [self changeFiltersString:"logo" onOrOff: [o_logo_enabled_ckb state]];
{
[self changeFiltersString:(char *)"logo" onOrOff:VLC_TRUE];
}
else
{
[self changeFiltersString:(char *)"logo" onOrOff:VLC_FALSE];
}
[self enableLogo]; [self enableLogo];
} }
if( sender == o_time_enabled_ckb ) if( sender == o_time_enabled_ckb )
{ {
if( [o_time_enabled_ckb state] == NSOnState ) [self changeFiltersString:"time" onOrOff: [o_time_enabled_ckb state]];
{
[self changeFiltersString:(char *)"time" onOrOff:VLC_TRUE];
}
else
{
[self changeFiltersString:(char *)"time" onOrOff:VLC_FALSE];
}
[self enableTime]; [self enableTime];
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment