diff options
author | Luke from DC <[email protected]> | 2023-06-15 18:30:56 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-06-15 18:30:56 +0000 |
commit | e61dad01e852d7913f4c9b3dae508088e3e7b287 (patch) | |
tree | 84712c763091a6890b8048468dcf8a399bb20ef3 /applets/notification_area/status-notifier | |
parent | 4350e7e839ec1ecd2eb063a2e250b843162ee418 (diff) | |
download | mate-panel-e61dad01e852d7913f4c9b3dae508088e3e7b287.tar.bz2 mate-panel-e61dad01e852d7913f4c9b3dae508088e3e7b287.tar.xz |
Wayland, Tray applet: allow in-process applet to load, using SNI only (#1372)
*We cannot load the legacy system tray in Wayland as that requires xembed.
*We CAN load the status-notifier (SNI support)
*Wayland needs us to explicitly set gtk_button_set_always_show_image to TRUE
*Wayland needs us to explicitly set gtk_image_menu_item_set_always_show_image to TRUE
Diffstat (limited to 'applets/notification_area/status-notifier')
-rw-r--r-- | applets/notification_area/status-notifier/sn-dbus-menu-item.c | 1 | ||||
-rw-r--r-- | applets/notification_area/status-notifier/sn-item.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/applets/notification_area/status-notifier/sn-dbus-menu-item.c b/applets/notification_area/status-notifier/sn-dbus-menu-item.c index 62f21ca7..48a34652 100644 --- a/applets/notification_area/status-notifier/sn-dbus-menu-item.c +++ b/applets/notification_area/status-notifier/sn-dbus-menu-item.c @@ -204,6 +204,7 @@ sn_dbus_menu_item_new (GVariant *props) } item->item = gtk_image_menu_item_new (); + gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item->item), TRUE); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item->item), image); } diff --git a/applets/notification_area/status-notifier/sn-item.c b/applets/notification_area/status-notifier/sn-item.c index 3dd0d605..9677e67e 100644 --- a/applets/notification_area/status-notifier/sn-item.c +++ b/applets/notification_area/status-notifier/sn-item.c @@ -358,6 +358,7 @@ sn_item_ready (SnItem *item) priv = SN_ITEM (item)->priv; priv->menu = sn_dbus_menu_new (priv->bus_name, menu); g_object_ref_sink (priv->menu); + gtk_button_set_always_show_image (GTK_BUTTON (item),TRUE); } static const gchar * |