summaryrefslogtreecommitdiff
path: root/applets/notification_area/status-notifier/sn-dbus-menu-item.c
diff options
context:
space:
mode:
authorLuke from DC <[email protected]>2023-06-15 18:30:56 +0000
committerGitHub <[email protected]>2023-06-15 18:30:56 +0000
commite61dad01e852d7913f4c9b3dae508088e3e7b287 (patch)
tree84712c763091a6890b8048468dcf8a399bb20ef3 /applets/notification_area/status-notifier/sn-dbus-menu-item.c
parent4350e7e839ec1ecd2eb063a2e250b843162ee418 (diff)
downloadmate-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/sn-dbus-menu-item.c')
-rw-r--r--applets/notification_area/status-notifier/sn-dbus-menu-item.c1
1 files changed, 1 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);
}