|
|
|
@ -72,8 +72,6 @@ void on_monitor_config_save(GtkWidget *self, monitor_edit_window *window){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void on_terminal_done(GtkWidget *terminal, int size, widgets_dict *widgets){
|
|
|
|
void on_terminal_done(GtkWidget *terminal, int size, widgets_dict *widgets){
|
|
|
|
char *text=vte_terminal_get_text_range(VTE_TERMINAL(terminal),0,0,0,10,NULL,NULL,NULL);
|
|
|
|
|
|
|
|
printf("\"%s\"\n",text);
|
|
|
|
|
|
|
|
gtk_widget_destroy(terminal);
|
|
|
|
gtk_widget_destroy(terminal);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -100,7 +98,6 @@ static void child_ready(VteTerminal *terminal, GPid pid, GError *error, gpointer
|
|
|
|
|
|
|
|
|
|
|
|
void on_terminal_check_progress(VteTerminal *terminal, widgets_dict *widgets){
|
|
|
|
void on_terminal_check_progress(VteTerminal *terminal, widgets_dict *widgets){
|
|
|
|
char *text = vte_terminal_get_text(terminal,NULL,NULL,NULL);
|
|
|
|
char *text = vte_terminal_get_text(terminal,NULL,NULL,NULL);
|
|
|
|
// printf("%d - %s\n",rows, text);
|
|
|
|
|
|
|
|
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->TerminalInfoLabel),(double)yon_char_find_count(text,"::")/4);
|
|
|
|
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(widgets->TerminalInfoLabel),(double)yon_char_find_count(text,"::")/4);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -377,11 +374,9 @@ void on_configuration_save_local(GtkWidget *self, widgets_dict *widgets)
|
|
|
|
str=yon_configuration_get_save_command(save_drivers_local_command);
|
|
|
|
str=yon_configuration_get_save_command(save_drivers_local_command);
|
|
|
|
delstr=yon_configuration_get_remove_command(remove_drivers_local_command);
|
|
|
|
delstr=yon_configuration_get_remove_command(remove_drivers_local_command);
|
|
|
|
if (delstr){
|
|
|
|
if (delstr){
|
|
|
|
printf("%s\n\n",delstr);
|
|
|
|
|
|
|
|
yon_config_save(delstr);
|
|
|
|
yon_config_save(delstr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (str){
|
|
|
|
if (str){
|
|
|
|
printf("%s\n\n",str);
|
|
|
|
|
|
|
|
yon_config_save(str);
|
|
|
|
yon_config_save(str);
|
|
|
|
|
|
|
|
|
|
|
|
videoconfig.status_render.text_to_render=LOCAL_SAVE_SUCCESS;
|
|
|
|
videoconfig.status_render.text_to_render=LOCAL_SAVE_SUCCESS;
|
|
|
|
@ -409,11 +404,9 @@ void on_configuration_save_global(GtkWidget *self, widgets_dict *widgets)
|
|
|
|
str=yon_configuration_get_save_command(save_drivers_global_command);
|
|
|
|
str=yon_configuration_get_save_command(save_drivers_global_command);
|
|
|
|
delstr=yon_configuration_get_remove_command(remove_drivers_global_command);
|
|
|
|
delstr=yon_configuration_get_remove_command(remove_drivers_global_command);
|
|
|
|
if (delstr){
|
|
|
|
if (delstr){
|
|
|
|
printf("%s\n\n",delstr);
|
|
|
|
|
|
|
|
yon_config_save(delstr);
|
|
|
|
yon_config_save(delstr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (str){
|
|
|
|
if (str){
|
|
|
|
printf("%s\n\n",str);
|
|
|
|
|
|
|
|
yon_config_save(str);
|
|
|
|
yon_config_save(str);
|
|
|
|
|
|
|
|
|
|
|
|
videoconfig.status_render.text_to_render=LOCAL_SAVE_SUCCESS;
|
|
|
|
videoconfig.status_render.text_to_render=LOCAL_SAVE_SUCCESS;
|
|
|
|
@ -1516,8 +1509,6 @@ int main(int argc, char *argv[])
|
|
|
|
videoconfig.lock_save_global=-1;
|
|
|
|
videoconfig.lock_save_global=-1;
|
|
|
|
videoconfig.lock_save_local=-1;
|
|
|
|
videoconfig.lock_save_local=-1;
|
|
|
|
local = setlocale(LC_ALL, "");
|
|
|
|
local = setlocale(LC_ALL, "");
|
|
|
|
for (int i=0;i<argc;i++)
|
|
|
|
|
|
|
|
printf("%s\n",argv[i]);
|
|
|
|
|
|
|
|
textdomain(LocaleName);
|
|
|
|
textdomain(LocaleName);
|
|
|
|
int option_index=0;
|
|
|
|
int option_index=0;
|
|
|
|
struct option long_options[] = {
|
|
|
|
struct option long_options[] = {
|
|
|
|
|