Password has been hidden

pull/59/head
parent 24ed6c977d
commit a8d9800eda

@ -415,11 +415,12 @@ void yon_interface_update(main_window *widgets){
gtk_list_store_set(widgets->WebPublicationList,&iter,5,parsed[3],-1); gtk_list_store_set(widgets->WebPublicationList,&iter,5,parsed[3],-1);
} }
if (cur_size>4&&!yon_char_is_empty(parsed[4])){ if (cur_size>4&&!yon_char_is_empty(parsed[4])){
if (!strcmp(parsed[4],"sha256")||!strcmp(parsed[4],"sha512")){ char *hash = yon_char_divide_search(parsed[4],"|",-1);
gtk_list_store_set(widgets->WebPublicationList,&iter,7,parsed[5],-1); if (!strcmp(hash,"sha256")||!strcmp(hash,"sha512")){
gtk_list_store_set(widgets->WebPublicationList,&iter,6,parsed[4],-1); gtk_list_store_set(widgets->WebPublicationList,&iter,7,"******",-1);
gtk_list_store_set(widgets->WebPublicationList,&iter,6,hash,-1);
} else { } else {
gtk_list_store_set(widgets->WebPublicationList,&iter,6,parsed[4],-1); gtk_list_store_set(widgets->WebPublicationList,&iter,6,"******",-1);
if (cur_size>5&&!yon_char_is_empty(parsed[5])){ if (cur_size>5&&!yon_char_is_empty(parsed[5])){
gtk_list_store_set(widgets->WebPublicationList,&iter,7,parsed[5],-1); gtk_list_store_set(widgets->WebPublicationList,&iter,7,parsed[5],-1);
} }
@ -660,6 +661,7 @@ void on_password_open(GtkWidget *, web_publication_add_window *window){
yon_dictionary_add_or_create_if_exists_with_data(dict,"window",dialog); yon_dictionary_add_or_create_if_exists_with_data(dict,"window",dialog);
yon_dictionary_add_or_create_if_exists_with_data(dict,"target",window->UserPasswordEntry); yon_dictionary_add_or_create_if_exists_with_data(dict,"target",window->UserPasswordEntry);
g_signal_connect(G_OBJECT(dialog->AcceptButton),"clicked",G_CALLBACK(on_password_accept),dict); g_signal_connect(G_OBJECT(dialog->AcceptButton),"clicked",G_CALLBACK(on_password_accept),dict);
g_signal_connect(G_OBJECT(dialog->NoEncriptionCheck),"toggled",G_CALLBACK(yon_gtk_widget_set_sensitive_from_toggle_button),dialog->PasswordHashEntry);
} }
void on_web_publish_remove(GtkWidget *self,main_window *widgets){ void on_web_publish_remove(GtkWidget *self,main_window *widgets){

@ -459,7 +459,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="pixel-size">32</property> <property name="pixel-size">32</property>
<property name="icon-name">com.ublinux.ubl-settings-repomanager</property> <property name="icon-name">com.ublinux.ubl-settings-update</property>
</object> </object>
</child> </child>
<child> <child>

Loading…
Cancel
Save