diff --git a/icons/emblems/com.ublinux.ubinstall-gtk.configure-complete.svg b/icons/emblems/com.ublinux.ubinstall-gtk.configure-complete.svg
new file mode 100644
index 0000000..0dfb650
--- /dev/null
+++ b/icons/emblems/com.ublinux.ubinstall-gtk.configure-complete.svg
@@ -0,0 +1,27 @@
+
diff --git a/icons/emblems/com.ublinux.ubinstall-gtk.install-complete.svg b/icons/emblems/com.ublinux.ubinstall-gtk.install-complete.svg
new file mode 100644
index 0000000..f7b2864
--- /dev/null
+++ b/icons/emblems/com.ublinux.ubinstall-gtk.install-complete.svg
@@ -0,0 +1,20 @@
+
diff --git a/icons/emblems/com.ublinux.ubinstall-gtk.install-error.svg b/icons/emblems/com.ublinux.ubinstall-gtk.install-error.svg
new file mode 100644
index 0000000..c676eeb
--- /dev/null
+++ b/icons/emblems/com.ublinux.ubinstall-gtk.install-error.svg
@@ -0,0 +1,18 @@
+
diff --git a/icons/emblems/com.ublinux.ubinstall-gtk.recovery-complete.svg b/icons/emblems/com.ublinux.ubinstall-gtk.recovery-complete.svg
new file mode 100644
index 0000000..6931c68
--- /dev/null
+++ b/icons/emblems/com.ublinux.ubinstall-gtk.recovery-complete.svg
@@ -0,0 +1,18 @@
+
diff --git a/icons/emblems/com.ublinux.ubinstall-gtk.settings-complete.svg b/icons/emblems/com.ublinux.ubinstall-gtk.settings-complete.svg
new file mode 100644
index 0000000..47e38d9
--- /dev/null
+++ b/icons/emblems/com.ublinux.ubinstall-gtk.settings-complete.svg
@@ -0,0 +1,37 @@
+
diff --git a/source/ubinstall-gtk-bootloader.c b/source/ubinstall-gtk-bootloader.c
index c780787..0c664e5 100644
--- a/source/ubinstall-gtk-bootloader.c
+++ b/source/ubinstall-gtk-bootloader.c
@@ -495,4 +495,16 @@ void yon_bootloader_init(main_window *widgets){
}
yon_char_parsed_free(admins_parsed,admins_size);
}
+}
+
+void on_bootloader_selected(GtkTreeView *,main_window *widgets){
+ GtkTreeModel *model = NULL;
+ GtkTreeIter iter;
+ if (gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(widgets->BootloadUserTree)),&model,&iter)){
+ gtk_widget_set_sensitive(widgets->BootloadUserRemoveButton,1);
+ gtk_widget_set_sensitive(widgets->BootloadUserEditButton,1);
+ } else {
+ gtk_widget_set_sensitive(widgets->BootloadUserRemoveButton,0);
+ gtk_widget_set_sensitive(widgets->BootloadUserEditButton,0);
+ }
}
\ No newline at end of file
diff --git a/source/ubinstall-gtk-configuration-mode.c b/source/ubinstall-gtk-configuration-mode.c
index 4d02b01..cc3c2cc 100644
--- a/source/ubinstall-gtk-configuration-mode.c
+++ b/source/ubinstall-gtk-configuration-mode.c
@@ -83,6 +83,24 @@ void on_configuration_exit(GtkWidget *,configuration_window *window){
}
}
+void yon_config_mode_start(main_window *widgets){
+ if (main_config.config_save_path){
+ yon_ubl_status_box_spawn(GTK_CONTAINER(widgets->StatusBox),CONFIGURATION_MODE_STATUS_LABEL,0,BACKGROUND_IMAGE_INFO_TYPE);
+ yon_ubl_status_box_spawn(GTK_CONTAINER(widgets->StatusBox2),CONFIG_PATH_LABEL(main_config.config_save_path),0,BACKGROUND_IMAGE_INFO_TYPE);
+ GList *revealerlist = gtk_container_get_children(GTK_CONTAINER(widgets->StatusBox2));
+ GList *list = gtk_container_get_children(GTK_CONTAINER(g_list_nth_data(revealerlist,0)));
+ GtkWidget *box = GTK_WIDGET(list->data);
+
+ g_list_free(revealerlist);
+ g_list_free(list);
+
+ gtk_style_context_remove_class(gtk_widget_get_style_context(box),"boxInfoMessOK");
+ gtk_style_context_add_class(gtk_widget_get_style_context(box),"boxInfoMessGray");
+ main_config.configure_mode = 1;
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->ConfigurationModeCheck),1);
+ }
+}
+
void on_configuration_mode_switch(GtkWidget *,main_window *widgets){
int active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->ConfigurationModeCheck));
if (!active){
@@ -113,21 +131,7 @@ void on_configuration_mode_switch(GtkWidget *,main_window *widgets){
}
gtk_widget_show(window->Window);
gtk_main();
-
- if (main_config.config_save_path){
- yon_ubl_status_box_spawn(GTK_CONTAINER(widgets->StatusBox),CONFIGURATION_MODE_STATUS_LABEL,0,BACKGROUND_IMAGE_INFO_TYPE);
- yon_ubl_status_box_spawn(GTK_CONTAINER(widgets->StatusBox2),CONFIG_PATH_LABEL(main_config.config_save_path),0,BACKGROUND_IMAGE_INFO_TYPE);
- GList *revealerlist = gtk_container_get_children(GTK_CONTAINER(widgets->StatusBox2));
- GList *list = gtk_container_get_children(GTK_CONTAINER(g_list_nth_data(revealerlist,0)));
- GtkWidget *box = GTK_WIDGET(list->data);
-
- g_list_free(revealerlist);
- g_list_free(list);
-
- gtk_style_context_remove_class(gtk_widget_get_style_context(box),"boxInfoMessOK");
- gtk_style_context_add_class(gtk_widget_get_style_context(box),"boxInfoMessGray");
- main_config.configure_mode = 1;
- }
+ yon_config_mode_start(widgets);
gtk_widget_destroy(window->Window);
} else {
diff --git a/source/ubinstall-gtk-network.c b/source/ubinstall-gtk-network.c
index 49702b1..4eb212f 100644
--- a/source/ubinstall-gtk-network.c
+++ b/source/ubinstall-gtk-network.c
@@ -360,6 +360,10 @@ void yon_network_init(main_window *widgets){
gtk_entry_set_text(GTK_ENTRY(widgets->NetworkDomainAdminEntry),domain_admin);
gtk_entry_set_text(GTK_ENTRY(widgets->NetworkDomainPasswordEntry),domain_password);
}
+ } else {
+ gtk_entry_set_text(GTK_ENTRY(widgets->NetworkDomainNameEntry),"");
+ gtk_entry_set_text(GTK_ENTRY(widgets->NetworkDomainPasswordEntry),"");
+ gtk_entry_set_text(GTK_ENTRY(widgets->NetworkDomainAdminEntry),"");
}
{
gtk_combo_box_text_remove_all(GTK_COMBO_BOX_TEXT(widgets->NetworkNTPCombo));
@@ -395,13 +399,17 @@ void yon_network_init(main_window *widgets){
}
gtk_entry_set_text(GTK_ENTRY(widgets->HotnameEntry),"");
if (!yon_char_is_empty(hostname)){
- gtk_switch_set_active(GTK_SWITCH(widgets->HostnameSensitiveSwitch),1);
if (!strcmp(hostname,"auto")){
+ gtk_switch_set_active(GTK_SWITCH(widgets->HostnameSensitiveSwitch),1);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->AutoHostnameCheck),1);
} else {
+ gtk_switch_set_active(GTK_SWITCH(widgets->HostnameSensitiveSwitch),0);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->AutoHostnameCheck),0);
gtk_entry_set_text(GTK_ENTRY(widgets->HotnameEntry),hostname);
}
+ } else {
+ gtk_switch_set_active(GTK_SWITCH(widgets->HostnameSensitiveSwitch),0);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->AutoHostnameCheck),0);
}
config_str parameters = yon_config_get_all_by_key(NETWORK_parameter_search,&size);
for (int i=0;iBootloadUserEditButton),"clicked",G_CALLBACK(on_bootloader_user_edit),widgets);
g_signal_connect(G_OBJECT(widgets->BootloadAdminCheckCell),"toggled",G_CALLBACK(on_bootloader_admin_toggled),widgets);
g_signal_connect(G_OBJECT(widgets->BootloadUserRemoveButton),"clicked",G_CALLBACK(on_bootloader_user_remove),widgets);
+ g_signal_connect(G_OBJECT(widgets->BootloadUserTree),"cursor-changed",G_CALLBACK(on_bootloader_selected),widgets);
g_signal_connect(G_OBJECT(widgets->BootloadTimerSwitch),"state-set",G_CALLBACK(yon_gtk_widget_set_sensitive_from_switch),widgets->BootloadTimerSpin);
@@ -982,6 +983,7 @@ void yon_main_window_create(main_window *widgets){
if (!yon_configuration_path_check(main_config.config_save_path)){
exit (1);
}
+ yon_config_mode_start(widgets);
}
{
char *command = yon_config_parameter_prepare_command(part_size_parameter_command,"default",NULL,NULL);
diff --git a/source/ubinstall-gtk.h b/source/ubinstall-gtk.h
index 4c02b9a..6f7b099 100755
--- a/source/ubinstall-gtk.h
+++ b/source/ubinstall-gtk.h
@@ -1624,4 +1624,6 @@ void yon_gtk_label_set_font(GtkLabel *label);
void on_kernel_info(GtkWidget *, char *link, kernel_row *row);
gboolean on_os_components_info(GtkWidget *, GdkEventButton *, os_row *row);
void on_software_info(GtkWidget*, main_window *widgets);
-void yon_packages_remove_empty_groups(main_window *widgets);
\ No newline at end of file
+void yon_packages_remove_empty_groups(main_window *widgets);
+void yon_config_mode_start(main_window *widgets);
+void on_bootloader_selected(GtkTreeView *,main_window *widgets);
\ No newline at end of file
diff --git a/ubinstall-gtk-configuration-mode.glade b/ubinstall-gtk-configuration-mode.glade
index 676b330..fa67475 100644
--- a/ubinstall-gtk-configuration-mode.glade
+++ b/ubinstall-gtk-configuration-mode.glade
@@ -47,7 +47,7 @@
True
False
start
- com.ublinux.ubinstall-gtk
+ com.ublinux.ubinstall-gtk.configuration
6
diff --git a/ubinstall-gtk-service-window.glade b/ubinstall-gtk-service-window.glade
index 007c3f2..e2fa23d 100644
--- a/ubinstall-gtk-service-window.glade
+++ b/ubinstall-gtk-service-window.glade
@@ -18,6 +18,7 @@
500
167
False
+ False
True