Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
f38481fd
Commit
f38481fd
authored
Apr 28, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fixed compilation under linux
* added a flag GTK2_SKINS
parent
d01ae076
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
45 additions
and
34 deletions
+45
-34
configure.ac.in
configure.ac.in
+1
-1
modules/gui/skins/gtk2/gtk2_api.cpp
modules/gui/skins/gtk2/gtk2_api.cpp
+2
-2
modules/gui/skins/gtk2/gtk2_bitmap.cpp
modules/gui/skins/gtk2/gtk2_bitmap.cpp
+2
-2
modules/gui/skins/gtk2/gtk2_dragdrop.cpp
modules/gui/skins/gtk2/gtk2_dragdrop.cpp
+2
-2
modules/gui/skins/gtk2/gtk2_event.cpp
modules/gui/skins/gtk2/gtk2_event.cpp
+2
-2
modules/gui/skins/gtk2/gtk2_font.cpp
modules/gui/skins/gtk2/gtk2_font.cpp
+2
-2
modules/gui/skins/gtk2/gtk2_graphics.cpp
modules/gui/skins/gtk2/gtk2_graphics.cpp
+2
-2
modules/gui/skins/gtk2/gtk2_run.cpp
modules/gui/skins/gtk2/gtk2_run.cpp
+2
-2
modules/gui/skins/gtk2/gtk2_theme.cpp
modules/gui/skins/gtk2/gtk2_theme.cpp
+2
-2
modules/gui/skins/gtk2/gtk2_window.cpp
modules/gui/skins/gtk2/gtk2_window.cpp
+2
-2
modules/gui/skins/os_bitmap.h
modules/gui/skins/os_bitmap.h
+2
-2
modules/gui/skins/os_event.h
modules/gui/skins/os_event.h
+2
-2
modules/gui/skins/os_font.h
modules/gui/skins/os_font.h
+2
-2
modules/gui/skins/os_graphics.h
modules/gui/skins/os_graphics.h
+2
-2
modules/gui/skins/os_theme.h
modules/gui/skins/os_theme.h
+2
-2
modules/gui/skins/os_window.h
modules/gui/skins/os_window.h
+2
-2
modules/gui/skins/src/skin_main.cpp
modules/gui/skins/src/skin_main.cpp
+2
-2
modules/gui/skins/src/window.cpp
modules/gui/skins/src/window.cpp
+12
-1
No files found.
configure.ac.in
View file @
f38481fd
...
@@ -2396,7 +2396,7 @@ if test "x${enable_skins}" != "xno"; then
...
@@ -2396,7 +2396,7 @@ if test "x${enable_skins}" != "xno"; then
if test "x${enable_skins}" = "xyes"; then
if test "x${enable_skins}" = "xyes"; then
PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.0.0, gthread-2.0])
PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.0.0, gthread-2.0])
PLUGINS="${PLUGINS} skins"
PLUGINS="${PLUGINS} skins"
CPPFLAGS_skins="${CPPFLAGS_skins} -O2 -fno-rtti -Imodules/gui/skins -Imodules/gui/skins/src -Imodules/gui/skins/gtk2 -Imodules/gui/skins/controls -Imodules/gui/skins/parser ${GTK2_CFLAGS}"
CPPFLAGS_skins="${CPPFLAGS_skins} -O2 -fno-rtti -Imodules/gui/skins -Imodules/gui/skins/src -Imodules/gui/skins/gtk2 -Imodules/gui/skins/controls -Imodules/gui/skins/parser ${GTK2_CFLAGS}
-DGTK2_SKINS
"
LDFLAGS_skins="${LDFLAGS_skins} -lstdc++ ${GTK2_LIBS}"
LDFLAGS_skins="${LDFLAGS_skins} -lstdc++ ${GTK2_LIBS}"
fi
fi
fi
fi
...
...
modules/gui/skins/gtk2/gtk2_api.cpp
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_api.cpp: Various gtk2-specific functions
* gtk2_api.cpp: Various gtk2-specific functions
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_api.cpp,v 1.1
5 2003/04/24 14:38:06
asmax Exp $
* $Id: gtk2_api.cpp,v 1.1
6 2003/04/28 12:00:13
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
* USA.
* USA.
*****************************************************************************/
*****************************************************************************/
#if
!defined WIN32
#if
def GTK2_SKINS
//--- GTK2 ------------------------------------------------------------------
//--- GTK2 ------------------------------------------------------------------
#include <glib.h>
#include <glib.h>
...
...
modules/gui/skins/gtk2/gtk2_bitmap.cpp
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_bitmap.cpp: GTK2 implementation of the Bitmap class
* gtk2_bitmap.cpp: GTK2 implementation of the Bitmap class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_bitmap.cpp,v 1.1
6 2003/04/21 18:39:38
asmax Exp $
* $Id: gtk2_bitmap.cpp,v 1.1
7 2003/04/28 12:00:13
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
* USA.
* USA.
*****************************************************************************/
*****************************************************************************/
#if
!defined WIN32
#if
def GTK2_SKINS
//--- GTK2 -----------------------------------------------------------------
//--- GTK2 -----------------------------------------------------------------
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
...
...
modules/gui/skins/gtk2/gtk2_dragdrop.cpp
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_dragdrop.cpp: GTK2 implementation of the drag & drop
* gtk2_dragdrop.cpp: GTK2 implementation of the drag & drop
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_dragdrop.cpp,v 1.
5 2003/04/19 11:46:11
asmax Exp $
* $Id: gtk2_dragdrop.cpp,v 1.
6 2003/04/28 12:00:13
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
* USA.
* USA.
*****************************************************************************/
*****************************************************************************/
#if
!defined WIN32
#if
def GTK2_SKINS
//--- GTK2 -----------------------------------------------------------------
//--- GTK2 -----------------------------------------------------------------
#include <gdk/gdk.h>
#include <gdk/gdk.h>
...
...
modules/gui/skins/gtk2/gtk2_event.cpp
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_event.cpp: GTK2 implementation of the Event class
* gtk2_event.cpp: GTK2 implementation of the Event class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_event.cpp,v 1.1
1 2003/04/21 21:51:16
asmax Exp $
* $Id: gtk2_event.cpp,v 1.1
2 2003/04/28 12:00:13
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
* USA.
* USA.
*****************************************************************************/
*****************************************************************************/
#if
!defined WIN32
#if
def GTK2_SKINS
//--- GTK2 -----------------------------------------------------------------
//--- GTK2 -----------------------------------------------------------------
#include <gdk/gdk.h>
#include <gdk/gdk.h>
...
...
modules/gui/skins/gtk2/gtk2_font.cpp
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_font.cpp: GTK2 implementation of the Font class
* gtk2_font.cpp: GTK2 implementation of the Font class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_font.cpp,v 1.1
3 2003/04/21 22:12:37
asmax Exp $
* $Id: gtk2_font.cpp,v 1.1
4 2003/04/28 12:00:13
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
* USA.
* USA.
*****************************************************************************/
*****************************************************************************/
#if
!defined WIN32
#if
def GTK2_SKINS
//--- GTK2 -----------------------------------------------------------------
//--- GTK2 -----------------------------------------------------------------
#include <gdk/gdk.h>
#include <gdk/gdk.h>
...
...
modules/gui/skins/gtk2/gtk2_graphics.cpp
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_graphics.cpp: GTK2 implementation of the Graphics and Region classes
* gtk2_graphics.cpp: GTK2 implementation of the Graphics and Region classes
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_graphics.cpp,v 1.1
5 2003/04/21 21:51:16
asmax Exp $
* $Id: gtk2_graphics.cpp,v 1.1
6 2003/04/28 12:00:13
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
* USA.
* USA.
*****************************************************************************/
*****************************************************************************/
#if
!defined WIN32
#if
def GTK2_SKINS
//--- GTK2 -----------------------------------------------------------------
//--- GTK2 -----------------------------------------------------------------
#include <gdk/gdk.h>
#include <gdk/gdk.h>
...
...
modules/gui/skins/gtk2/gtk2_run.cpp
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_run.cpp:
* gtk2_run.cpp:
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_run.cpp,v 1.2
0 2003/04/21 21:51:16
asmax Exp $
* $Id: gtk2_run.cpp,v 1.2
1 2003/04/28 12:00:13
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
* USA.
* USA.
*****************************************************************************/
*****************************************************************************/
#if
!defined WIN32
#if
def GTK2_SKINS
//--- GTK2 ------------------------------------------------------------------
//--- GTK2 ------------------------------------------------------------------
#include <glib.h>
#include <glib.h>
...
...
modules/gui/skins/gtk2/gtk2_theme.cpp
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_theme.cpp: GTK2 implementation of the Theme class
* gtk2_theme.cpp: GTK2 implementation of the Theme class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_theme.cpp,v 1.2
4 2003/04/21 22:12:37
asmax Exp $
* $Id: gtk2_theme.cpp,v 1.2
5 2003/04/28 12:00:13
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
* USA.
* USA.
*****************************************************************************/
*****************************************************************************/
#if
!defined WIN32
#if
def GTK2_SKINS
//--- GTK2 -----------------------------------------------------------------
//--- GTK2 -----------------------------------------------------------------
#include <gdk/gdk.h>
#include <gdk/gdk.h>
...
...
modules/gui/skins/gtk2/gtk2_window.cpp
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_window.cpp: GTK2 implementation of the Window class
* gtk2_window.cpp: GTK2 implementation of the Window class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_window.cpp,v 1.2
8 2003/04/22 17:56:44
asmax Exp $
* $Id: gtk2_window.cpp,v 1.2
9 2003/04/28 12:00:13
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
* USA.
* USA.
*****************************************************************************/
*****************************************************************************/
#if
!defined WIN32
#if
def GTK2_SKINS
//--- GENERAL ---------------------------------------------------------------
//--- GENERAL ---------------------------------------------------------------
//#include <math.h>
//#include <math.h>
...
...
modules/gui/skins/os_bitmap.h
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* os_bitmap.h: Wrapper for the Bitmap class
* os_bitmap.h: Wrapper for the Bitmap class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: os_bitmap.h,v 1.
3 2003/04/16 21:40:07 ipkiss
Exp $
* $Id: os_bitmap.h,v 1.
4 2003/04/28 12:00:13 asmax
Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#if defined( WIN32 )
#if defined( WIN32 )
#include "win32/win32_bitmap.h"
#include "win32/win32_bitmap.h"
#define OSBitmap Win32Bitmap
#define OSBitmap Win32Bitmap
#el
se
#el
if defined GTK2_SKINS
#include "gtk2/gtk2_bitmap.h"
#include "gtk2/gtk2_bitmap.h"
#define OSBitmap GTK2Bitmap
#define OSBitmap GTK2Bitmap
#endif
#endif
...
...
modules/gui/skins/os_event.h
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* os_event.h: Wrapper for the Event class
* os_event.h: Wrapper for the Event class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: os_event.h,v 1.
3 2003/04/16 21:40:07 ipkiss
Exp $
* $Id: os_event.h,v 1.
4 2003/04/28 12:00:13 asmax
Exp $
*
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#if defined( WIN32 )
#if defined( WIN32 )
#include "win32/win32_event.h"
#include "win32/win32_event.h"
#define OSEvent Win32Event
#define OSEvent Win32Event
#el
se
#el
if defined GTK2_SKINS
#include "gtk2/gtk2_event.h"
#include "gtk2/gtk2_event.h"
#define OSEvent GTK2Event
#define OSEvent GTK2Event
#endif
#endif
...
...
modules/gui/skins/os_font.h
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* os_font.h: Wrapper for the OSFont class
* os_font.h: Wrapper for the OSFont class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: os_font.h,v 1.
4 2003/04/17 15:43:29 karibu
Exp $
* $Id: os_font.h,v 1.
5 2003/04/28 12:00:13 asmax
Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#define VLC_FONT_ALIGN_CENTER DT_CENTER
#define VLC_FONT_ALIGN_CENTER DT_CENTER
#define VLC_FONT_ALIGN_RIGHT DT_RIGHT
#define VLC_FONT_ALIGN_RIGHT DT_RIGHT
#el
se
#el
if defined GTK2_SKINS
#include "gtk2/gtk2_font.h"
#include "gtk2/gtk2_font.h"
#define OSFont GTK2Font
#define OSFont GTK2Font
...
...
modules/gui/skins/os_graphics.h
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* os_graphics.h: Wrapper for the Graphics and Region classes
* os_graphics.h: Wrapper for the Graphics and Region classes
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: os_graphics.h,v 1.
4 2003/04/16 21:40:07 ipkiss
Exp $
* $Id: os_graphics.h,v 1.
5 2003/04/28 12:00:13 asmax
Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#define SRC_AND SRCAND
#define SRC_AND SRCAND
#define OSGraphics Win32Graphics
#define OSGraphics Win32Graphics
#define OSRegion Win32Region
#define OSRegion Win32Region
#el
se
#el
if defined GTK2_SKINS
#include "gtk2/gtk2_graphics.h"
#include "gtk2/gtk2_graphics.h"
#define SRC_COPY 1
#define SRC_COPY 1
#define SRC_AND 2
#define SRC_AND 2
...
...
modules/gui/skins/os_theme.h
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* os_theme.h: Wrapper for the OSTheme class
* os_theme.h: Wrapper for the OSTheme class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: os_theme.h,v 1.
3 2003/04/16 21:40:07 ipkiss
Exp $
* $Id: os_theme.h,v 1.
4 2003/04/28 12:00:13 asmax
Exp $
*
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#if defined( WIN32 )
#if defined( WIN32 )
#include "win32/win32_theme.h"
#include "win32/win32_theme.h"
#define OSTheme Win32Theme
#define OSTheme Win32Theme
#el
se
#el
if defined GTK2_SKINS
#include "gtk2/gtk2_theme.h"
#include "gtk2/gtk2_theme.h"
#define OSTheme GTK2Theme
#define OSTheme GTK2Theme
#endif
#endif
modules/gui/skins/os_window.h
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* os_window.h: Wrapper for the OSWindow class
* os_window.h: Wrapper for the OSWindow class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: os_window.h,v 1.
3 2003/04/16 21:40:07 ipkiss
Exp $
* $Id: os_window.h,v 1.
4 2003/04/28 12:00:13 asmax
Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#include "win32/win32_dragdrop.h"
#include "win32/win32_dragdrop.h"
#include "win32/win32_window.h"
#include "win32/win32_window.h"
#define OSWindow Win32Window
#define OSWindow Win32Window
#el
se
#el
if defined GTK2_SKINS
#include "gtk2/gtk2_dragdrop.h"
#include "gtk2/gtk2_dragdrop.h"
#include "gtk2/gtk2_window.h"
#include "gtk2/gtk2_window.h"
#define OSWindow GTK2Window
#define OSWindow GTK2Window
...
...
modules/gui/skins/src/skin_main.cpp
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* skin-main.cpp: skins plugin for VLC
* skin-main.cpp: skins plugin for VLC
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: skin_main.cpp,v 1.
19 2003/04/28 00:18:27 ipkiss
Exp $
* $Id: skin_main.cpp,v 1.
20 2003/04/28 12:00:14 asmax
Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -105,7 +105,7 @@ static int Open ( vlc_object_t *p_this )
...
@@ -105,7 +105,7 @@ static int Open ( vlc_object_t *p_this )
p_intf
->
p_sys
->
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_intf
,
p_intf
->
p_sys
->
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
#if
!defined WIN32
#if
def GTK2_SKINS
// Initialize GDK
// Initialize GDK
int
i_args
=
3
;
int
i_args
=
3
;
char
*
p_args
[]
=
{
""
,
""
,
"--sync"
,
NULL
};
char
*
p_args
[]
=
{
""
,
""
,
"--sync"
,
NULL
};
...
...
modules/gui/skins/src/window.cpp
View file @
f38481fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* window.cpp: Window class
* window.cpp: Window class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: window.cpp,v 1.2
0 2003/04/28 00:18:27 ipkiss
Exp $
* $Id: window.cpp,v 1.2
1 2003/04/28 12:00:14 asmax
Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -98,6 +98,7 @@ void SkinWindow::Open()
...
@@ -98,6 +98,7 @@ void SkinWindow::Open()
Changing
=
true
;
Changing
=
true
;
#ifdef WIN32
if
(
Transition
&&
IS_WINNT
)
if
(
Transition
&&
IS_WINNT
)
{
{
SetTransparency
(
0
);
SetTransparency
(
0
);
...
@@ -106,17 +107,23 @@ void SkinWindow::Open()
...
@@ -106,17 +107,23 @@ void SkinWindow::Open()
}
}
else
else
{
{
#endif
OSAPI_PostMessage
(
this
,
WINDOW_SHOW
,
0
,
0
);
OSAPI_PostMessage
(
this
,
WINDOW_SHOW
,
0
,
0
);
#ifdef WIN32
}
}
#endif
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
void
SkinWindow
::
Close
()
void
SkinWindow
::
Close
()
{
{
Changing
=
true
;
Changing
=
true
;
#ifdef WIN32
if
(
Transition
&&
IS_WINNT
)
if
(
Transition
&&
IS_WINNT
)
Fade
(
0
,
Transition
,
WINDOW_HIDE
);
Fade
(
0
,
Transition
,
WINDOW_HIDE
);
else
else
#endif
OSAPI_PostMessage
(
this
,
WINDOW_FADE
,
WINDOW_HIDE
,
1242
);
OSAPI_PostMessage
(
this
,
WINDOW_FADE
,
WINDOW_HIDE
,
1242
);
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
...
@@ -141,6 +148,7 @@ void SkinWindow::Hide()
...
@@ -141,6 +148,7 @@ void SkinWindow::Hide()
void
SkinWindow
::
Fade
(
int
To
,
int
Time
,
unsigned
int
evt
)
void
SkinWindow
::
Fade
(
int
To
,
int
Time
,
unsigned
int
evt
)
{
{
// No fading effect on win9x
// No fading effect on win9x
#ifdef WIN32
if
(
IS_WINNT
)
if
(
IS_WINNT
)
{
{
StartAlpha
=
Alpha
;
StartAlpha
=
Alpha
;
...
@@ -151,6 +159,7 @@ void SkinWindow::Fade( int To, int Time, unsigned int evt )
...
@@ -151,6 +159,7 @@ void SkinWindow::Fade( int To, int Time, unsigned int evt )
OSAPI_PostMessage
(
this
,
WINDOW_FADE
,
evt
,
Lock
);
OSAPI_PostMessage
(
this
,
WINDOW_FADE
,
evt
,
Lock
);
}
}
#endif
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
bool
SkinWindow
::
ProcessEvent
(
Event
*
evt
)
bool
SkinWindow
::
ProcessEvent
(
Event
*
evt
)
...
@@ -249,6 +258,7 @@ bool SkinWindow::ProcessEvent( Event *evt )
...
@@ -249,6 +258,7 @@ bool SkinWindow::ProcessEvent( Event *evt )
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
bool
SkinWindow
::
ChangeAlpha
(
int
time
)
bool
SkinWindow
::
ChangeAlpha
(
int
time
)
{
{
#ifdef WIN32
if
(
IS_WINNT
)
if
(
IS_WINNT
)
{
{
if
(
time
>=
EndTime
)
if
(
time
>=
EndTime
)
...
@@ -271,6 +281,7 @@ bool SkinWindow::ChangeAlpha( int time )
...
@@ -271,6 +281,7 @@ bool SkinWindow::ChangeAlpha( int time )
return
false
;
return
false
;
}
}
}
}
#endif
return
true
;
return
true
;
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment