[nautilus-sendto] Add ID parameter to the send call
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-sendto] Add ID parameter to the send call
- Date: Tue, 21 Sep 2010 10:40:55 +0000 (UTC)
commit d5f80ecdc8199ae2bb77d829d8f48a0b2226c1fb
Author: Bastien Nocera <hadess hadess net>
Date: Tue Sep 21 11:38:54 2010 +0100
Add ID parameter to the send call
So the plugin knows which page should send
src/plugins/evolution/evolution.c | 1 +
src/plugins/nautilus-sendto-plugin.c | 4 +++-
src/plugins/nautilus-sendto-plugin.h | 4 +++-
src/plugins/removable-devices/removable-devices.c | 1 +
4 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/evolution/evolution.c b/src/plugins/evolution/evolution.c
index 336ad40..bf6a206 100644
--- a/src/plugins/evolution/evolution.c
+++ b/src/plugins/evolution/evolution.c
@@ -430,6 +430,7 @@ get_sylpheed_mailto (EvolutionPlugin *p,
static void
evolution_plugin_send_files (NautilusSendtoPlugin *plugin,
+ const char *id,
GList *file_list,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/src/plugins/nautilus-sendto-plugin.c b/src/plugins/nautilus-sendto-plugin.c
index c2ee238..8d43e1d 100644
--- a/src/plugins/nautilus-sendto-plugin.c
+++ b/src/plugins/nautilus-sendto-plugin.c
@@ -97,6 +97,7 @@ nautilus_sendto_plugin_supports_mime_types (NautilusSendtoPlugin *plugin,
*/
void
nautilus_sendto_plugin_send_files (NautilusSendtoPlugin *plugin,
+ const char *id,
GList *file_list,
GAsyncReadyCallback callback,
gpointer user_data)
@@ -104,11 +105,12 @@ nautilus_sendto_plugin_send_files (NautilusSendtoPlugin *plugin,
NautilusSendtoPluginInterface *iface;
g_return_if_fail (NAUTILUS_SENDTO_IS_PLUGIN (plugin));
+ g_return_if_fail (id != NULL);
iface = NAUTILUS_SENDTO_PLUGIN_GET_IFACE (plugin);
if (G_LIKELY (iface->send_files != NULL))
- iface->send_files (plugin, file_list, callback, user_data);
+ iface->send_files (plugin, id, file_list, callback, user_data);
}
/**
diff --git a/src/plugins/nautilus-sendto-plugin.h b/src/plugins/nautilus-sendto-plugin.h
index 38c7211..00a74e8 100644
--- a/src/plugins/nautilus-sendto-plugin.h
+++ b/src/plugins/nautilus-sendto-plugin.h
@@ -50,6 +50,7 @@ struct _NautilusSendtoPluginInterface
GList *file_list,
const char **mime_types);
void (*send_files) (NautilusSendtoPlugin *plugin,
+ const char *id,
GList *file_list,
GAsyncReadyCallback callback,
gpointer user_data);
@@ -71,6 +72,7 @@ gboolean nautilus_sendto_plugin_supports_mime_types (NautilusSendtoPlugin *pl
GList *file_list,
const char **mime_types);
void nautilus_sendto_plugin_send_files (NautilusSendtoPlugin *plugin,
+ const char *id,
GList *file_list,
GAsyncReadyCallback callback,
gpointer user_data);
@@ -81,7 +83,7 @@ NautilusSendtoSendStatus nautilus_sendto_plugin_send_files_finish (NautilusSendt
#define NAUTILUS_PLUGIN_REGISTER(TYPE_NAME, TypeName, type_name) \
GType type_name##_get_type (void) G_GNUC_CONST; \
G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module); \
- static void type_name##_send_files (NautilusSendtoPlugin *plugin, GList *file_list, GAsyncReadyCallback callback, gpointer user_data); \
+ static void type_name##_send_files (NautilusSendtoPlugin *plugin, const char *id, GList *file_list, GAsyncReadyCallback callback, gpointer user_data); \
static gboolean type_name##_supports_mime_types (NautilusSendtoPlugin *plugin, GList *file_list, const char **mime_types); \
static void nautilus_sendto_plugin_iface_init (NautilusSendtoPluginInterface *iface); \
static void type_name##_finalize (GObject *object); \
diff --git a/src/plugins/removable-devices/removable-devices.c b/src/plugins/removable-devices/removable-devices.c
index 78c4ddb..184a46c 100644
--- a/src/plugins/removable-devices/removable-devices.c
+++ b/src/plugins/removable-devices/removable-devices.c
@@ -163,6 +163,7 @@ cb_mount_added (GVolumeMonitor *volume_monitor,
static void
removable_devices_plugin_send_files (NautilusSendtoPlugin *plugin,
+ const char *id,
GList *file_list,
GAsyncReadyCallback callback,
gpointer user_data)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]