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
44cf5060
Commit
44cf5060
authored
12 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
* #9959: disable stun server entry instead of hiding it
This allows for more intuitive editing by the user.
parent
f2762ba6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gnome/src/config/accountconfigdialog.c
+6
-7
6 additions, 7 deletions
gnome/src/config/accountconfigdialog.c
with
6 additions
and
7 deletions
gnome/src/config/accountconfigdialog.c
+
6
−
7
View file @
44cf5060
...
...
@@ -500,8 +500,7 @@ static void use_sip_tls_cb(GtkWidget *widget, gpointer data)
gtk_widget_set_sensitive
(
use_stun_check_box
,
FALSE
);
gtk_widget_set_sensitive
(
same_as_local_radio_button
,
TRUE
);
gtk_widget_set_sensitive
(
published_addr_radio_button
,
TRUE
);
gtk_widget_hide
(
stun_server_label
);
gtk_widget_hide
(
stun_server_entry
);
gtk_widget_set_sensitive
(
stun_server_entry
,
FALSE
);
if
(
!
gtk_toggle_button_get_active
(
GTK_TOGGLE_BUTTON
(
same_as_local_radio_button
)))
{
gtk_widget_show
(
published_address_entry
);
...
...
@@ -518,6 +517,7 @@ static void use_sip_tls_cb(GtkWidget *widget, gpointer data)
gtk_widget_set_sensitive
(
published_addr_radio_button
,
FALSE
);
gtk_widget_show
(
stun_server_label
);
gtk_widget_show
(
stun_server_entry
);
gtk_widget_set_sensitive
(
stun_server_entry
,
TRUE
);
gtk_widget_hide
(
published_address_entry
);
gtk_widget_hide
(
published_port_spin_box
);
gtk_widget_hide
(
published_address_label
);
...
...
@@ -525,8 +525,7 @@ static void use_sip_tls_cb(GtkWidget *widget, gpointer data)
}
else
{
gtk_widget_set_sensitive
(
same_as_local_radio_button
,
TRUE
);
gtk_widget_set_sensitive
(
published_addr_radio_button
,
TRUE
);
gtk_widget_hide
(
stun_server_label
);
gtk_widget_hide
(
stun_server_entry
);
gtk_widget_set_sensitive
(
stun_server_entry
,
FALSE
);
}
}
}
...
...
@@ -604,6 +603,7 @@ static void use_stun_cb(GtkWidget *widget, gpointer data UNUSED)
DEBUG
(
"Config: Showing stun options, hiding Local/Published info"
);
gtk_widget_show
(
stun_server_label
);
gtk_widget_show
(
stun_server_entry
);
gtk_widget_set_sensitive
(
stun_server_entry
,
TRUE
);
gtk_widget_set_sensitive
(
same_as_local_radio_button
,
FALSE
);
gtk_widget_set_sensitive
(
published_addr_radio_button
,
FALSE
);
...
...
@@ -612,9 +612,8 @@ static void use_stun_cb(GtkWidget *widget, gpointer data UNUSED)
gtk_widget_hide
(
published_address_entry
);
gtk_widget_hide
(
published_port_spin_box
);
}
else
{
DEBUG
(
"Config: hiding stun options, showing Local/Published info"
);
gtk_widget_hide
(
stun_server_label
);
gtk_widget_hide
(
stun_server_entry
);
DEBUG
(
"Config: disabling stun options, showing Local/Published info"
);
gtk_widget_set_sensitive
(
stun_server_entry
,
FALSE
);
gtk_widget_set_sensitive
(
same_as_local_radio_button
,
TRUE
);
gtk_widget_set_sensitive
(
published_addr_radio_button
,
TRUE
);
...
...
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