Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
thunar
thunar-use-eject-where-necessary.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File thunar-use-eject-where-necessary.patch of Package thunar
Thunar 0.9.0 displays the "Eject" menu item only for disc volumes. Apply this patch to fix that issue and have Thunar display "Eject" also for iPods and other volumes that require eject. Index: thunar/thunar-shortcuts-view.c =================================================================== --- thunar/thunar-shortcuts-view.c (revision 26456) +++ thunar/thunar-shortcuts-view.c (revision 26459) @@ -834,13 +834,12 @@ gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); gtk_widget_show (item); - /* check if the volume is a disc */ - if (thunar_vfs_volume_is_disc (volume)) + /* check if the volume is ejectable */ + if (thunar_vfs_volume_is_ejectable (volume)) { /* append the "Eject Volume" menu action */ item = gtk_image_menu_item_new_with_mnemonic (_("E_ject Volume")); g_signal_connect_swapped (G_OBJECT (item), "activate", G_CALLBACK (thunar_shortcuts_view_eject), view); - gtk_widget_set_sensitive (item, thunar_vfs_volume_is_ejectable (volume)); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); gtk_widget_show (item); } Index: thunar/thunar-tree-view.c =================================================================== --- thunar/thunar-tree-view.c (revision 26456) +++ thunar/thunar-tree-view.c (revision 26459) @@ -1041,13 +1041,12 @@ gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); gtk_widget_show (item); - /* check if the volume is a disc */ - if (thunar_vfs_volume_is_disc (volume)) + /* check if the volume is ejectable */ + if (thunar_vfs_volume_is_ejectable (volume)) { /* append the "Eject Volume" menu action */ item = gtk_image_menu_item_new_with_mnemonic (_("E_ject Volume")); g_signal_connect_swapped (G_OBJECT (item), "activate", G_CALLBACK (thunar_tree_view_action_eject), view); - gtk_widget_set_sensitive (item, thunar_vfs_volume_is_ejectable (volume)); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); gtk_widget_show (item); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor