Password window fixes

pull/79/head
parent c1b1e68a5f
commit 5df90b2a4e

@ -277,7 +277,6 @@
<child>
<object class="GtkEntry" id="PasswordHashEntry">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can-focus">True</property>
<property name="tooltip-text" translatable="yes">Password hash</property>
<property name="visibility">False</property>
@ -341,7 +340,7 @@
</child>
<child>
<object class="GtkButton" id="UserOkButton">
<property name="label" translatable="yes">Accept</property>
<property name="label" translatable="yes">Ok</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>

@ -129,10 +129,9 @@ void on_password_hash_sensitiveness(GtkWidget *,yon_password_window *window){
const char *hash = gtk_entry_get_text(GTK_ENTRY(window->PasswordHashEntry));
const char *hash_command = gtk_combo_box_get_active_id(GTK_COMBO_BOX(window->EncryptionCombo));
if (!yon_char_is_empty(hash_command)){
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(window->NoEncriptionCheck),1);
gtk_widget_set_sensitive(window->NoEncriptionCheck,0);
} else {
gtk_widget_set_sensitive(window->NoEncriptionCheck,1);
} else {
gtk_widget_set_sensitive(window->NoEncriptionCheck,0);
}
if (!yon_char_is_empty(password)||!yon_char_is_empty(repeat_password)){
gtk_widget_set_sensitive(window->HashBox,0);

Loading…
Cancel
Save