diff options
author | monsta <[email protected]> | 2017-10-19 16:32:21 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2017-10-19 16:32:21 +0300 |
commit | 1704d9bfe61d83b17d90f6eb19a8a54504e5d760 (patch) | |
tree | 07ea89655e41f2aaf7a14b7e1fb6adee7f509704 /mate-volume-control | |
parent | c80588ff3c3b23d566eedb91dc92a6a3768d4eb6 (diff) | |
download | mate-media-1704d9bfe61d83b17d90f6eb19a8a54504e5d760.tar.bz2 mate-media-1704d9bfe61d83b17d90f6eb19a8a54504e5d760.tar.xz |
applet: restore icon for "Sound Preferences" menu item
this adds some deprecated code but brings back the icon
it was lost for GTK+3 build here:
https://github.com/mate-desktop/mate-media/commit/0c558fac14266f8c18cfb8bc1d4669ed35868c2f#diff-411bda4b8f441c44b560abc7245dd33cR264
Diffstat (limited to 'mate-volume-control')
-rw-r--r-- | mate-volume-control/gvc-stream-status-icon.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mate-volume-control/gvc-stream-status-icon.c b/mate-volume-control/gvc-stream-status-icon.c index f3304f7..24c5573 100644 --- a/mate-volume-control/gvc-stream-status-icon.c +++ b/mate-volume-control/gvc-stream-status-icon.c @@ -265,6 +265,7 @@ on_status_icon_popup_menu (GtkStatusIcon *status_icon, { GtkWidget *menu; GtkWidget *item; + GtkWidget *image; menu = gtk_menu_new (); @@ -290,8 +291,10 @@ on_status_icon_popup_menu (GtkStatusIcon *status_icon, gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); - /* FIXME: we lost an icon with migrating from gtk_image_menu_item_new_with_mnemonic */ - item = gtk_menu_item_new_with_mnemonic (_("_Sound Preferences")); + item = gtk_image_menu_item_new_with_mnemonic (_("_Sound Preferences")); + image = gtk_image_new_from_icon_name ("multimedia-volume-control", + GTK_ICON_SIZE_MENU); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image); g_signal_connect (G_OBJECT (item), "activate", |