diff options
author | Saleem Abdulrasool <compnerd@gentoo.org> | 2007-01-10 23:37:18 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@gentoo.org> | 2007-01-10 23:37:18 +0000 |
commit | 024046eff0e895cfacf337066f80727edf1e45e2 (patch) | |
tree | ffd762be683143978b53f3cd8527147060fc8a3a /gnome-extra/nautilus-sendto/files | |
parent | Initial import. Original ebuild by Paul Bredbury <brebs@sent.com> and ported... (diff) | |
download | gentoo-2-024046eff0e895cfacf337066f80727edf1e45e2.tar.gz gentoo-2-024046eff0e895cfacf337066f80727edf1e45e2.tar.bz2 gentoo-2-024046eff0e895cfacf337066f80727edf1e45e2.zip |
fixes for a couple of bugs
(Portage version: 2.1.2_rc4-r7)
Diffstat (limited to 'gnome-extra/nautilus-sendto/files')
3 files changed, 115 insertions, 0 deletions
diff --git a/gnome-extra/nautilus-sendto/files/digest-nautilus-sendto-0.8-r1 b/gnome-extra/nautilus-sendto/files/digest-nautilus-sendto-0.8-r1 new file mode 100644 index 000000000000..2b9e6b6cd1f3 --- /dev/null +++ b/gnome-extra/nautilus-sendto/files/digest-nautilus-sendto-0.8-r1 @@ -0,0 +1,3 @@ +MD5 19165c7404c4956efd4366a8ebe3ddfa nautilus-sendto-0.8.tar.bz2 310098 +RMD160 46c76f455e42f449c3a3d379d64face106beb557 nautilus-sendto-0.8.tar.bz2 310098 +SHA256 b046c9993029a0e5cc3976252420e5ba1413fa7174541a10815222a41c522c73 nautilus-sendto-0.8.tar.bz2 310098 diff --git a/gnome-extra/nautilus-sendto/files/nautilus-sendto-0.8-claws-mail-plugin.patch b/gnome-extra/nautilus-sendto/files/nautilus-sendto-0.8-claws-mail-plugin.patch new file mode 100644 index 000000000000..a9a20a9d4aae --- /dev/null +++ b/gnome-extra/nautilus-sendto/files/nautilus-sendto-0.8-claws-mail-plugin.patch @@ -0,0 +1,73 @@ +Index: src/plugins/sylpheed-claws.c +=================================================================== +--- src/plugins/sylpheed-claws.c (revision 182) ++++ src/plugins/sylpheed-claws.c (working copy) +@@ -27,6 +27,25 @@ + + static GHashTable *hash = NULL; + ++static const gchar *possible_binaries[] = ++{ "claws-mail", ++ "sylpheed-claws-gtk2", ++ "sylpheed-claws", ++ "sylpheed" ++}; ++ ++static gchar *get_claws_command(void) ++{ ++ gchar *cmd = NULL; ++ gint i; ++ ++ for (i = 0; cmd == NULL && i < G_N_ELEMENTS(possible_binaries); i++) { ++ cmd = g_find_program_in_path (possible_binaries[i]); ++ } ++ ++ return cmd; ++} ++ + static + gboolean init (NstPlugin *plugin) + { +@@ -35,16 +54,13 @@ + printf ("Init sylpheed-claws plugin\n"); + hash = g_hash_table_new (g_str_hash, g_str_equal); + +- sc_cmd = g_find_program_in_path ("sylpheed-claws-gtk2"); +- if (sc_cmd == NULL){ +- sc_cmd = g_find_program_in_path ("sylpheed-claws"); +- if (sc_cmd == NULL) +- sc_cmd = g_find_program_in_path ("sylpheed"); +- } ++ sc_cmd = get_claws_command(); + + if(sc_cmd == NULL) + return FALSE; + ++ g_free(sc_cmd); ++ + return TRUE; + } + +@@ -80,12 +96,7 @@ + g_string_append_printf (mailto, "%s", send_to); + } + +- sc_cmd = g_find_program_in_path ("sylpheed-claws-gtk2"); +- if (sc_cmd == NULL){ +- sc_cmd = g_find_program_in_path ("sylpheed-claws"); +- if (sc_cmd == NULL) +- sc_cmd = g_find_program_in_path ("sylpheed"); +- } ++ sc_cmd = get_claws_command(); + + if(sc_cmd == NULL) + return FALSE; +@@ -116,7 +127,7 @@ + NstPluginInfo plugin_info = { + "stock_mail", + "sylpheed-claws", +- N_("Email (Sylpheed-Claws)"), ++ N_("Email (Claws Mail)"), + FALSE, + init, + get_contacts_widget, diff --git a/gnome-extra/nautilus-sendto/files/nautilus-sendto-0.8-thunderbird-binaries.patch b/gnome-extra/nautilus-sendto/files/nautilus-sendto-0.8-thunderbird-binaries.patch new file mode 100644 index 000000000000..a2e2c926f2f9 --- /dev/null +++ b/gnome-extra/nautilus-sendto/files/nautilus-sendto-0.8-thunderbird-binaries.patch @@ -0,0 +1,39 @@ +--- src/plugins/thunderbird.c 2007-01-10 17:04:06.000000000 -0600 ++++ src/plugins/thunderbird.c 2007-01-10 17:09:02.000000000 -0600 +@@ -27,6 +27,23 @@ + + static GHashTable *hash = NULL; + ++static const gchar const *possible_binaries[] = ++{ ++ "thunderbird", ++ "mozilla-thunderbird", ++}; ++ ++static gchar *get_thunderbird_command(void) ++{ ++ gchar *cmd = NULL; ++ gint i; ++ ++ for (i = 0; cmd == NULL && i < G_N_ELEMENTS(possible_binaries); i++) ++ cmd = g_find_program_in_path(possible_binaries[i]); ++ ++ return cmd; ++} ++ + static + gboolean init (NstPlugin *plugin) + { +@@ -35,9 +52,11 @@ + printf ("Init thunderbird plugin\n"); + hash = g_hash_table_new (g_str_hash, g_str_equal); + +- t_cmd = g_find_program_in_path ("mozilla-thunderbird"); ++ t_cmd = get_thunderbird_command(); ++ + if (t_cmd == NULL) + return FALSE; ++ + return TRUE; + } + |