Fixed ntp placeholder

pull/164/head
parent b654f6d3c1
commit 758fd6833a

@ -352,9 +352,6 @@ void on_ntp_sync(GtkWidget *, main_window *widgets){
} }
break; break;
case 1: case 1:
gtk_widget_set_sensitive(widgets->NTPEntry,0);
gtk_entry_set_text(GTK_ENTRY(widgets->NTPEntry),"");
break;
case 2: case 2:
gtk_widget_set_sensitive(widgets->NTPEntry,0); gtk_widget_set_sensitive(widgets->NTPEntry,0);
gtk_entry_set_text(GTK_ENTRY(widgets->NTPEntry),""); gtk_entry_set_text(GTK_ENTRY(widgets->NTPEntry),"");
@ -417,7 +414,7 @@ void config_init(){
main_config.load_mode=1; main_config.load_mode=1;
main_config.ntp_default = NULL; main_config.ntp_default = NULL;
char *ntp_command = yon_config_parameter_prepare_command(NTPSERVERS_parameter_command,"default",NULL,NULL); char *ntp_command = yon_config_parameter_prepare_command(NTPSERVERS_parameter_raw_command,"default",NULL,NULL);
int size; int size;
config_str parsed = yon_config_load(ntp_command,&size); config_str parsed = yon_config_load(ntp_command,&size);
if (size>0){ if (size>0){

@ -39,6 +39,7 @@
#define NTPSERVERS_parameter "NTPSERVERS" #define NTPSERVERS_parameter "NTPSERVERS"
#define NTPSERVERS_parameter_command "ubconfig --source global get network NTPSERVERS" #define NTPSERVERS_parameter_command "ubconfig --source global get network NTPSERVERS"
#define NTPSERVERS_parameter_raw_command "ubconfig --source global --raw get network NTPSERVERS"
#define HWCLOCK_SYNC_parameter "HWCLOCK_SYNC" #define HWCLOCK_SYNC_parameter "HWCLOCK_SYNC"
#define HWCLOCK_SYNC_parameter_command "ubconfig --source global get clock HWCLOCK_SYNC" #define HWCLOCK_SYNC_parameter_command "ubconfig --source global get clock HWCLOCK_SYNC"
#define ZONE_parameter "ZONE" #define ZONE_parameter "ZONE"

Loading…
Cancel
Save