aboutsummaryrefslogtreecommitdiffstats
path: root/nautilus-sendto-plugin
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-07-08 17:32:20 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-07-08 17:40:31 +0800
commit6b1d4251dc32cf7c75871002a1f8163af9775f65 (patch)
tree6eaaae23513675cb51585d0ef2c0dbe9815d138d /nautilus-sendto-plugin
parent166785e324a397f3b1444820102a41413041d76d (diff)
downloadgsoc2013-empathy-6b1d4251dc32cf7c75871002a1f8163af9775f65.tar
gsoc2013-empathy-6b1d4251dc32cf7c75871002a1f8163af9775f65.tar.gz
gsoc2013-empathy-6b1d4251dc32cf7c75871002a1f8163af9775f65.tar.bz2
gsoc2013-empathy-6b1d4251dc32cf7c75871002a1f8163af9775f65.tar.lz
gsoc2013-empathy-6b1d4251dc32cf7c75871002a1f8163af9775f65.tar.xz
gsoc2013-empathy-6b1d4251dc32cf7c75871002a1f8163af9775f65.tar.zst
gsoc2013-empathy-6b1d4251dc32cf7c75871002a1f8163af9775f65.zip
Build with latest NST when using GTK3 and port to new API (#623199)
Diffstat (limited to 'nautilus-sendto-plugin')
-rw-r--r--nautilus-sendto-plugin/empathy-nautilus-sendto.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/nautilus-sendto-plugin/empathy-nautilus-sendto.c b/nautilus-sendto-plugin/empathy-nautilus-sendto.c
index 503e51808..346624aff 100644
--- a/nautilus-sendto-plugin/empathy-nautilus-sendto.c
+++ b/nautilus-sendto-plugin/empathy-nautilus-sendto.c
@@ -235,6 +235,8 @@ destroy (NstPlugin *plugin)
return TRUE;
}
+/* Legacy from old versions (< 2.90.0) */
+#ifdef HAVE_OLD_NST
static
NstPluginInfo plugin_info = {
"im",
@@ -249,6 +251,21 @@ NstPluginInfo plugin_info = {
send_files,
destroy
};
+#else
+static
+NstPluginInfo plugin_info = {
+ "im",
+ "empathy",
+ N_("Instant Message (Empathy)"),
+ GETTEXT_PACKAGE,
+ NAUTILUS_CAPS_NONE,
+ init,
+ get_contacts_widget,
+ validate_destination,
+ send_files,
+ destroy
+};
+#endif
NST_INIT_PLUGIN (plugin_info)