|
|
|
|
@ -936,6 +936,7 @@ void yon_main_window_create(main_window *widgets){
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->AboutMenuItem),"activate",G_CALLBACK(yon_on_about),NULL);
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->DocumentationMenuItem),"activate",G_CALLBACK(on_open_documentation_confirmation),WIKI_LINK);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
yon_gtk_entry_set_password_visibility_icon(GTK_ENTRY(widgets->UserRootPasswordEntry));
|
|
|
|
|
|
|
|
|
|
yon_window_config_setup(GTK_WINDOW(widgets->MainWindow));
|
|
|
|
|
@ -1030,6 +1031,10 @@ void yon_main_window_create(main_window *widgets){
|
|
|
|
|
|
|
|
|
|
gtk_tree_model_filter_set_visible_func(GTK_TREE_MODEL_FILTER(widgets->InstallerCountryFilter),(GtkTreeModelFilterVisibleFunc)on_country_filter,widgets,NULL);
|
|
|
|
|
|
|
|
|
|
if (main_config.autoinstall){
|
|
|
|
|
on_autoinstall_start(NULL,widgets);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
gtk_tree_view_set_search_equal_func(GTK_TREE_VIEW(widgets->LanguagesTree),(GtkTreeViewSearchEqualFunc)on_languages_search_func,widgets,NULL);
|
|
|
|
|
gtk_overlay_add_overlay(GTK_OVERLAY(widgets->RegionMapOverlay),widgets->TimeZoneMapOverlayBox);
|
|
|
|
|
gtk_overlay_set_overlay_pass_through(GTK_OVERLAY(widgets->RegionMapOverlay),widgets->TimeZoneMapOverlayBox,1);
|
|
|
|
|
@ -1119,13 +1124,13 @@ int main(int argc, char *argv[]){
|
|
|
|
|
int option_index = 0;
|
|
|
|
|
struct option long_options[] = {
|
|
|
|
|
{"dry-run", 0, 0, 'D'},
|
|
|
|
|
{"scenario", 0, 0, 's'},
|
|
|
|
|
// {"scenario", 0, 0, 's'},
|
|
|
|
|
{"autoinstall", 0, 0, 'A'},
|
|
|
|
|
{NULL, 0, NULL, 0}
|
|
|
|
|
};
|
|
|
|
|
optind = 1;
|
|
|
|
|
for (int i = 0; i < size; i++) {
|
|
|
|
|
int argument = getopt_long(argc, argv, "D", long_options, &option_index);
|
|
|
|
|
int argument = getopt_long(argc, argv, "DA", long_options, &option_index);
|
|
|
|
|
switch (argument) {
|
|
|
|
|
case 'D':
|
|
|
|
|
main_config.dry_run = 1;
|
|
|
|
|
|