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
33aec412
Commit
33aec412
authored
May 13, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/gui/beos/PreferencesWindow.*: use config_ResetAll()
parent
86e2b37d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
15 deletions
+7
-15
modules/gui/beos/PreferencesWindow.cpp
modules/gui/beos/PreferencesWindow.cpp
+5
-12
modules/gui/beos/PreferencesWindow.h
modules/gui/beos/PreferencesWindow.h
+2
-3
No files found.
modules/gui/beos/PreferencesWindow.cpp
View file @
33aec412
...
...
@@ -2,7 +2,7 @@
* PreferencesWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: PreferencesWindow.cpp,v 1.
19 2003/05/08 10:45:50
titer Exp $
* $Id: PreferencesWindow.cpp,v 1.
20 2003/05/13 11:18:25
titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
...
...
@@ -275,20 +275,16 @@ PreferencesWindow::PreferencesWindow( intf_thread_t * p_interface,
rect
.
InsetBy
(
10
,
10
);
rect
.
left
=
rect
.
right
-
80
;
rect
.
top
=
rect
.
bottom
-
25
;
button
=
new
BButton
(
rect
,
""
,
_
(
"Close"
),
new
BMessage
(
PREFS_CLOSE
),
B_FOLLOW_RIGHT
|
B_FOLLOW_BOTTOM
);
button
->
MakeDefault
(
true
);
fPrefsView
->
AddChild
(
button
);
rect
.
OffsetBy
(
-
90
,
0
);
button
=
new
BButton
(
rect
,
""
,
_
(
"Apply"
),
new
BMessage
(
PREFS_APPLY
),
B_FOLLOW_RIGHT
|
B_FOLLOW_BOTTOM
);
button
->
MakeDefault
(
true
);
fPrefsView
->
AddChild
(
button
);
rect
.
OffsetBy
(
-
90
,
0
);
button
=
new
BButton
(
rect
,
""
,
_
(
"Save"
),
new
BMessage
(
PREFS_SAVE
),
B_FOLLOW_RIGHT
|
B_FOLLOW_BOTTOM
);
fPrefsView
->
AddChild
(
button
);
rect
.
OffsetBy
(
-
90
,
0
);
button
=
new
BButton
(
rect
,
""
,
_
(
"
Revert"
),
new
BMessage
(
PREFS_REVERT
),
button
=
new
BButton
(
rect
,
""
,
_
(
"
Defaults"
),
new
BMessage
(
PREFS_DEFAULTS
),
B_FOLLOW_RIGHT
|
B_FOLLOW_BOTTOM
);
fPrefsView
->
AddChild
(
button
);
...
...
@@ -324,11 +320,8 @@ void PreferencesWindow::MessageReceived( BMessage * message )
Update
();
break
;
case
PREFS_CLOSE
:
PostMessage
(
B_QUIT_REQUESTED
);
break
;
case
PREFS_REVERT
:
case
PREFS_DEFAULTS
:
config_ResetAll
(
p_intf
);
ApplyChanges
(
false
);
break
;
...
...
modules/gui/beos/PreferencesWindow.h
View file @
33aec412
...
...
@@ -2,7 +2,7 @@
* PreferencesWindow.h
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: PreferencesWindow.h,v 1.1
2 2003/05/07 17:27:30
titer Exp $
* $Id: PreferencesWindow.h,v 1.1
3 2003/05/13 11:18:25
titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
...
...
@@ -29,8 +29,7 @@
#define PREFS_WINDOW_WIDTH 600
#define PREFS_WINDOW_HEIGHT 400
#define PREFS_ITEM_SELECTED 'pris'
#define PREFS_CLOSE 'prcl'
#define PREFS_REVERT 'prre'
#define PREFS_DEFAULTS 'prde'
#define PREFS_APPLY 'prap'
#define PREFS_SAVE 'prsa'
#define TEXT_HEIGHT 16
...
...
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