|
|
|
@ -306,7 +306,7 @@ void on_port_chosen_changed(GtkWidget *, monitor_edit_window *window){
|
|
|
|
dict=yon_dictionary_get(&main_config.supported_resolutions,port_name);
|
|
|
|
dict=yon_dictionary_get(&main_config.supported_resolutions,port_name);
|
|
|
|
if (dict){
|
|
|
|
if (dict){
|
|
|
|
int size;
|
|
|
|
int size;
|
|
|
|
config_str resolutions = yon_file_open(get_resolutions_supportable_command,&size);
|
|
|
|
config_str resolutions = yon_resource_open_file(get_resolutions_supportable_command,&size);
|
|
|
|
resolutions = yon_char_parsed_rip(resolutions,&size,0);
|
|
|
|
resolutions = yon_char_parsed_rip(resolutions,&size,0);
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
yon_char_remove_last_symbol(resolutions[i],'\n');
|
|
|
|
yon_char_remove_last_symbol(resolutions[i],'\n');
|
|
|
|
@ -366,7 +366,7 @@ void on_resolutions_unsupported_show(GtkToggleButton *self, monitor_edit_window
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->ResolutionCombo),0);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->ResolutionCombo),0);
|
|
|
|
if (gtk_toggle_button_get_active(self)){
|
|
|
|
if (gtk_toggle_button_get_active(self)){
|
|
|
|
int size;
|
|
|
|
int size;
|
|
|
|
config_str resolutions = yon_file_open(get_resolutions_supportable_command,&size);
|
|
|
|
config_str resolutions = yon_resource_open_file(get_resolutions_supportable_command,&size);
|
|
|
|
for (int i=1;i<size;i++){
|
|
|
|
for (int i=1;i<size;i++){
|
|
|
|
yon_char_remove_last_symbol(resolutions[i],'\n');
|
|
|
|
yon_char_remove_last_symbol(resolutions[i],'\n');
|
|
|
|
int parsed_size;
|
|
|
|
int parsed_size;
|
|
|
|
@ -1035,6 +1035,12 @@ gboolean yon_proprietary_clear(main_window *widgets){
|
|
|
|
return G_SOURCE_REMOVE;
|
|
|
|
return G_SOURCE_REMOVE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gboolean yon_proprietary_set(main_window *widgets){
|
|
|
|
|
|
|
|
gtk_tree_view_set_model(GTK_TREE_VIEW(widgets->DriversTree),GTK_TREE_MODEL(main_config.list));
|
|
|
|
|
|
|
|
gtk_widget_set_sensitive(widgets->LoadDriversButton,1);
|
|
|
|
|
|
|
|
return G_SOURCE_REMOVE;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gboolean yon_proprietary_append(struct proprietary_struct *target){
|
|
|
|
gboolean yon_proprietary_append(struct proprietary_struct *target){
|
|
|
|
GtkTreeIter iter;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
@ -1083,7 +1089,7 @@ void *yon_proprietary_local_get(main_window *widgets){
|
|
|
|
|
|
|
|
|
|
|
|
int size;
|
|
|
|
int size;
|
|
|
|
config_str rtn=NULL;
|
|
|
|
config_str rtn=NULL;
|
|
|
|
rtn = yon_file_open(get_proprietary_drivers_info_path,&size);
|
|
|
|
rtn = yon_resource_open_file(get_proprietary_drivers_info_path,&size);
|
|
|
|
for (int i=1;i<size;i++){
|
|
|
|
for (int i=1;i<size;i++){
|
|
|
|
if (rtn[i][strlen(rtn[i])-1]=='\n') rtn[i][strlen(rtn[i])-1] = '\0';
|
|
|
|
if (rtn[i][strlen(rtn[i])-1]=='\n') rtn[i][strlen(rtn[i])-1] = '\0';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -1116,8 +1122,7 @@ void *yon_proprietary_local_get(main_window *widgets){
|
|
|
|
char *status_text = yon_char_unite(yon_char_get_localised_from_lib(SUCCESS_LABEL),". ", !getuid()? main_config.load_mode==1?yon_char_get_localised_from_lib(LOCAL_LOAD_SUCCESS_LABEL):yon_char_get_localised_from_lib(GLOBAL_LOAD_SUCCESS_LABEL):yon_char_get_localised_from_lib(ROOT_WARNING_LABEL),NULL);
|
|
|
|
char *status_text = yon_char_unite(yon_char_get_localised_from_lib(SUCCESS_LABEL),". ", !getuid()? main_config.load_mode==1?yon_char_get_localised_from_lib(LOCAL_LOAD_SUCCESS_LABEL):yon_char_get_localised_from_lib(GLOBAL_LOAD_SUCCESS_LABEL):yon_char_get_localised_from_lib(ROOT_WARNING_LABEL),NULL);
|
|
|
|
yon_ubl_status_box_render_thread(status_text,!getuid()?BACKGROUND_IMAGE_SUCCESS_TYPE:BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
yon_ubl_status_box_render_thread(status_text,!getuid()?BACKGROUND_IMAGE_SUCCESS_TYPE:BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
free(status_text);
|
|
|
|
free(status_text);
|
|
|
|
gtk_tree_view_set_model(GTK_TREE_VIEW(widgets->DriversTree),GTK_TREE_MODEL(main_config.list));
|
|
|
|
g_idle_add((GSourceFunc)yon_proprietary_set,widgets);
|
|
|
|
gtk_widget_set_sensitive(widgets->LoadDriversButton,1);
|
|
|
|
|
|
|
|
g_thread_exit (NULL);
|
|
|
|
g_thread_exit (NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|