[Xfce4-commits] [xfce/xfce4-session] 01/01: Reset font-size of logout dialog to default (Bug #15505)
noreply at xfce.org
noreply at xfce.org
Sat Jun 29 00:26:58 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 7e00dcf456e2c6bc05ab51e662e8c5cc0625d181
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Thu Jun 27 01:39:10 2019 +0200
Reset font-size of logout dialog to default (Bug #15505)
The keycap class sets a smaller font by default in Adwaita.
---
xfce4-session/xfsm-logout-dialog.c | 55 +++++++++++++++++++++-----------------
1 file changed, 31 insertions(+), 24 deletions(-)
diff --git a/xfce4-session/xfsm-logout-dialog.c b/xfce4-session/xfsm-logout-dialog.c
index 4af0bce..6feca03 100644
--- a/xfce4-session/xfsm-logout-dialog.c
+++ b/xfce4-session/xfsm-logout-dialog.c
@@ -131,30 +131,31 @@ xfsm_logout_dialog_class_init (XfsmLogoutDialogClass *klass)
static void
xfsm_logout_dialog_init (XfsmLogoutDialog *dialog)
{
- const gchar *username;
- GtkWidget *label;
- gchar *label_str;
- PangoAttrList *attrs;
- GtkWidget *vbox;
- GtkWidget *button_vbox;
- GtkWidget *main_vbox;
- GtkWidget *hbox;
- GtkWidget *button;
- gboolean can_shutdown;
- gboolean save_session = FALSE;
- gboolean can_restart;
- gboolean can_suspend = FALSE;
- gboolean can_hibernate = FALSE;
- gboolean can_hybrid_sleep = FALSE;
- gboolean can_switch_user = FALSE;
- gboolean auth_suspend = FALSE;
- gboolean auth_hibernate = FALSE;
- gboolean auth_hybrid_sleep = FALSE;
- GError *error = NULL;
- XfconfChannel *channel;
- GtkWidget *image;
- GtkWidget *separator;
- gboolean upower_not_found = FALSE;
+ const gchar *username;
+ GtkWidget *label;
+ gchar *label_str;
+ PangoAttrList *attrs;
+ GtkWidget *vbox;
+ GtkWidget *button_vbox;
+ GtkWidget *main_vbox;
+ GtkWidget *hbox;
+ GtkWidget *button;
+ gboolean can_shutdown;
+ gboolean save_session = FALSE;
+ gboolean can_restart;
+ gboolean can_suspend = FALSE;
+ gboolean can_hibernate = FALSE;
+ gboolean can_hybrid_sleep = FALSE;
+ gboolean can_switch_user = FALSE;
+ gboolean auth_suspend = FALSE;
+ gboolean auth_hibernate = FALSE;
+ gboolean auth_hybrid_sleep = FALSE;
+ GError *error = NULL;
+ XfconfChannel *channel;
+ GtkWidget *image;
+ GtkWidget *separator;
+ gboolean upower_not_found = FALSE;
+ GtkCssProvider *provider;
dialog->type_clicked = XFSM_SHUTDOWN_LOGOUT;
dialog->shutdown = xfsm_shutdown_get ();
@@ -165,6 +166,12 @@ xfsm_logout_dialog_init (XfsmLogoutDialog *dialog)
/* 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");
+ provider = gtk_css_provider_new ();
+ gtk_css_provider_load_from_data (provider, ".xfsm-logout-dialog { font-size: initial; }", -1, NULL);
+ gtk_style_context_add_provider (gtk_widget_get_style_context (GTK_WIDGET (dialog)),
+ GTK_STYLE_PROVIDER (provider),
+ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+ g_object_unref (provider);
/* load xfconf settings */
channel = xfsm_open_config ();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list