|
|
|
|
@ -242,33 +242,6 @@ void on_scroll_lock_switch(GtkWidget *,int status,main_window *widgets){
|
|
|
|
|
yon_interface_update(widgets);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// void on_tty_changed(GtkWidget *, main_window *widgets){
|
|
|
|
|
// char *tty_layout = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(widgets->TTYLayoutCombo));
|
|
|
|
|
// if (!yon_char_is_empty(tty_layout)){
|
|
|
|
|
// yon_config_register(console_keymap_parameter,console_keymap_parameter_command,tty_layout);
|
|
|
|
|
// } else {
|
|
|
|
|
// yon_config_remove_by_key(console_keymap_parameter);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// void on_tty_keymap_changed(GtkWidget *, main_window *widgets){
|
|
|
|
|
// char *tty_layout = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(widgets->TTYKeymapCombo));
|
|
|
|
|
// if (!yon_char_is_empty(tty_layout)){
|
|
|
|
|
// yon_config_register(console_keymap_toggle_parameter,console_keymap_toggle_parameter_command,tty_layout);
|
|
|
|
|
// } else {
|
|
|
|
|
// yon_config_remove_by_key(console_keymap_toggle_parameter);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// void on_tty_font_changed(GtkWidget *, main_window *widgets){
|
|
|
|
|
// char *tty_layout = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(widgets->TTYFontCombo));
|
|
|
|
|
// if (!yon_char_is_empty(tty_layout)){
|
|
|
|
|
// yon_config_register(console_font_parameter,console_font_parameter_command,tty_layout);
|
|
|
|
|
// } else {
|
|
|
|
|
// yon_config_remove_by_key(console_font_parameter);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
void on_layout_default_sensitive_toggled(GtkWidget *, int status, main_window *widgets){
|
|
|
|
|
gtk_widget_set_sensitive(widgets->LayoutTree,!status);
|
|
|
|
|
gtk_widget_set_sensitive(widgets->LayoutAddButton,!status);
|
|
|
|
|
@ -444,6 +417,9 @@ int main(int argc, char *argv[]){
|
|
|
|
|
main_config.launch_arguments=yon_char_parsed_copy(argv,argc);
|
|
|
|
|
main_config.launch_size=argc;
|
|
|
|
|
yon_window_config_load(path);
|
|
|
|
|
if (getuid()!=0){
|
|
|
|
|
yon_ubl_status_box_render(yon_char_get_localised_from_lib(ROOT_WARNING_LABEL),BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
}
|
|
|
|
|
gtk_main();
|
|
|
|
|
return 0;
|
|
|
|
|
}
|