|
|
|
|
@ -1,6 +1,11 @@
|
|
|
|
|
#include "ubinstall-gtk.h"
|
|
|
|
|
|
|
|
|
|
config main_config;
|
|
|
|
|
|
|
|
|
|
void yon_license_init(main_window *widgets){
|
|
|
|
|
gtk_widget_set_sensitive(widgets->NextButton,0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void yon_open_browser(GtkWidget *, char *link){
|
|
|
|
|
GtkWidget *window = yon_ubl_browser_window_open(link,TITLE_LABEL);
|
|
|
|
|
if (window)
|
|
|
|
|
@ -803,6 +808,8 @@ void yon_main_window_create(main_window *widgets){
|
|
|
|
|
widgets->StatusBox2 = yon_gtk_builder_get_widget(builder,"StatusBox2");
|
|
|
|
|
widgets->Notebook = yon_gtk_builder_get_widget(builder,"Notebook");
|
|
|
|
|
widgets->MainSpinner=yon_gtk_builder_get_widget(builder,"MainSpinner");
|
|
|
|
|
widgets->LicenseAgreeRadio = yon_gtk_builder_get_widget(builder,"LicenseAgreeRadio");
|
|
|
|
|
widgets->LicenseDisgreeRadio = yon_gtk_builder_get_widget(builder,"LicenseDisgreeRadio");
|
|
|
|
|
|
|
|
|
|
widgets->EnableVNCMenuItem = yon_gtk_builder_get_widget(builder,"EnableVNCMenuItem");
|
|
|
|
|
widgets->DocumentationMenuItem = yon_ubl_menu_item_documentation_new(DOCUMENTATION_LABEL);
|
|
|
|
|
@ -1063,6 +1070,8 @@ void yon_main_window_create(main_window *widgets){
|
|
|
|
|
gtk_menu_shell_append(GTK_MENU_SHELL(menu),widgets->DocumentationMenuItem);
|
|
|
|
|
gtk_menu_shell_append(GTK_MENU_SHELL(menu),widgets->AboutMenuItem);
|
|
|
|
|
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->LicenseAgreeRadio),"toggled",G_CALLBACK(yon_gtk_widget_set_sensitive_from_toggle_button),widgets->NextButton);
|
|
|
|
|
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->LoadGlobalConfigurationMenuItem),"activate",G_CALLBACK(on_config_global_load),widgets);
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->LoadLocalConfigurationMenuItem),"activate",G_CALLBACK(on_config_local_load),widgets);
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->LoadExternalConfigurationMenuItem),"activate",G_CALLBACK(on_config_custom_load),widgets);
|
|
|
|
|
|