Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
f8ebcf98
Commit
f8ebcf98
authored
Mar 26, 2002
by
Loïc Minier
Browse files
plugins/gtk/gtk_preferences.c:
. save button (inadvertently suppressed)
parent
9d3112e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/gtk/gtk_preferences.c
View file @
f8ebcf98
...
...
@@ -2,7 +2,7 @@
* gtk_preferences.c: functions to handle the preferences dialog box.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: gtk_preferences.c,v 1.1
6
2002/03/2
5 22:38:28
lool Exp $
* $Id: gtk_preferences.c,v 1.1
7
2002/03/2
6 17:33:37
lool Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -55,6 +55,7 @@ static void GtkCreateConfigDialog( char *, intf_thread_t * );
static
void
GtkConfigOk
(
GtkButton
*
,
gpointer
);
static
void
GtkConfigApply
(
GtkButton
*
,
gpointer
);
static
void
GtkConfigCancel
(
GtkButton
*
,
gpointer
);
static
void
GtkConfigSave
(
GtkButton
*
,
gpointer
);
static
void
GtkConfigDialogDestroyed
(
GtkObject
*
,
gpointer
);
...
...
@@ -136,6 +137,7 @@ static void GtkCreateConfigDialog( char *psz_module_name,
GtkWidget
*
dialog_action_area
;
GtkWidget
*
ok_button
;
GtkWidget
*
apply_button
;
GtkWidget
*
save_button
;
GtkWidget
*
cancel_button
;
GtkWidget
*
item_align
;
...
...
@@ -420,6 +422,10 @@ static void GtkCreateConfigDialog( char *psz_module_name,
gtk_box_pack_start
(
GTK_BOX
(
dialog_action_area
),
apply_button
,
TRUE
,
TRUE
,
0
);
save_button
=
gtk_button_new_with_label
(
_
(
"Save"
)
);
gtk_box_pack_start
(
GTK_BOX
(
dialog_action_area
),
save_button
,
TRUE
,
TRUE
,
0
);
cancel_button
=
gtk_button_new_with_label
(
_
(
"Cancel"
)
);
gtk_box_pack_start
(
GTK_BOX
(
dialog_action_area
),
cancel_button
,
TRUE
,
TRUE
,
0
);
...
...
@@ -430,6 +436,9 @@ static void GtkCreateConfigDialog( char *psz_module_name,
gtk_signal_connect
(
GTK_OBJECT
(
apply_button
),
"clicked"
,
GTK_SIGNAL_FUNC
(
GtkConfigApply
),
config_dialog
);
gtk_signal_connect
(
GTK_OBJECT
(
save_button
),
"clicked"
,
GTK_SIGNAL_FUNC
(
GtkConfigSave
),
config_dialog
);
gtk_signal_connect
(
GTK_OBJECT
(
cancel_button
),
"clicked"
,
GTK_SIGNAL_FUNC
(
GtkConfigCancel
),
config_dialog
);
...
...
@@ -478,6 +487,12 @@ void GtkConfigCancel( GtkButton * button, gpointer user_data )
gtk_widget_hide
(
gtk_widget_get_toplevel
(
GTK_WIDGET
(
button
)
)
);
}
void
GtkConfigSave
(
GtkButton
*
button
,
gpointer
user_data
)
{
GtkConfigApply
(
button
,
user_data
);
config_SaveConfigFile
(
NULL
);
}
/****************************************************************************
* GtkPluginHighlighted: display plugin description when an entry is selected
* in the clist, and activate the configure button if necessary.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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