After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 596075 - Add nautilus-sendto plugin
Add nautilus-sendto plugin
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2009-09-23 13:19 UTC by Bastien Nocera
Modified: 2009-09-24 14:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add nautilus-sendto plugin (11.53 KB, patch)
2009-09-23 13:19 UTC, Bastien Nocera
reviewed Details | Review
Add nautilus-sendto plugin (10.86 KB, patch)
2009-09-23 18:36 UTC, Bastien Nocera
none Details | Review
Add nautilus-sendto plugin (10.75 KB, patch)
2009-09-24 13:55 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2009-09-23 13:19:00 UTC
As nautilus-sendto now exports its plugin API.
Comment 1 Bastien Nocera 2009-09-23 13:19:02 UTC
Created attachment 143788 [details] [review]
Add nautilus-sendto plugin
Comment 2 Cosimo Cecchi 2009-09-23 18:09:04 UTC
Comment on attachment 143788 [details] [review]
Add nautilus-sendto plugin

Hi Bastien, thanks for the patch.

>+NAUTILUS_SENDTO_REQUIRED=2.28.0

>+   PKG_CHECK_MODULES(NST,
>+   [
>+      nautilus-sendto >= $NAUTILUS_SENDTO_REQUIRED
>+   ], have_nst="yes", have_nst="no")

Shouldn't this be > 2.28.0? It doesn't work with 2.28.0, right?

>+INCLUDES =					\
>+	-I$(top_srcdir)/libempathy		\
>+	-I$(top_builddir)			\
>+	-DLOCALEDIR=\""$(datadir)/locale"\"	\
>+	$(NST_CFLAGS)				\

Where's NST_CFLAGS/NST_LIBS declared? Also, I think you could also include just $(top_srcdir) in the INCLUDES section (removing $(top_srcdir)/libempathy and $(top_builddir) and add libempathy.la as well to libnstempathy_la_LIBADD, like we do for the other submodules (megaphone applet, ...).

Finally, do you have other languages with the Empathy plugin strings translated in the n-s-t git tree? If so, it would be great to import those as well.
Comment 3 Bastien Nocera 2009-09-23 18:32:11 UTC
(In reply to comment #2)
> (From update of attachment 143788 [details] [review])
> Hi Bastien, thanks for the patch.
> 
> >+NAUTILUS_SENDTO_REQUIRED=2.28.0
> 
> >+   PKG_CHECK_MODULES(NST,
> >+   [
> >+      nautilus-sendto >= $NAUTILUS_SENDTO_REQUIRED
> >+   ], have_nst="yes", have_nst="no")
> 
> Shouldn't this be > 2.28.0? It doesn't work with 2.28.0, right?

There's no nautilus-sendto pkg-config file for that version, so it doesn't matter... I'll update the req when I commit (would need to bump it in nautilus-sendto).

> >+INCLUDES =					\
> >+	-I$(top_srcdir)/libempathy		\
> >+	-I$(top_builddir)			\
> >+	-DLOCALEDIR=\""$(datadir)/locale"\"	\
> >+	$(NST_CFLAGS)				\
> 
> Where's NST_CFLAGS/NST_LIBS declared?

the PKG_CHECK_MODULES above does that.

> Also, I think you could also include just
> $(top_srcdir) in the INCLUDES section (removing $(top_srcdir)/libempathy and
> $(top_builddir) and add libempathy.la as well to libnstempathy_la_LIBADD, like
> we do for the other submodules (megaphone applet, ...).

FWIW, libempathy.la is already dragged in by libempathy-gtk

> Finally, do you have other languages with the Empathy plugin strings translated
> in the n-s-t git tree? If so, it would be great to import those as well.

This should really be in the commit. I'd merge the translations in another commit.
Comment 4 Bastien Nocera 2009-09-23 18:36:41 UTC
Created attachment 143821 [details] [review]
Add nautilus-sendto plugin

As nautilus-sendto now exports its plugin API.
Comment 5 Xavier Claessens 2009-09-24 07:22:39 UTC
I don't understand why you need that:
+  bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");

empathy_gtk_init() calls empathy_init() which does that already. It doesn't work?
Comment 6 Bastien Nocera 2009-09-24 13:55:14 UTC
Created attachment 143909 [details] [review]
Add nautilus-sendto plugin

As nautilus-sendto now exports its plugin API.
Comment 7 Bastien Nocera 2009-09-24 14:10:35 UTC
Attachment 143909 [details] pushed as 0cd0ad2 - Add nautilus-sendto plugin