[Xfce4-commits] [xfce/xfce4-session] 01/01: Improve default style of the logout dialog
noreply at xfce.org
noreply at xfce.org
Tue Apr 30 01:20:50 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 d11864682bb63efcf8ae6ad410afe332e906bec9
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Tue Apr 30 01:18:19 2019 +0200
Improve default style of the logout dialog
Re-use Adwaita's keycap class, which is used for keyboard shortcut
overlays (read: decoration-less popup windows).
---
xfce4-session/xfsm-logout-dialog.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/xfce4-session/xfsm-logout-dialog.c b/xfce4-session/xfsm-logout-dialog.c
index 724f16a..57ccbb3 100644
--- a/xfce4-session/xfsm-logout-dialog.c
+++ b/xfce4-session/xfsm-logout-dialog.c
@@ -162,6 +162,8 @@ xfsm_logout_dialog_init (XfsmLogoutDialog *dialog)
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER);
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
+ /* 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-logout-dialog");
/* load xfconf settings */
@@ -171,7 +173,7 @@ xfsm_logout_dialog_init (XfsmLogoutDialog *dialog)
main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, BORDER);
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), main_vbox, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (main_vbox), BORDER);
+ gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
gtk_widget_show (main_vbox);
/* label showing the users' name */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list