1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-07 20:35:31 +00:00

account-widget: Fix apply button not becoming sensitive

when only the transport protocol has been changed.
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-08-27 16:41:27 +02:00
parent 42c0872499
commit 7330fe11fd
2 changed files with 8 additions and 7 deletions

View file

@ -104,7 +104,7 @@ is_form_filled (CallsSipAccountWidget *self)
static void static void
on_text_changed (CallsSipAccountWidget *self) on_user_changed (CallsSipAccountWidget *self)
{ {
g_assert (CALLS_IS_SIP_ACCOUNT_WIDGET (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_login_clicked);
gtk_widget_class_bind_template_callback (widget_class, on_delete_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_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_insert_text);
gtk_widget_class_bind_template_callback (widget_class, on_port_entry_after_insert_text); gtk_widget_class_bind_template_callback (widget_class, on_port_entry_after_insert_text);
} }

View file

@ -93,7 +93,7 @@
<object class="GtkEntry" id="host"> <object class="GtkEntry" id="host">
<property name="visible">True</property> <property name="visible">True</property>
<property name="valign">center</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> </object>
</child> </child>
</object> </object>
@ -112,7 +112,7 @@
<object class="GtkEntry" id="display_name"> <object class="GtkEntry" id="display_name">
<property name="visible">True</property> <property name="visible">True</property>
<property name="valign">center</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> </object>
</child> </child>
</object> </object>
@ -130,7 +130,7 @@
<object class="GtkEntry" id="user"> <object class="GtkEntry" id="user">
<property name="visible">True</property> <property name="visible">True</property>
<property name="valign">center</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> </object>
</child> </child>
</object> </object>
@ -145,7 +145,7 @@
<property name="valign">center</property> <property name="valign">center</property>
<property name="input-purpose">password</property> <property name="input-purpose">password</property>
<property name="visibility">False</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> </object>
</child> </child>
</object> </object>
@ -164,7 +164,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="valign">center</property> <property name="valign">center</property>
<property name="input-purpose">digits</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_insert_text" swapped="yes"/>
<signal name="insert-text" handler="on_port_entry_after_insert_text" swapped="yes" after="yes"/> <signal name="insert-text" handler="on_port_entry_after_insert_text" swapped="yes" after="yes"/>
</object> </object>
@ -175,6 +175,7 @@
<object class="HdyComboRow" id="protocol"> <object class="HdyComboRow" id="protocol">
<property name="visible">True</property> <property name="visible">True</property>
<property name="title" translatable="yes">Transport</property> <property name="title" translatable="yes">Transport</property>
<signal name="notify::selected-index" handler="on_user_changed" swapped="yes"/>
</object> </object>
</child> </child>
</object> </object>