GNOME Bugzilla – Bug 721797
Hide menu items when unavailable
Last modified: 2014-01-14 19:21:28 UTC
.
Created attachment 265716 [details] [review] main: Hide DVD menu items when unavailable
Created attachment 265717 [details] [review] disc-recorder: Hide menu items when unavailable
Created attachment 265718 [details] [review] screenshot: Hide menu items when unavailable
Review of attachment 265716 [details] [review]: ::: data/totem.ui @@ +128,3 @@ <attribute name="action">app.eject</attribute> <attribute name="accel"><Ctrl>E</attribute> + <attribute name="hidden-when">disabled</attribute> Shouldn’t that be ‘action-disabled’?
Review of attachment 265717 [details] [review]: ::: src/plugins/brasero-disc-recorder/totem-disc-recorder.c @@ +345,3 @@ + g_menu_item_set_attribute_value (item, "hidden-when", + g_variant_new_string ("action-disabled")); + g_menu_append_item (menu, item); I think you should unref the GMenuItem after appending it.
Review of attachment 265718 [details] [review]: ::: src/plugins/screenshot/totem-screenshot-plugin.c @@ +347,1 @@ g_menu_append_item (G_MENU (menu), item); I think the GMenuItems here also need to be unreffed after being appended.
Pushed after fixing the review comments. Attachment 265716 [details] pushed as 803509d - main: Hide DVD menu items when unavailable Attachment 265717 [details] pushed as 895e533 - disc-recorder: Hide menu items when unavailable Attachment 265718 [details] pushed as bd01c10 - screenshot: Hide menu items when unavailable