diff --git a/source/controler.c b/source/controler.c
index 42d3b56..75b8b33 100644
--- a/source/controler.c
+++ b/source/controler.c
@@ -181,6 +181,14 @@ void wrapper_edit_view_device_show(GtkWidget* self) {
g_signal_connect(G_OBJECT(get_widget_view_device()->btnSaveTempSave),"clicked",G_CALLBACK(entry_device_disk),&i);
}
+void on_status_changed(){
+ int active = gtk_combo_box_get_active(GTK_COMBO_BOX(get_widget_view_device()->cmbDeviceSetStatus));
+ if (active == 0|| active ==1)
+ gtk_widget_set_sensitive(get_widget_view_device()->boxBlockDisabledStatus,0);
+ else
+ gtk_widget_set_sensitive(get_widget_view_device()->boxBlockDisabledStatus,1);
+}
+
void wrapper_add_view_device_show(GtkWidget* self) {
view_device_set_vector_device(&all_config.v_disk_status);
view_device_set_index(-1);
@@ -189,6 +197,7 @@ void wrapper_add_view_device_show(GtkWidget* self) {
view_device_show(NULL, glade_path);
int i = 0;
g_signal_connect(G_OBJECT(get_widget_view_device()->btnSaveTempSave),"clicked",G_CALLBACK(entry_device_disk),&i);
+ g_signal_connect(G_OBJECT(get_widget_view_device()->cmbDeviceSetStatus),"changed",G_CALLBACK(on_status_changed),NULL);
}
void block_tree_view(hotebook* widgets,void (*f)()) {
diff --git a/source/view_set_disk.c b/source/view_set_disk.c
index 5d9a68c..e8b743e 100644
--- a/source/view_set_disk.c
+++ b/source/view_set_disk.c
@@ -53,6 +53,7 @@ view_device_set_window *view_device_setup_window_custom(view_device_set_window*
obj_view_device_widgets->DeviceCombo = yon_gtk_builder_get_widget(builder,"DeviceCombo");
obj_view_device_widgets->lblHeadQuotasEditDeviceWindow = yon_gtk_builder_get_widget(builder,"lblHeadQuotasEditDeviceWindow");
obj_view_device_widgets->boxBlockGuiAddEditDevice = yon_gtk_builder_get_widget(builder,"boxBlockGuiAddEditDevice");
+ obj_view_device_widgets->boxBlockDisabledStatus = yon_gtk_builder_get_widget(builder,"boxBlockDisabledStatus");
if (strcmp(view_device_set_add_edit, "add") == 0) {
gtk_label_set_label(GTK_LABEL(obj_view_device_widgets->lblHeadQuotasEditDeviceWindow), STR_TITLE_ADD_QUOTAS);
gtk_widget_hide(obj_view_device_widgets->lblNameDevice);
diff --git a/source/view_set_disk.h b/source/view_set_disk.h
index 34c08dd..b14c47b 100644
--- a/source/view_set_disk.h
+++ b/source/view_set_disk.h
@@ -35,6 +35,7 @@ typedef struct {
GtkWidget* cmbDeviceSetStatus;
GtkWidget* lblHeadQuotasEditDeviceWindow;
GtkWidget* boxBlockGuiAddEditDevice;
+ GtkWidget* boxBlockDisabledStatus;
char* name;
} view_device_set_window;
diff --git a/ubl-settings-diskquota.glade b/ubl-settings-diskquota.glade
index ed7f103..571c496 100644
--- a/ubl-settings-diskquota.glade
+++ b/ubl-settings-diskquota.glade
@@ -1774,202 +1774,83 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
False
True
- 1
+ 0
-
-
-
- True
- False
- 5
- 5
- 5
- 5
- 5
- 5
- 0.019999999552965164
- in
-
-
- True
- False
-
-
- True
- False
- 5
- 5
- 5
- 5
- 5
-
-
- True
- False
-
-
- True
- True
- 5
- 5
- 5
- 5
- 5
- 5
- 4
- 0
- adjustment5
-
-
- False
- True
- 0
-
-
-
-
-
- False
- True
- 0
-
-
-
-
- True
- False
-
-
- True
- True
- 5
- 5
- 5
- 5
- 5
- 5
- 4
- 0
- adjustment7
+
+
+
+ False
+ True
+ 0
+
+
+
+
+
+ False
+ True
+ 1
+
+
False
True
- 0
+ 2
-
-
- False
- True
- 1
-
+
+
+
+
+ True
+ False
+ The postponement period for exceeding the volume:
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ False
+ 5
+ 5
+ 5
+ 5
+ 5
+ 5
+ 0.019999999552965164
+ in
+
+
+ True
+ False
-
+
True
False
+ 5
+ 5
+ 5
+ 5
+ 5
-
+
True
- True
- 5
- 5
- 5
- 5
- 5
- 5
- 4
- 0
- adjustment9
+ False
+
+
+ True
+ True
+ 5
+ 5
+ 5
+ 5
+ 5
+ 5
+ 4
+ 0
+ adjustment5
+
+
+ False
+ True
+ 0
+
+
+
+
+
+ False
+ True
+ 1
+
+
False
@@ -2171,17 +2102,48 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-
-
- False
- True
- 2
-
-
-
-
- True
- False
-
+
True
- True
- 5
- 5
- 5
- 5
- 5
- 5
- 4
- 0
- adjustment11
+ False
+
+
+ True
+ True
+ 5
+ 5
+ 5
+ 5
+ 5
+ 5
+ 4
+ 0
+ adjustment9
+
+
+ False
+ True
+ 0
+
+
+
+
+
+ False
+ True
+ 1
+
+
False
True
- 0
+ 2
-
-
- False
- True
- 3
-
+
+
+ True
+ False
+ The delay period for exceeding files:
+
+
-
-
-
- True
- False
- The delay period for exceeding files:
-
+
+ False
+ True
+ 1
+
False
True
- 3
+ 1
@@ -3461,6 +3473,7 @@ translated and supported by community.
300
True
True
+ external
in