GNOME Bugzilla – Bug 163849
desensitize "Write to disk..." commands when burn:/// is empty
Last modified: 2006-06-20 13:59:35 UTC
Request: desensitize "Write to disk..." commands when there are no files in burn:// location Current behavior 1. Open File Browser and choose Go -> CD/DVD Creator and eventually remove all file inside it. 2. Choose toolbar button or sidepane button or menu entry to start writing files 3. The "No files selected" alert appears saying you can open the CD/DVD Creator. 4 Click "Open creator" and ... voilà! You have a new spatial CD/DVD creator window 5 Here you can select again File -> Write to Disk so you can restart from point 3 :-) Comments OK, users are not totally dumb, but IMHO if you can perform those action, it's a bug, not a feature.
*** Bug 153325 has been marked as a duplicate of this bug. ***
I completely agree. This looks like it is going to require some changes to nautilus. The window menu items (aka background_items) only seem to get updated on window creation or a manual "Reload". See nautilus/src/nautilus-window-menus.c:get_extension_menus(). On the other hand, the selection context menus (aka get_file_items) get updated more often. See nautilus/src/file-manager/fm-directory-view.c:real_update_menus(). There are many special case exceptions in fm-directory-view.c:real_update_menus() for nautilus internal menu items.
Please note that on current (2.13.x) n-c-b, the Write to Disk button on new nautilus bar is desensitized when there are no files/folders in burn:// (Changed to 2.13.x version. Do you think I've to update Gnome-version tag to current release too?)
The fix for bug #339273 makes this possible. 2006-06-20 William Jon McCann <mccann@jhu.edu> * configure.in: Require nautilus 2.15.3. * src/burn-extension.c: (nautilus_burn_get_background_items), (burn_monitor_cb): Set sensitivity of Write to disc menu item. Fixes #163849.