|
|
|
@ -338,7 +338,7 @@ void yon_proprietary_local_get(main_window *widgets){
|
|
|
|
for (int i=1;i<size;i++){
|
|
|
|
for (int i=1;i<size;i++){
|
|
|
|
yon_char_remove_last_symbol(rtn[i],'\n');
|
|
|
|
yon_char_remove_last_symbol(rtn[i],'\n');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
yon_packages_finalize();
|
|
|
|
for (int dr_desc=1;dr_desc<size;dr_desc++){
|
|
|
|
for (int dr_desc=1;dr_desc<size;dr_desc++){
|
|
|
|
while(gtk_events_pending()) gtk_main_iteration();
|
|
|
|
while(gtk_events_pending()) gtk_main_iteration();
|
|
|
|
int current_size;
|
|
|
|
int current_size;
|
|
|
|
@ -737,6 +737,9 @@ template_main_window *yon_main_window_complete(main_window *widgets){
|
|
|
|
gtk_box_pack_start(GTK_BOX(widgets->InterfaceBox),widgets->MainBox,1,1,0);
|
|
|
|
gtk_box_pack_start(GTK_BOX(widgets->InterfaceBox),widgets->MainBox,1,1,0);
|
|
|
|
// Custom widgets configuration
|
|
|
|
// Custom widgets configuration
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
widgets->MainOverlay = yon_gtk_builder_get_widget(builder,"MainOverlay");
|
|
|
|
|
|
|
|
widgets->MainSpinner = yon_gtk_builder_get_widget(builder,"MainSpinner");
|
|
|
|
|
|
|
|
|
|
|
|
widgets->AutoDriverCombo = yon_gtk_builder_get_widget(builder,"AutoDriverCombo");
|
|
|
|
widgets->AutoDriverCombo = yon_gtk_builder_get_widget(builder,"AutoDriverCombo");
|
|
|
|
widgets->FreeDriverCombo = yon_gtk_builder_get_widget(builder,"FreeDriverCombo");
|
|
|
|
widgets->FreeDriverCombo = yon_gtk_builder_get_widget(builder,"FreeDriverCombo");
|
|
|
|
widgets->FailsafeNvidiaCombo = yon_gtk_builder_get_widget(builder,"FailsafeNvidiaCombo");
|
|
|
|
widgets->FailsafeNvidiaCombo = yon_gtk_builder_get_widget(builder,"FailsafeNvidiaCombo");
|
|
|
|
@ -828,6 +831,9 @@ template_main_window *yon_main_window_complete(main_window *widgets){
|
|
|
|
g_signal_connect(G_OBJECT(widgets->MoreButton),"clicked",G_CALLBACK(on_terminal_revealer_open),widgets);
|
|
|
|
g_signal_connect(G_OBJECT(widgets->MoreButton),"clicked",G_CALLBACK(on_terminal_revealer_open),widgets);
|
|
|
|
g_signal_connect(G_OBJECT(widgets->TerminalCancelButton),"clicked",G_CALLBACK(on_command_cancel),widgets);
|
|
|
|
g_signal_connect(G_OBJECT(widgets->TerminalCancelButton),"clicked",G_CALLBACK(on_command_cancel),widgets);
|
|
|
|
g_signal_connect(G_OBJECT(widgets->UnlockPacmanButton),"clicked",G_CALLBACK(on_pacman_db_unlock),NULL);
|
|
|
|
g_signal_connect(G_OBJECT(widgets->UnlockPacmanButton),"clicked",G_CALLBACK(on_pacman_db_unlock),NULL);
|
|
|
|
|
|
|
|
char *path = yon_char_unite(yon_ubl_user_get_home_directory(),"/.config/",LocaleName,"/",LocaleName,".conf",NULL);
|
|
|
|
|
|
|
|
yon_window_config_load(path);
|
|
|
|
|
|
|
|
gtk_overlay_add_overlay(GTK_OVERLAY(widgets->MainOverlay),widgets->MainSpinner);
|
|
|
|
|
|
|
|
|
|
|
|
g_object_set_data(G_OBJECT(widgets->InstallTerminal),"widgets",widgets);
|
|
|
|
g_object_set_data(G_OBJECT(widgets->InstallTerminal),"widgets",widgets);
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -876,6 +882,7 @@ template_main_window *yon_main_window_complete(main_window *widgets){
|
|
|
|
on_config_local_load(NULL,widgets);
|
|
|
|
on_config_local_load(NULL,widgets);
|
|
|
|
yon_proprietary_get_thread(NULL,(main_window*)widgets);
|
|
|
|
yon_proprietary_get_thread(NULL,(main_window*)widgets);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gtk_spinner_stop(GTK_SPINNER(widgets->MainSpinner));
|
|
|
|
return (template_main_window*)widgets;
|
|
|
|
return (template_main_window*)widgets;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -899,7 +906,6 @@ void config_init(){
|
|
|
|
main_config.progress_active=0;
|
|
|
|
main_config.progress_active=0;
|
|
|
|
main_config.ports_table = g_hash_table_new_full(g_str_hash,g_str_equal,free,free);
|
|
|
|
main_config.ports_table = g_hash_table_new_full(g_str_hash,g_str_equal,free,free);
|
|
|
|
main_config.resolutions = g_hash_table_new_full(g_str_hash,g_str_equal,free,free);
|
|
|
|
main_config.resolutions = g_hash_table_new_full(g_str_hash,g_str_equal,free,free);
|
|
|
|
|
|
|
|
|
|
|
|
yon_packages_init();
|
|
|
|
yon_packages_init();
|
|
|
|
yon_monitor_set_resolutions();
|
|
|
|
yon_monitor_set_resolutions();
|
|
|
|
yon_all_resolutions_update();
|
|
|
|
yon_all_resolutions_update();
|
|
|
|
@ -918,17 +924,15 @@ int main(int argc, char *argv[]){
|
|
|
|
gtk_init(&argc, &argv);
|
|
|
|
gtk_init(&argc, &argv);
|
|
|
|
template_main_window *widgets = yon_ubl_window_setup();
|
|
|
|
template_main_window *widgets = yon_ubl_window_setup();
|
|
|
|
widgets = yon_main_window_complete((main_window*)widgets);
|
|
|
|
widgets = yon_main_window_complete((main_window*)widgets);
|
|
|
|
char *path = yon_char_unite(yon_ubl_user_get_home_directory(),"/.config/",LocaleName,"/",LocaleName,".conf",NULL);
|
|
|
|
|
|
|
|
yon_window_config_load(path);
|
|
|
|
|
|
|
|
yon_root_button_setup(widgets,argv,argc);
|
|
|
|
yon_root_button_setup(widgets,argv,argc);
|
|
|
|
|
|
|
|
|
|
|
|
// if (system(yon_check_database_command)){
|
|
|
|
if (system(yon_check_database_command)){
|
|
|
|
// dialog_confirmation_data *data = yon_confirmation_dialog_data_new();
|
|
|
|
dialog_confirmation_data *data = yon_confirmation_dialog_data_new();
|
|
|
|
// data->action_text=DATABASE_UNACCESSIBLE_LABEL;
|
|
|
|
data->action_text=DATABASE_UNACCESSIBLE_LABEL;
|
|
|
|
// data->function = on_database_update;
|
|
|
|
data->function = on_database_update;
|
|
|
|
// data->data = widgets;
|
|
|
|
data->data = widgets;
|
|
|
|
// yon_confirmation_dialog_call(widgets->HeadOverlay,data);
|
|
|
|
yon_confirmation_dialog_call(widgets->HeadOverlay,data);
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
gtk_main();
|
|
|
|
gtk_main();
|
|
|
|
yon_packages_finish();
|
|
|
|
yon_packages_finish();
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
|