Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
7bd1f54f
Commit
7bd1f54f
authored
Feb 18, 2003
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed a segfault in the Japanese preferences panel.
parent
1c68fade
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+2
-1
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+6
-1
modules/gui/macosx/prefs.m
modules/gui/macosx/prefs.m
+5
-5
No files found.
modules/gui/macosx/intf.h
View file @
7bd1f54f
...
...
@@ -2,7 +2,7 @@
* intf.h: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: intf.h,v 1.2
8 2003/02/16 23:32:06 hartman
Exp $
* $Id: intf.h,v 1.2
9 2003/02/18 00:17:06 massiot
Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -42,6 +42,7 @@
-
(
void
)
initIntlSupport
;
-
(
NSString
*
)
localizedString
:(
char
*
)
psz
;
-
(
char
*
)
delocalizeString
:(
NSString
*
)
psz
;
-
(
NSStringEncoding
)
getEncoding
;
-
(
void
)
setIntf
:(
intf_thread_t
*
)
p_intf
;
-
(
intf_thread_t
*
)
getIntf
;
...
...
modules/gui/macosx/intf.m
View file @
7bd1f54f
...
...
@@ -2,7 +2,7 @@
* intf.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: intf.m,v 1.5
8 2003/02/16 23:32:06 hartman
Exp $
* $Id: intf.m,v 1.5
9 2003/02/18 00:17:06 massiot
Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -181,6 +181,11 @@ static void Run( intf_thread_t *p_intf )
return
psz_string
;
}
-
(
NSStringEncoding
)
getEncoding
{
return
i_encoding
;
}
-
(
void
)
setIntf
:(
intf_thread_t
*
)
_p_intf
{
p_intf
=
_p_intf
;
...
...
modules/gui/macosx/prefs.m
View file @
7bd1f54f
...
...
@@ -2,7 +2,7 @@
* prefs.m: MacOS X plugin for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: prefs.m,v 1.1
2 2003/02/09 19:28:43
massiot Exp $
* $Id: prefs.m,v 1.1
3 2003/02/18 00:17:06
massiot Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
*
...
...
@@ -245,7 +245,7 @@
#define INPUT_FIELD( ctype, cname, label, w, msg, param, tip ) \
{ \
char * psz_duptip = NULL; \
if ( p_item->psz_longtext != NULL ) \
if ( p_item->psz_longtext != NULL
&& [NSApp getEncoding] == NSISOLatin1StringEncoding
) \
psz_duptip = strdup(p_item->psz_longtext); \
s_rc.size.height = 25; \
s_rc.size.width = w; \
...
...
@@ -328,7 +328,7 @@
NSButton
*
o_btn_select
;
NSButton
*
o_btn_configure
;
char
*
psz_duptip
=
NULL
;
if
(
p_item
->
psz_longtext
!=
NULL
)
if
(
p_item
->
psz_longtext
!=
NULL
&&
[
NSApp
getEncoding
]
==
NSISOLatin1StringEncoding
)
psz_duptip
=
strdup
(
p_item
->
psz_longtext
);
#define MODULE_BUTTON( button, title, sel ) \
...
...
@@ -448,7 +448,7 @@
int
i
;
VLCComboBox
*
o_combo_box
;
char
*
psz_duptip
=
NULL
;
if
(
p_item
->
psz_longtext
!=
NULL
)
if
(
p_item
->
psz_longtext
!=
NULL
&&
[
NSApp
getEncoding
]
==
NSISOLatin1StringEncoding
)
psz_duptip
=
strdup
(
p_item
->
psz_longtext
);
s_rc
.
size
.
height
=
27
;
...
...
@@ -509,7 +509,7 @@
{
VLCButton
*
o_btn_bool
;
char
*
psz_duptip
=
NULL
;
if
(
p_item
->
psz_longtext
!=
NULL
)
if
(
p_item
->
psz_longtext
!=
NULL
&&
[
NSApp
getEncoding
]
==
NSISOLatin1StringEncoding
)
psz_duptip
=
strdup
(
p_item
->
psz_longtext
);
s_rc
.
size
.
height
=
27
;
...
...
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