[calls] account-widget: Fix apply button not becoming sensitive
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] account-widget: Fix apply button not becoming sensitive
- Date: Thu, 2 Sep 2021 07:35:37 +0000 (UTC)
commit 7330fe11fd018fb3a60ca2a69a7370600365ba6a
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Fri Aug 27 16:41:27 2021 +0200
account-widget: Fix apply button not becoming sensitive
when only the transport protocol has been changed.
plugins/sip/calls-sip-account-widget.c | 4 ++--
plugins/sip/sip-account-widget.ui | 11 ++++++-----
2 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/plugins/sip/calls-sip-account-widget.c b/plugins/sip/calls-sip-account-widget.c
index dbd31152..f0de40a4 100644
--- a/plugins/sip/calls-sip-account-widget.c
+++ b/plugins/sip/calls-sip-account-widget.c
@@ -104,7 +104,7 @@ is_form_filled (CallsSipAccountWidget *self)
static void
-on_text_changed (CallsSipAccountWidget *self)
+on_user_changed (CallsSipAccountWidget *self)
{
g_assert (CALLS_IS_SIP_ACCOUNT_WIDGET (self));
@@ -505,7 +505,7 @@ calls_sip_account_widget_class_init (CallsSipAccountWidgetClass *klass)
gtk_widget_class_bind_template_callback (widget_class, on_login_clicked);
gtk_widget_class_bind_template_callback (widget_class, on_delete_clicked);
gtk_widget_class_bind_template_callback (widget_class, on_apply_clicked);
- gtk_widget_class_bind_template_callback (widget_class, on_text_changed);
+ gtk_widget_class_bind_template_callback (widget_class, on_user_changed);
gtk_widget_class_bind_template_callback (widget_class, on_port_entry_insert_text);
gtk_widget_class_bind_template_callback (widget_class, on_port_entry_after_insert_text);
}
diff --git a/plugins/sip/sip-account-widget.ui b/plugins/sip/sip-account-widget.ui
index 23633822..751033d4 100644
--- a/plugins/sip/sip-account-widget.ui
+++ b/plugins/sip/sip-account-widget.ui
@@ -93,7 +93,7 @@
<object class="GtkEntry" id="host">
<property name="visible">True</property>
<property name="valign">center</property>
- <signal name="changed" handler="on_text_changed" swapped="yes"/>
+ <signal name="changed" handler="on_user_changed" swapped="yes"/>
</object>
</child>
</object>
@@ -112,7 +112,7 @@
<object class="GtkEntry" id="display_name">
<property name="visible">True</property>
<property name="valign">center</property>
- <signal name="changed" handler="on_text_changed" swapped="yes"/>
+ <signal name="changed" handler="on_user_changed" swapped="yes"/>
</object>
</child>
</object>
@@ -130,7 +130,7 @@
<object class="GtkEntry" id="user">
<property name="visible">True</property>
<property name="valign">center</property>
- <signal name="changed" handler="on_text_changed" swapped="yes"/>
+ <signal name="changed" handler="on_user_changed" swapped="yes"/>
</object>
</child>
</object>
@@ -145,7 +145,7 @@
<property name="valign">center</property>
<property name="input-purpose">password</property>
<property name="visibility">False</property>
- <signal name="changed" handler="on_text_changed" swapped="yes"/>
+ <signal name="changed" handler="on_user_changed" swapped="yes"/>
</object>
</child>
</object>
@@ -164,7 +164,7 @@
<property name="visible">True</property>
<property name="valign">center</property>
<property name="input-purpose">digits</property>
- <signal name="changed" handler="on_text_changed" swapped="yes"/>
+ <signal name="changed" handler="on_user_changed" swapped="yes"/>
<signal name="insert-text" handler="on_port_entry_insert_text" swapped="yes"/>
<signal name="insert-text" handler="on_port_entry_after_insert_text" swapped="yes"
after="yes"/>
</object>
@@ -175,6 +175,7 @@
<object class="HdyComboRow" id="protocol">
<property name="visible">True</property>
<property name="title" translatable="yes">Transport</property>
+ <signal name="notify::selected-index" handler="on_user_changed" swapped="yes"/>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]