diff --git a/source/ubinstall-gtk-advanced.c b/source/ubinstall-gtk-advanced.c index 7307fae..eca61be 100644 --- a/source/ubinstall-gtk-advanced.c +++ b/source/ubinstall-gtk-advanced.c @@ -646,6 +646,8 @@ int yon_advanced_save(main_window *widgets){ yon_config_remove_by_key(swap_size_parameter); } } + char *parameters = yon_config_get_all_info(); + yon_debug_output("%s\n",parameters); return 1; } @@ -673,6 +675,11 @@ void yon_advanced_part_parameter_changed(GtkWidget *self, advanced_partition *pa } } +gboolean on_format_changed(GtkWidget *self, gboolean , advanced_partition *part){ + yon_advanced_part_parameter_changed(self, part); + return 0; +} + advanced_partition *yon_advanced_partition_new(){ advanced_partition *part = new(advanced_partition); GtkBuilder *builder = gtk_builder_new_from_resource(glade_path_advanced_part); @@ -699,7 +706,7 @@ advanced_partition *yon_advanced_partition_new(){ g_signal_connect(G_OBJECT(part->EncryptionCombo),"changed",G_CALLBACK(yon_gtk_widget_set_sensitive_from_combo_box),part->EncryptionButton); g_signal_connect(G_OBJECT(part->EncryptionCombo),"changed",G_CALLBACK(yon_gtk_widget_set_sensitive_from_combo_box),part->EncryptionEntry); g_signal_connect(G_OBJECT(part->EncryptionEntry),"changed",G_CALLBACK(yon_advanced_part_parameter_changed),part); - g_signal_connect(G_OBJECT(part->FormatSwitch),"activate",G_CALLBACK(yon_advanced_part_parameter_changed),part); + g_signal_connect(G_OBJECT(part->FormatSwitch),"state-set",G_CALLBACK(on_format_changed),part); g_signal_connect(G_OBJECT(part->SizeCombo),"changed",G_CALLBACK(yon_advanced_part_parameter_changed),part); g_signal_connect(G_OBJECT(part->SizeSpin),"changed",G_CALLBACK(yon_advanced_part_parameter_changed),part); g_signal_connect(G_OBJECT(part->PartLabelEntry),"changed",G_CALLBACK(yon_advanced_part_parameter_changed),part); diff --git a/source/ubinstall-gtk.h b/source/ubinstall-gtk.h index f10e799..7a6413c 100755 --- a/source/ubinstall-gtk.h +++ b/source/ubinstall-gtk.h @@ -709,6 +709,7 @@ typedef struct { GtkWidget *EncryptionCombo; GtkWidget *EncryptionEntry; GtkWidget *EncryptionButton; + GtkWidget *SectionPartitionLabel; GSequenceIter *order_iter; enum ADVANCED_PART_TYPE part_type; @@ -1180,4 +1181,5 @@ void yon_advanced_section_update_section(advanced_partition *part,GtkWidget *cur int yon_advanced_section_get_by_part(advanced_partition *part); void yon_advanced_section_remove_by_name(char *part); void on_advanced_virtual_device_changed(GtkWidget *, main_window *widgets); -int yon_advanced_section_append(advanced_section *section); \ No newline at end of file +int yon_advanced_section_append(advanced_section *section); +gboolean on_format_changed(GtkWidget *self, gboolean state, advanced_partition *part); \ No newline at end of file diff --git a/ubinstall-gtk-advanced-box.glade b/ubinstall-gtk-advanced-box.glade index 9594bbc..61f8d64 100644 --- a/ubinstall-gtk-advanced-box.glade +++ b/ubinstall-gtk-advanced-box.glade @@ -1,5 +1,5 @@ - + @@ -48,7 +48,7 @@ False 5 - + True False New section at @@ -223,6 +223,7 @@ False 0 + Kb Mb Gb Tb