Author: jannis Date: 2009-06-17 00:13:13 +0000 (Wed, 17 Jun 2009) New Revision: 30039
Modified: thunar/branches/migration-to-gio/ChangeLog thunar/branches/migration-to-gio/thunar/thunar-shortcuts-view.c Log: * thunar/thunar-shortcuts-view.c: Don't request context menu items from Thunarx for files which don't exist. Reported by Nick. Modified: thunar/branches/migration-to-gio/ChangeLog =================================================================== --- thunar/branches/migration-to-gio/ChangeLog 2009-06-17 00:13:08 UTC (rev 30038) +++ thunar/branches/migration-to-gio/ChangeLog 2009-06-17 00:13:13 UTC (rev 30039) @@ -1,5 +1,10 @@ 2009-06-17 Jannis Pohlmann <jan...@xfce.org> + * thunar/thunar-shortcuts-view.c: Don't request context menu items + from Thunarx for files which don't exist. Reported by Nick. + +2009-06-17 Jannis Pohlmann <jan...@xfce.org> + * thunar/thunar-file.c: Refactor thunar_file_load() and thunar_file_get() a bit. For now, thunar_file_load() will always return successful, even if the GFileInfo cannot be loaded. This is Modified: thunar/branches/migration-to-gio/thunar/thunar-shortcuts-view.c =================================================================== --- thunar/branches/migration-to-gio/thunar/thunar-shortcuts-view.c 2009-06-17 00:13:08 UTC (rev 30038) +++ thunar/branches/migration-to-gio/thunar/thunar-shortcuts-view.c 2009-06-17 00:13:13 UTC (rev 30039) @@ -875,7 +875,7 @@ } /* create provider menu items if there is a non-trashed file */ - if (G_LIKELY (file != NULL && !thunar_file_is_trashed (file))) + if (G_LIKELY (file != NULL && thunar_file_exists (file) && !thunar_file_is_trashed (file))) { /* load the menu providers from the provider factory */ providers = thunarx_provider_factory_list_providers (view->provider_factory, THUNARX_TYPE_MENU_PROVIDER); _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits