[Xfce4-commits] [xfce/xfce4-session] 01/01: Add fallback theming to chooser dialogs
noreply at xfce.org
noreply at xfce.org
Sat May 11 00:15:33 CEST 2019
This is an automated email from the git hooks/post-receive script.
o c h o s i 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 xfce/xfce4-session.
commit b63c40833b542ad3fcafdcc3555084e8aec6715d
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sat May 11 00:12:45 2019 +0200
Add fallback theming to chooser dialogs
See also bca9d34da42c83854de0c51d099cd021349ba283
---
xfce4-session/xfsm-manager.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/xfce4-session/xfsm-manager.c b/xfce4-session/xfsm-manager.c
index 10936a6..14b74a8 100644
--- a/xfce4-session/xfsm-manager.c
+++ b/xfce4-session/xfsm-manager.c
@@ -681,6 +681,8 @@ again:
sessions, default_session);
gtk_window_set_screen (GTK_WINDOW (chooser), screen);
gtk_window_set_position (GTK_WINDOW (chooser), GTK_WIN_POS_CENTER);
+ /* Use Adwaita's keycap style to get a meaningful look out of the box */
+ gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (chooser)), "keycap");
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (chooser)), "xfsm-session-chooser");
result = gtk_dialog_run (GTK_DIALOG (chooser));
@@ -717,6 +719,8 @@ again:
gtk_window_set_screen (GTK_WINDOW (dialog), screen);
gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER);
gtk_container_set_border_width (GTK_CONTAINER (dialog), 12);
+ /* Use Adwaita's keycap style to get a meaningful look out of the box */
+ gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (dialog)), "keycap");
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (dialog)), "xfsm-session-chooser");
g_snprintf (title, 256, "<big><b>%s</b></big>",
_("Name for the new session"));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list