From 33a79aed09708c918f1f82acc5e0eecb18b88211 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Tue, 21 May 2024 12:17:32 +0200 Subject: mate-screensaver-preferences: Simplify mnemonic widget association --- data/mate-screensaver-preferences.ui | 3 +++ src/mate-screensaver-preferences.c | 8 -------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/data/mate-screensaver-preferences.ui b/data/mate-screensaver-preferences.ui index e5ef573..b43f71a 100644 --- a/data/mate-screensaver-preferences.ui +++ b/data/mate-screensaver-preferences.ui @@ -286,6 +286,7 @@ _Screensaver theme: True True + savers_treeview False @@ -411,6 +412,7 @@ False Regard the computer as _idle after: True + activate_delay_hscale 0 @@ -443,6 +445,7 @@ Time before l_ocking: Delay before locking the screen after the screensaver activated True + lock_delay_hscale 0 diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c index 1bcdcaf..993dae4 100644 --- a/src/mate-screensaver-preferences.c +++ b/src/mate-screensaver-preferences.c @@ -1624,7 +1624,6 @@ init_capplet (void) GtkWidget *list_scroller; GtkWidget *activate_delay_hscale; GtkWidget *lock_delay_hscale; - GtkWidget *label; GtkWidget *enabled_checkbox; GtkWidget *lock_checkbox; GtkWidget *root_warning_label; @@ -1685,13 +1684,6 @@ init_capplet (void) fullscreen_preview_next = GTK_WIDGET (gtk_builder_get_object (builder, "fullscreen_preview_next_button")); picture_filename = GTK_WIDGET (gtk_builder_get_object (builder, "picture_filename")); - label = GTK_WIDGET (gtk_builder_get_object (builder, "activate_delay_label")); - gtk_label_set_mnemonic_widget (GTK_LABEL (label), activate_delay_hscale); - label = GTK_WIDGET (gtk_builder_get_object (builder, "lock_delay_label")); - gtk_label_set_mnemonic_widget (GTK_LABEL (label), lock_delay_hscale); - label = GTK_WIDGET (gtk_builder_get_object (builder, "savers_label")); - gtk_label_set_mnemonic_widget (GTK_LABEL (label), treeview); - gtk_widget_set_no_show_all (root_warning_label, TRUE); widget_set_best_visual (preview); -- cgit v1.2.1