diff options
author | Colomban Wendling <[email protected]> | 2017-01-20 15:49:00 +0100 |
---|---|---|
committer | lukefromdc <[email protected]> | 2017-01-23 13:49:34 -0500 |
commit | bd25c5b4c173bb3541f204c60ffb9450a0d010cd (patch) | |
tree | ad2eb9960265614140dd46bee9131ea27603fbb8 /applets/notification_area/status-notifier/sn-item.c | |
parent | 5349369f93fa6900e5bf2733fd2a56108dffcbb6 (diff) | |
download | mate-panel-bd25c5b4c173bb3541f204c60ffb9450a0d010cd.tar.bz2 mate-panel-bd25c5b4c173bb3541f204c60ffb9450a0d010cd.tar.xz |
status-notifier: Fix elements display on GTK < 3.20
On GTK 3.20 onwards, themes are expected to use CSS names rather than
widget class names, and apparently CSS names are not inherited. So, a
derived widget altering its CSS name won't be styled as its parent
classes.
Thus, SnItem setting the CSS name "sn-item" avoids being styled as a
"button". But on older GTK versions, the widget class being used makes
this change ineffective.
Fix that by introducing a custom derived button that doesn't draw the
unwanted parts.
Diffstat (limited to 'applets/notification_area/status-notifier/sn-item.c')
-rw-r--r-- | applets/notification_area/status-notifier/sn-item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applets/notification_area/status-notifier/sn-item.c b/applets/notification_area/status-notifier/sn-item.c index fc0401b6..d102a6cc 100644 --- a/applets/notification_area/status-notifier/sn-item.c +++ b/applets/notification_area/status-notifier/sn-item.c @@ -57,7 +57,7 @@ static guint signals[LAST_SIGNAL] = { 0 }; static void na_item_init (NaItemInterface *iface); -G_DEFINE_ABSTRACT_TYPE_WITH_CODE (SnItem, sn_item, GTK_TYPE_BUTTON, +G_DEFINE_ABSTRACT_TYPE_WITH_CODE (SnItem, sn_item, SN_TYPE_FLAT_BUTTON, G_IMPLEMENT_INTERFACE (GTK_TYPE_ORIENTABLE, NULL) G_IMPLEMENT_INTERFACE (NA_TYPE_ITEM, |