diff --git a/source/ubl-settings-system.c b/source/ubl-settings-system.c index 2842aab..17a3b0b 100644 --- a/source/ubl-settings-system.c +++ b/source/ubl-settings-system.c @@ -445,101 +445,16 @@ main_window *yon_main_window_complete(main_window *widgets){ int main(int argc, char *argv[]){ local=setlocale(LC_ALL, ""); - textdomain (LocaleName); + textdomain (LocaleName); config_init(); - int option_index=0; - int show_help=0; - int debug_mode=0; - { - struct option long_options[] = { - {"help", 0, 0, 'h'}, - {"version", 0, 0, 'V'}, - {"lock-help", 0,0, 1}, - {"lock-save", 0,0, 2}, - {"lock-save-local", 0,0, 3}, - {"lock-save-global", 0,0, 4}, - {"lock-load-global", 0,0, 5}, - {"socket-id", 1, 0, 's'}, - {"socket-ext-id", 1,0, 'e'}, - {"socket-trd-id", 1,0, 't'}, - {"clear-config", 0,0, 'c'}, - { NULL, 0, NULL, 0 } - }; - for (int i=0;iPlugBox,widgets->LeftBox,widgets->RightBox,main_config.socket_id,main_config.load_socket_id,main_config.save_socket_id); - // yon_window_config_setup(GTK_WINDOW(widgets->Window)); - // yon_window_config_load(config_path); - - // GtkCssProvider *css=gtk_css_provider_new(); - // gtk_css_provider_load_from_resource(css,CssPath); - // gtk_style_context_add_provider_for_screen(gdk_screen_get_default(), - // GTK_STYLE_PROVIDER(css), - // -1); + yon_window_config_load(config_path); gtk_main(); } \ No newline at end of file diff --git a/source/ubl-strings.h b/source/ubl-strings.h index 13d2c03..bf53924 100644 --- a/source/ubl-strings.h +++ b/source/ubl-strings.h @@ -1,6 +1,3 @@ -#define VERSION_LABEL yon_char_unite(_("Version:")," ",version_application,"\n",NULL) -#define HELP_LABEL yon_char_unite(_("ubl-settings-system version:")," ", version_application,"\n",_("System configuration"),"\n",_("Usage:"), " ubl-settings-system ",_("[OPTIONS]"),"\n",_("Options:"),"\n\t--help, -h\t\t\t",_("Show this help"),"\n\t--version, -V\t\t\t",_("Show package version"),"\n\t--lock-help\t\t\t",_("Lock this help menu"),"\n\t--lock-save\t\t\t",_("Lock configuration saving"),"\n\t--lock-save-local\t\t",_("Lock local configration saving"),"\n\t--lock-save-global\t\t",_("Lock global configration saving"),"\n\t--lock-load-global\t\t",_("Lock global configration loading"),"\n",NULL) - #define TITLE_LABEL _("System configuration") #define TITLE_INFO_LABEL _("System basic parameters configuration")