Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mate-screensaver-preferences: Simplify mnemonic widget association #299

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions data/mate-screensaver-preferences.ui
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
<property name="label" translatable="yes">_Screensaver theme:</property>
<property name="use_markup">True</property>
<property name="use_underline">True</property>
<property name="mnemonic-widget">savers_treeview</property>
</object>
<packing>
<property name="expand">False</property>
Expand Down Expand Up @@ -411,6 +412,7 @@
<property name="hexpand">False</property>
<property name="label" translatable="yes">Regard the computer as _idle after:</property>
<property name="use_underline">True</property>
<property name="mnemonic-widget">activate_delay_hscale</property>
</object>
<packing>
<property name="left_attach">0</property>
Expand Down Expand Up @@ -443,6 +445,7 @@
<property name="label" translatable="yes">Time before l_ocking:</property>
<property name="tooltip-text" translatable="yes">Delay before locking the screen after the screensaver activated</property>
<property name="use_underline">True</property>
<property name="mnemonic-widget">lock_delay_hscale</property>
</object>
<packing>
<property name="left_attach">0</property>
Expand Down
8 changes: 0 additions & 8 deletions src/mate-screensaver-preferences.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down