From 0896120c6a21a675d0b231b7f2a193a3eec40843 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Fri, 26 May 2023 17:58:52 +0600 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=87=D0=B0=D0=BB=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D1=83=20=D0=BD=D0=B0=D0=B4=20=D1=81=D0=B5?= =?UTF-8?q?=D1=82=D0=B5=D1=80=D0=B0=D0=BC=D0=B8=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=BE=D0=BA=D0=BD=D0=B0=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/view_edit.c | 28 ++++++++++++++++++++++++++++ source/view_edit.h | 7 +++++++ ubl-settings-resourcequota.desktop | 2 +- 3 files changed, 36 insertions(+), 1 deletion(-) 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