From bfdbb36ff8b2e79e7654bc656738ee1b07d83e70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20Paul=20K=C3=BChne?= Date: Sun, 27 Jan 2008 18:49:32 +0000 Subject: [PATCH] macosx: we need to import intf.h before any import of vlc/vlc.h, because it includes config.h --- modules/gui/macosx/bookmarks.h | 1 + modules/gui/macosx/bookmarks.m | 1 - modules/gui/macosx/extended.h | 1 + modules/gui/macosx/extended.m | 1 - modules/gui/macosx/sfilters.h | 5 +++-- modules/gui/macosx/sfilters.m | 38 ++++++++-------------------------- 6 files changed, 14 insertions(+), 33 deletions(-) diff --git a/modules/gui/macosx/bookmarks.h b/modules/gui/macosx/bookmarks.h index 30e48caec9..3cf21cb480 100644 --- a/modules/gui/macosx/bookmarks.h +++ b/modules/gui/macosx/bookmarks.h @@ -22,6 +22,7 @@ *****************************************************************************/ #import +#import "intf.h" #import @interface VLCBookmarks : NSObject diff --git a/modules/gui/macosx/bookmarks.m b/modules/gui/macosx/bookmarks.m index 348e35faec..4a2c15c994 100644 --- a/modules/gui/macosx/bookmarks.m +++ b/modules/gui/macosx/bookmarks.m @@ -35,7 +35,6 @@ *****************************************************************************/ #import "bookmarks.h" -#import "intf.h" #import "wizard.h" #import diff --git a/modules/gui/macosx/extended.h b/modules/gui/macosx/extended.h index c5fc0cccef..b5b7f65169 100644 --- a/modules/gui/macosx/extended.h +++ b/modules/gui/macosx/extended.h @@ -26,6 +26,7 @@ *****************************************************************************/ #import +#import "intf.h" #import @interface VLCExtended : NSObject diff --git a/modules/gui/macosx/extended.m b/modules/gui/macosx/extended.m index b1e506ae92..a21ba53488 100644 --- a/modules/gui/macosx/extended.m +++ b/modules/gui/macosx/extended.m @@ -27,7 +27,6 @@ *****************************************************************************/ #import "extended.h" -#import "intf.h" #import "vout.h" #import #import diff --git a/modules/gui/macosx/sfilters.h b/modules/gui/macosx/sfilters.h index a7ab87ae4f..dec8585d92 100644 --- a/modules/gui/macosx/sfilters.h +++ b/modules/gui/macosx/sfilters.h @@ -1,10 +1,10 @@ /***************************************************************************** * sfilter.h: MacOS X Subpicture filters dialogue ***************************************************************************** - * Copyright (C) 2005-2006 the VideoLAN team + * Copyright (C) 2005-2008 the VideoLAN team * $Id$ * - * Authors: Felix Kühne + * Authors: Felix Paul Kühne * * 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 @@ -22,6 +22,7 @@ *****************************************************************************/ #import +#import "intf.h" #import @interface VLCsFilters : NSObject diff --git a/modules/gui/macosx/sfilters.m b/modules/gui/macosx/sfilters.m index fbeb961c5d..72db2815b3 100644 --- a/modules/gui/macosx/sfilters.m +++ b/modules/gui/macosx/sfilters.m @@ -1,10 +1,10 @@ /***************************************************************************** * sfilter.m: MacOS X Subpicture filters dialogue ***************************************************************************** - * Copyright (C) 2005-2006 the VideoLAN team + * Copyright (C) 2005-2008 the VideoLAN team * $Id$ * - * Authors: Felix Kühne + * Authors: Felix Paul Kühne * * 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 @@ -30,7 +30,6 @@ *****************************************************************************/ #import "sfilters.h" -#import "intf.h" #import /* TODO: @@ -215,8 +214,7 @@ static VLCsFilters *_o_sharedInstance = nil; /* retrieve the time settings */ x = 0; tempInt = config_GetInt( p_intf, "time-color" ); - while( strtol([[[o_colors objectAtIndex:x] objectAtIndex:1] UTF8String], - NULL, 0) != tempInt ) + while( strtol([[[o_colors objectAtIndex:x] objectAtIndex:1] UTF8String], NULL, 0) != tempInt ) { x = (x + 1); @@ -484,38 +482,20 @@ static VLCsFilters *_o_sharedInstance = nil; { if( sender == o_marq_enabled_ckb ) { - if( [o_marq_enabled_ckb state] == NSOnState ) - { - [self changeFiltersString:(char *)"marq" onOrOff:VLC_TRUE]; - } - else - { - [self changeFiltersString:(char *)"marq" onOrOff:VLC_FALSE]; - } + [self changeFiltersString:"marq" onOrOff: [o_marq_enabled_ckb state]]; + [self enableMarq]; } if( sender == o_logo_enabled_ckb ) { - if( [o_logo_enabled_ckb state] == NSOnState ) - { - [self changeFiltersString:(char *)"logo" onOrOff:VLC_TRUE]; - } - else - { - [self changeFiltersString:(char *)"logo" onOrOff:VLC_FALSE]; - } + [self changeFiltersString:"logo" onOrOff: [o_logo_enabled_ckb state]]; + [self enableLogo]; } if( sender == o_time_enabled_ckb ) { - if( [o_time_enabled_ckb state] == NSOnState ) - { - [self changeFiltersString:(char *)"time" onOrOff:VLC_TRUE]; - } - else - { - [self changeFiltersString:(char *)"time" onOrOff:VLC_FALSE]; - } + [self changeFiltersString:"time" onOrOff: [o_time_enabled_ckb state]]; + [self enableTime]; } } -- 2.39.2