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
72fb9033
Commit
72fb9033
authored
Jan 24, 2003
by
Boris Dorès
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added a NULL pointer test
- cosmetic changes
parent
e56eff61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
modules/gui/win32/preferences.cpp
modules/gui/win32/preferences.cpp
+13
-11
No files found.
modules/gui/win32/preferences.cpp
View file @
72fb9033
...
@@ -268,6 +268,11 @@ __fastcall TPanelPlugin::TPanelPlugin( TComponent* Owner,
...
@@ -268,6 +268,11 @@ __fastcall TPanelPlugin::TPanelPlugin( TComponent* Owner,
ButtonDown
->
Hint
=
"Decrease the plugin priority"
;
ButtonDown
->
Hint
=
"Decrease the plugin priority"
;
ButtonDown
->
ShowHint
=
true
;
ButtonDown
->
ShowHint
=
true
;
}
}
else
{
ButtonUp
=
NULL
;
ButtonDown
=
NULL
;
}
/* panel height */
/* panel height */
Height
=
CleanCheckListBox
->
Top
+
CleanCheckListBox
->
Height
Height
=
CleanCheckListBox
->
Top
+
CleanCheckListBox
->
Height
...
@@ -284,8 +289,8 @@ void __fastcall TPanelPlugin::CheckListBoxClick( TObject *Sender )
...
@@ -284,8 +289,8 @@ void __fastcall TPanelPlugin::CheckListBoxClick( TObject *Sender )
* started on an item */
* started on an item */
if
(
CleanCheckListBox
->
ItemIndex
==
-
1
)
if
(
CleanCheckListBox
->
ItemIndex
==
-
1
)
{
{
ButtonUp
->
Enabled
=
false
;
if
(
ButtonUp
!=
NULL
)
ButtonUp
->
Enabled
=
false
;
ButtonDown
->
Enabled
=
false
;
if
(
ButtonDown
!=
NULL
)
ButtonDown
->
Enabled
=
false
;
return
;
return
;
}
}
...
@@ -295,9 +300,7 @@ void __fastcall TPanelPlugin::CheckListBoxClick( TObject *Sender )
...
@@ -295,9 +300,7 @@ void __fastcall TPanelPlugin::CheckListBoxClick( TObject *Sender )
return
;
return
;
/* enable up and down buttons */
/* enable up and down buttons */
if
(
b_multi_plugins
)
if
(
b_multi_plugins
&&
ButtonUp
!=
NULL
&&
ButtonDown
!=
NULL
)
{
if
(
CleanCheckListBox
->
ItemIndex
!=
-
1
)
{
{
if
(
CleanCheckListBox
->
ItemIndex
==
0
)
if
(
CleanCheckListBox
->
ItemIndex
==
0
)
ButtonUp
->
Enabled
=
false
;
else
ButtonUp
->
Enabled
=
true
;
ButtonUp
->
Enabled
=
false
;
else
ButtonUp
->
Enabled
=
true
;
...
@@ -305,7 +308,6 @@ void __fastcall TPanelPlugin::CheckListBoxClick( TObject *Sender )
...
@@ -305,7 +308,6 @@ void __fastcall TPanelPlugin::CheckListBoxClick( TObject *Sender )
==
CleanCheckListBox
->
Items
->
Count
-
1
)
==
CleanCheckListBox
->
Items
->
Count
-
1
)
ButtonDown
->
Enabled
=
false
;
else
ButtonDown
->
Enabled
=
true
;
ButtonDown
->
Enabled
=
false
;
else
ButtonDown
->
Enabled
=
true
;
}
}
}
/* look for module 'Name' */
/* look for module 'Name' */
list
=
vlc_list_find
(
p_intf
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
list
=
vlc_list_find
(
p_intf
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
...
...
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