[Xfce4-commits] [apps/xfce4-terminal] 01/01: Search dialog: Make opacity scale unfocusable
noreply at xfce.org
noreply at xfce.org
Sun Jul 7 23:10:48 CEST 2019
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-terminal.
commit defbb5baf4723a5294f6fc04527925c0fa84995c
Author: Igor <f2404 at yandex.ru>
Date: Sun Jul 7 17:09:42 2019 -0400
Search dialog: Make opacity scale unfocusable
This prevents the text entry from losing focus when the opacity scale is used.
---
terminal/terminal-search-dialog.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/terminal/terminal-search-dialog.c b/terminal/terminal-search-dialog.c
index b7a9432..4413ba8 100644
--- a/terminal/terminal-search-dialog.c
+++ b/terminal/terminal-search-dialog.c
@@ -169,6 +169,8 @@ terminal_search_dialog_init (TerminalSearchDialog *dialog)
opacity_scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, 10.0, 100.0, 1.0);
gtk_scale_set_value_pos (GTK_SCALE (opacity_scale), GTK_POS_RIGHT);
gtk_box_pack_start (GTK_BOX (opacity_box), opacity_scale, TRUE, TRUE, 0);
+ /* don't want text entry to lose focus when user changes opacity */
+ gtk_widget_set_can_focus (opacity_scale, FALSE);
percent_label = gtk_label_new ("%");
gtk_box_pack_start (GTK_BOX (opacity_box), percent_label, FALSE, FALSE, 0);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list