|
|
|
@ -667,6 +667,10 @@ void on_monitor_delete(GtkWidget *self,monitor_data *window){
|
|
|
|
GtkWidget *target = gtk_widget_get_parent(window->ScreenOverlay);
|
|
|
|
GtkWidget *target = gtk_widget_get_parent(window->ScreenOverlay);
|
|
|
|
GtkWidget *flow_box = gtk_widget_get_parent(target);
|
|
|
|
GtkWidget *flow_box = gtk_widget_get_parent(target);
|
|
|
|
gtk_container_remove(GTK_CONTAINER(flow_box),target);
|
|
|
|
gtk_container_remove(GTK_CONTAINER(flow_box),target);
|
|
|
|
|
|
|
|
const char *target_monitor = gtk_label_get_text(GTK_LABEL(window->NameLabel));
|
|
|
|
|
|
|
|
if (!yon_char_is_empty(target_monitor)){
|
|
|
|
|
|
|
|
yon_config_remove_by_key(XORG_MONITOR((char*)target_monitor));
|
|
|
|
|
|
|
|
}
|
|
|
|
free(window);
|
|
|
|
free(window);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -888,7 +892,7 @@ void on_monitor_configure(GtkWidget *self,monitor_data *window){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for (int i=0;i<main_config.portssize;i++){
|
|
|
|
for (int i=0;i<main_config.portssize;i++){
|
|
|
|
int found = yon_char_parsed_check_exist(config_ports,config_size,main_config.ports[i]);
|
|
|
|
int found = yon_char_parsed_check_exist(config_ports,config_size,main_config.ports[i]);
|
|
|
|
if (found==-1||(!yon_char_is_empty(target)&&!strcmp(target,main_config.ports[i]))){
|
|
|
|
if (found==-1||(!yon_char_is_empty(target)&&!strcmp(target,main_config.ports[i]))||yon_config_get_status(XORG_MONITOR(main_config.ports[i]))==-1){
|
|
|
|
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(monitors->PortCombo),main_config.ports[i]);
|
|
|
|
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(monitors->PortCombo),main_config.ports[i]);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|