[Xfce4-commits] [apps/xfce4-notifyd] 02/02: Switch to new fallback style class "keycap"
noreply at xfce.org
noreply at xfce.org
Tue Oct 8 10:50:20 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 apps/xfce4-notifyd.
commit e4df993c1130ada6258b9fabf7d725671b4d03e2
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Tue Oct 8 10:27:53 2019 +0200
Switch to new fallback style class "keycap"
As it uses rounded corners, keycap is nicer than .osd or
.app-notification, as both of those classes are intended to be used
within windows, not for windows themselves.
---
xfce4-notifyd/xfce-notify-daemon.c | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/xfce4-notifyd/xfce-notify-daemon.c b/xfce4-notifyd/xfce-notify-daemon.c
index ed82b04..2e7b7fd 100644
--- a/xfce4-notifyd/xfce-notify-daemon.c
+++ b/xfce4-notifyd/xfce-notify-daemon.c
@@ -1004,10 +1004,8 @@ notify_update_theme_for_window (XfceNotifyDaemon *xndaemon, GtkWidget *window, g
if (!xndaemon->is_default_theme)
{
- if (gtk_style_context_has_class (context, "osd"))
- gtk_style_context_remove_class (context, "osd");
- if (gtk_style_context_has_class (context, "app-notification"))
- gtk_style_context_remove_class (context, "app-notification");
+ if (gtk_style_context_has_class (context, "keycap"))
+ gtk_style_context_remove_class (context, "keycap");
add_and_propagate_css_provider (GTK_WIDGET(window),
GTK_STYLE_PROVIDER(xndaemon->css_provider),
@@ -1016,11 +1014,8 @@ notify_update_theme_for_window (XfceNotifyDaemon *xndaemon, GtkWidget *window, g
else
{
/* These classes are normally defined in themes */
- if (!gtk_style_context_has_class (context, "osd"))
- gtk_style_context_add_class (context, "osd");
-
- if (!gtk_style_context_has_class (context, "app-notification"))
- gtk_style_context_add_class (context, "app-notification");
+ if (!gtk_style_context_has_class (context, "keycap"))
+ gtk_style_context_add_class (context, "keycap");
/* Contains few style definition, use it as a fallback */
add_and_propagate_css_provider (GTK_WIDGET(window),
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list