changeset 2470:2848669e63a4

Added a menuitem for 'Rescan CD' into that other menu too, since 'Add CD' is in both.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 29 Mar 2008 12:14:17 +0200
parents 2d7b190acc76
children 6039012d8252
files src/cdaudio-ng/cdaudio-ng.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cdaudio-ng/cdaudio-ng.c	Sat Mar 29 12:08:06 2008 +0200
+++ b/src/cdaudio-ng/cdaudio-ng.c	Sat Mar 29 12:14:17 2008 +0200
@@ -208,6 +208,12 @@
 	audacious_menu_plugin_item_add(AUDACIOUS_MENU_MAIN, main_menu_item);
 	g_signal_connect(G_OBJECT(main_menu_item), "activate", G_CALLBACK(rescan_menu_click), NULL);
 
+	playlist_menu_item = gtk_image_menu_item_new_with_label(menu_item_text);
+	gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(playlist_menu_item), gtk_image_new_from_stock(GTK_STOCK_CDROM, GTK_ICON_SIZE_MENU));
+	gtk_widget_show(playlist_menu_item);
+	audacious_menu_plugin_item_add(AUDACIOUS_MENU_PLAYLIST_RCLICK, playlist_menu_item);
+	g_signal_connect(G_OBJECT(playlist_menu_item), "activate", G_CALLBACK(menu_click), NULL);
+
 	menu_item_text = _("Add CD");
 	main_menu_item = gtk_image_menu_item_new_with_label(menu_item_text);
 	gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(main_menu_item), gtk_image_new_from_stock(GTK_STOCK_CDROM, GTK_ICON_SIZE_MENU));