From b970ec9e8bc26e7a2c65d004e1ae3118e6b4d2af Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Thu, 30 Jan 2025 18:06:14 +0600 Subject: [PATCH] Added entry blockings function --- source/ubl-settings-logging.c | 3 ++ ubl-settings-logging-add-path.glade | 31 ++++++------ ubl-settings-logging-logrotate.glade | 72 +++++++++++----------------- 3 files changed, 46 insertions(+), 60 deletions(-) diff --git a/source/ubl-settings-logging.c b/source/ubl-settings-logging.c index 12c419f..1b734d3 100644 --- a/source/ubl-settings-logging.c +++ b/source/ubl-settings-logging.c @@ -2332,6 +2332,8 @@ void on_log_path_append(GtkWidget *self, add_log_window *window){ GtkWidget *AppendButton = yon_gtk_builder_get_widget(builder,"AppendButton"); GtkWidget *SearchButton = yon_gtk_builder_get_widget(builder,"SearchButton"); GtkWidget *RemoveButton = yon_gtk_builder_get_widget(builder,"RemoveButton"); + GtkWidget *PathEntry = yon_gtk_builder_get_widget(builder,"PathEntry"); + yon_entry_set_entry_type(GTK_ENTRY(PathEntry),GTK_BOX(window->StatusBox)); g_signal_connect(G_OBJECT(AppendButton),"clicked",G_CALLBACK(on_log_path_append),window); g_signal_connect(G_OBJECT(RemoveButton),"clicked",G_CALLBACK(on_log_path_remove),window); g_signal_connect(G_OBJECT(SearchButton),"clicked",G_CALLBACK(on_log_path_choose),window); @@ -2450,6 +2452,7 @@ void on_log_edit(GtkWidget *,main_window *widgets){ GtkWidget *AppendButton = yon_gtk_builder_get_widget(builder,"AppendButton"); GtkWidget *SearchButton = yon_gtk_builder_get_widget(builder,"SearchButton"); GtkWidget *RemoveButton = yon_gtk_builder_get_widget(builder,"RemoveButton"); + yon_entry_set_entry_type(GTK_ENTRY(entry),GTK_BOX(window->StatusBox)); if (protected + + True + False + com.ublinux.ubl-settings-logging.increase-symbolic + + + True + False + com.ublinux.ubl-settings-logging.zoom-symbolic + + + True + False + com.ublinux.ubl-settings-logging.decrease-symbolic + True False @@ -23,6 +38,7 @@ True True + url True @@ -78,19 +94,4 @@ - - True - False - com.ublinux.ubl-settings-logging.increase-symbolic - - - True - False - com.ublinux.ubl-settings-logging.zoom-symbolic - - - True - False - com.ublinux.ubl-settings-logging.decrease-symbolic - diff --git a/ubl-settings-logging-logrotate.glade b/ubl-settings-logging-logrotate.glade index 30ff5a1..65bd703 100644 --- a/ubl-settings-logging-logrotate.glade +++ b/ubl-settings-logging-logrotate.glade @@ -81,7 +81,7 @@ True False - process-stop-symbolic + com.ublinux.libublsettingsui-gtk3.cancel-symbolic True @@ -104,7 +104,6 @@ False True com.ublinux.ubl-settings-logging - True True @@ -220,6 +219,7 @@ True True + terminal True @@ -2072,48 +2072,6 @@ 1 - - - True - False - end - 5 - - - Save - True - True - True - image9 - - - True - True - end - 0 - - - - - Cancel - True - True - True - image8 - - - True - True - 1 - - - - - False - True - 2 - - True @@ -2127,7 +2085,6 @@ True False - True True @@ -2157,6 +2114,31 @@ com.ublinux.ubl-settings-logging + + + Cancel + True + True + True + image8 + + + 1 + + + + + Save + True + True + True + image9 + + + end + 2 + +