Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
610f4f67
Commit
610f4f67
authored
16 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
reorder hooks configuration panel
parent
4d773612
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sflphone-gtk/src/config/hooks-config.c
+16
-16
16 additions, 16 deletions
sflphone-gtk/src/config/hooks-config.c
with
16 additions
and
16 deletions
sflphone-gtk/src/config/hooks-config.c
+
16
−
16
View file @
610f4f67
...
...
@@ -81,7 +81,7 @@ static void sip_enabled_cb (GtkWidget *widget) {
GtkWidget
*
create_hooks_settings
(){
GtkWidget
*
ret
,
*
url_frame
,
*
table
,
*
label
;
GtkWidget
*
ret
,
*
url_frame
,
*
table
,
*
label
,
*
widg
;
// Load the user value
hooks_load_parameters
(
&
_urlhook_config
);
...
...
@@ -93,36 +93,36 @@ GtkWidget* create_hooks_settings (){
gtk_box_pack_start
(
GTK_BOX
(
ret
),
url_frame
,
FALSE
,
FALSE
,
0
);
gtk_widget_show
(
url_frame
);
table
=
gtk_table_new
(
5
,
2
,
FALSE
/* homogeneous */
);
table
=
gtk_table_new
(
5
,
3
,
FALSE
/* homogeneous */
);
gtk_table_set_row_spacings
(
GTK_TABLE
(
table
),
10
);
gtk_table_set_col_spacings
(
GTK_TABLE
(
table
),
10
);
gtk_widget_show
(
table
);
gtk_container_add
(
GTK_CONTAINER
(
url_frame
)
,
table
);
field
=
gtk_check_button_new_with_mnemonic
(
_
(
"_SIP protocol"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
field
),
(
g_strcasecmp
(
_urlhook_config
->
sip_enabled
,
"1"
)
==
0
)
?
TRUE
:
FALSE
);
g_signal_connect
(
G_OBJECT
(
field
)
,
"clicked"
,
G_CALLBACK
(
sip_enabled_cb
),
NULL
);
gtk_table_attach
(
GTK_TABLE
(
table
),
field
,
0
,
2
,
1
,
2
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
widg
=
gtk_check_button_new_with_mnemonic
(
_
(
"_SIP protocol"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
widg
),
(
g_strcasecmp
(
_urlhook_config
->
sip_enabled
,
"1"
)
==
0
)
?
TRUE
:
FALSE
);
g_signal_connect
(
G_OBJECT
(
widg
)
,
"clicked"
,
G_CALLBACK
(
sip_enabled_cb
),
NULL
);
gtk_table_attach
(
GTK_TABLE
(
table
),
widg
,
0
,
1
,
1
,
2
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
field
=
gtk_check_button_new_with_mnemonic
(
_
(
"_IAX2 protocol"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
field
),
TRUE
);
//g_signal_connect (G_OBJECT(field) , "clicked" , NULL, NULL);
gtk_table_attach
(
GTK_TABLE
(
table
),
field
,
0
,
2
,
2
,
3
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
field
),
FALSE
);
label
=
gtk_label_new_with_mnemonic
(
_
(
"_SIP Header: "
));
gtk_table_attach
(
GTK_TABLE
(
table
),
label
,
0
,
1
,
3
,
4
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
gtk_table_attach
(
GTK_TABLE
(
table
),
label
,
1
,
2
,
1
,
2
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
field
=
gtk_entry_new
();
gtk_label_set_mnemonic_widget
(
GTK_LABEL
(
label
),
field
);
gtk_entry_set_text
(
GTK_ENTRY
(
field
),
_urlhook_config
->
sip_field
);
gtk_table_attach
(
GTK_TABLE
(
table
),
field
,
1
,
2
,
3
,
4
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
gtk_table_attach
(
GTK_TABLE
(
table
),
field
,
2
,
3
,
1
,
2
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
widg
=
gtk_check_button_new_with_mnemonic
(
_
(
"_IAX2 protocol"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
widg
),
FALSE
);
// Not implemented yet
//g_signal_connect (G_OBJECT(field) , "clicked" , NULL, NULL);
gtk_table_attach
(
GTK_TABLE
(
table
),
widg
,
0
,
3
,
2
,
3
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
widg
),
FALSE
);
label
=
gtk_label_new_with_mnemonic
(
_
(
"_Command: "
));
gtk_table_attach
(
GTK_TABLE
(
table
),
label
,
0
,
1
,
4
,
5
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
gtk_table_attach
(
GTK_TABLE
(
table
),
label
,
0
,
1
,
3
,
4
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
command
=
gtk_entry_new
();
gtk_label_set_mnemonic_widget
(
GTK_LABEL
(
label
),
command
);
gtk_entry_set_text
(
GTK_ENTRY
(
command
),
_urlhook_config
->
command
);
gtk_table_attach
(
GTK_TABLE
(
table
),
command
,
1
,
2
,
4
,
5
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
10
);
gtk_table_attach
(
GTK_TABLE
(
table
),
command
,
1
,
2
,
3
,
4
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
10
);
gtk_widget_show_all
(
ret
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment