[nautilus-actions] Desktop provider doesn't handle menus yet
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Desktop provider doesn't handle menus yet
- Date: Tue, 1 Dec 2009 22:45:36 +0000 (UTC)
commit cd963d484e498f8e313415c96e7ecbeca882378c
Author: Pierre Wieser <pwieser trychlos org>
Date: Tue Dec 1 23:45:31 2009 +0100
Desktop provider doesn't handle menus yet
ChangeLog | 3 +++
nautilus-actions/io-provider-desktop/nadp-write.c | 6 ++++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cf008e5..0e987f4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-12-01 Pierre Wieser <pwieser trychlos org>
+ * nautilus-actions/io-provider-desktop/nadp-write.c
+ (nadp_iio_provider_is_writable): Do not handle menus yet.
+
* nautilus-actions/io-provider-desktop/nadp-read.c
(action_from_desktop_path): Have at least one profile for the action.
(read_item_properties): Set object id.
diff --git a/nautilus-actions/io-provider-desktop/nadp-write.c b/nautilus-actions/io-provider-desktop/nadp-write.c
index e981a00..dcec005 100644
--- a/nautilus-actions/io-provider-desktop/nadp-write.c
+++ b/nautilus-actions/io-provider-desktop/nadp-write.c
@@ -86,6 +86,7 @@ nadp_iio_provider_is_willing_to_write( const NAIIOProvider *provider )
gboolean
nadp_iio_provider_is_writable( const NAIIOProvider *provider, const NAObjectItem *item )
{
+ static const gchar *thisfn = "nadp_iio_provider_is_writable";
gboolean writable;
NadpDesktopFile *ndf;
gchar *path;
@@ -94,6 +95,11 @@ nadp_iio_provider_is_writable( const NAIIOProvider *provider, const NAObjectItem
g_return_val_if_fail( NADP_IS_DESKTOP_PROVIDER( provider ), writable );
g_return_val_if_fail( NA_IS_OBJECT_ITEM( item ), writable );
+ if( NA_IS_OBJECT_MENU( item )){
+ g_warning( "%s: menu are not yet handled by Desktop provider", thisfn );
+ return( FALSE );
+ }
+
ndf = ( NadpDesktopFile * ) g_object_get_data( G_OBJECT( item ), "nadp-desktop-file" );
if( ndf ){
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]