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
259675d6
Commit
259675d6
authored
15 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
[#2383] Save ip 2 ip local port in config
parent
fd580e2f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sflphone-client-gnome/src/config/preferencesdialog.c
+20
-8
20 additions, 8 deletions
sflphone-client-gnome/src/config/preferencesdialog.c
with
20 additions
and
8 deletions
sflphone-client-gnome/src/config/preferencesdialog.c
+
20
−
8
View file @
259675d6
...
...
@@ -148,6 +148,22 @@ static void use_sip_tls_cb(GtkWidget *widget, gpointer data)
}
}
static
void
ip2ip_local_address_changed_cb
(
GtkWidget
*
widget
,
gpointer
data
)
{
DEBUG
(
"ip2ip_local_address_changed_cb
\n
"
);
}
static
void
ip2ip_local_port_changed_cb
(
GtkWidget
*
widget
,
gpointer
data
)
{
DEBUG
(
"ip2ip_local_port_changed_cb
\n
"
);
gint
new_port
=
gtk_spin_button_get_value
(
GTK_SPIN_BUTTON
(
widget
));
DEBUG
(
"new_port %i"
,
new_port
);
g_hash_table_replace
(
directIpCallsProperties
,
g_strdup
(
LOCAL_PORT
),
g_strdup
((
gchar
*
)
gtk_entry_get_text
(
GTK_ENTRY
(
GTK_SPIN_BUTTON
(
widget
)))));
}
GtkWidget
*
create_direct_ip_calls_tab
()
{
GtkWidget
*
frame
;
...
...
@@ -249,16 +265,12 @@ GtkWidget* create_direct_ip_calls_tab()
gtk_cell_layout_pack_start
(
GTK_CELL_LAYOUT
(
localAddressCombo
),
ipInterfaceCellRenderer
,
TRUE
);
gtk_cell_layout_set_attributes
(
GTK_CELL_LAYOUT
(
localAddressCombo
),
ipInterfaceCellRenderer
,
"text"
,
0
,
NULL
);
gtk_combo_box_set_active_iter
(
GTK_COMBO_BOX
(
localAddressCombo
),
&
current_local_address_iter
);
g_signal_connect
(
G_OBJECT
(
GTK_COMBO_BOX
(
localAddressCombo
)),
"changed"
,
G_CALLBACK
(
ip2ip_local_address_changed_cb
),
localAddressCombo
);
/**
* Local port
*/
/** SIP port information */
// int local_port = dbus_get_sip_port();
GtkWidget
*
applySipPortButton
=
gtk_button_new_from_stock
(
GTK_STOCK_APPLY
);
localPortLabel
=
gtk_label_new_with_mnemonic
(
_
(
"Local port"
));
gtk_table_attach_defaults
(
GTK_TABLE
(
table
),
localPortLabel
,
0
,
1
,
1
,
2
);
...
...
@@ -266,9 +278,9 @@ GtkWidget* create_direct_ip_calls_tab()
localPortSpinBox
=
gtk_spin_button_new_with_range
(
1
,
65535
,
1
);
gtk_label_set_mnemonic_widget
(
GTK_LABEL
(
localPortLabel
),
localPortSpinBox
);
gtk_spin_button_set_value
(
GTK_SPIN_BUTTON
(
localPortSpinBox
),
g_ascii_strtod
(
local_port
,
NULL
));
g_signal_connect
(
G_OBJECT
(
applySipPortButton
)
,
"clicked"
,
G_CALLBACK
(
update_port_cb
)
,
applySipPortButton
);
gtk_table_attach_defaults
(
GTK_TABLE
(
table
),
localPortSpinBox
,
1
,
2
,
1
,
2
);
g_signal_connect
(
G_OBJECT
(
localPortSpinBox
),
"changed"
,
G_CALLBACK
(
ip2ip_local_port_changed_cb
),
localPortSpinBox
);
/**
* Security Section
...
...
@@ -308,7 +320,7 @@ GtkWidget* create_direct_ip_calls_tab()
gtk_widget_set_sensitive
(
GTK_WIDGET
(
advancedZrtpButton
),
FALSE
);
}
g_signal_connect
(
G_OBJECT
(
GTK_COMBO_BOX
(
keyExchangeCombo
)),
"changed"
,
G_CALLBACK
(
key_exchange_changed_cb
),
advancedZrtpButton
);
g_signal_connect
(
G_OBJECT
(
GTK_COMBO_BOX
(
keyExchangeCombo
)),
"changed"
,
G_CALLBACK
(
key_exchange_changed_cb
),
advancedZrtpButton
);
gtk_table_attach_defaults
(
GTK_TABLE
(
table
),
label
,
0
,
1
,
1
,
2
);
gtk_table_attach_defaults
(
GTK_TABLE
(
table
),
keyExchangeCombo
,
1
,
2
,
1
,
2
);
...
...
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