diff --git a/source/view_edit.c b/source/view_edit.c index 7eb530a..410f4ba 100644 --- a/source/view_edit.c +++ b/source/view_edit.c @@ -140,4 +140,32 @@ char* edit_get_limit_cpu() { char* edit_get_limit_swap() { return philos_get_size_bite(edit_widgets->chkPaddingFLEdit, edit_widgets->spinPaddingFLEdit, edit_widgets->cmbPaddingFLEdit); +} + +// ================================================================= +void edit_set_select_device(char* str_value) { + +} +void edit_set_read_device(char* str_value) { + +} +void edit_set_write_device(char* str_value) { + +} +void edit_set_soft(char* str_value) { + +} +void edit_set_hard(char* str_value) { + +} +void edit_set_limit_cpu(char* str_value) { + if (str_value != '-') { // Баг + int i_value = ; + gtk_spin_button_set_digits(GTK_SPIN_BUTTON(edit_widgets->spinCPULimitEdit), atoi(str_value)); + } +} +void edit_set_limit_swap(char* str_value) { + + + } \ No newline at end of file diff --git a/source/view_edit.h b/source/view_edit.h index ec0bfd9..280ce8a 100644 --- a/source/view_edit.h +++ b/source/view_edit.h @@ -62,4 +62,11 @@ char* edit_get_hard(); char* edit_get_limit_cpu(); char* edit_get_limit_swap(); void wrapper_edit_show(); +void edit_set_select_device(char* str_value); +void edit_set_read_device(char* str_value); +void edit_set_write_device(char* str_value); +void edit_set_soft(char* str_value); +void edit_set_hard(char* str_value); +void edit_set_limit_cpu(char* str_value); +void edit_set_limit_swap(char* str_value); #endif \ No newline at end of file diff --git a/ubl-settings-resourcequota.desktop b/ubl-settings-resourcequota.desktop index 32ab4e6..9d7483e 100644 --- a/ubl-settings-resourcequota.desktop +++ b/ubl-settings-resourcequota.desktop @@ -7,7 +7,7 @@ GenericName[ru]=Квоты процессора и ОЗУ Comment=Configuring CPU and RAM quota settings for groups and users of the system Comment[ru]=Настройка параметров квот процессорного времени и ОЗУ для групп и пользователей системы Type=Application -Exec=pkexec ubl-settings-resourcequota +Exec=ubl-settings-resourcequota Icon=com.ublinux.ubl-settings-resourcequota Terminal=false X-XfcePluggable=true