aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-28 12:47:04 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-28 12:47:04 +0800
commit71db41ef693bb3444cb9b459ef73fb5bdb0d4764 (patch)
tree2efdf42db136980c34afb58d92633786e2ce203a /plugins
parent948235c3d1076dbe6ed2e57a24c16a083bbd9f01 (diff)
downloadgsoc2013-evolution-71db41ef693bb3444cb9b459ef73fb5bdb0d4764.tar
gsoc2013-evolution-71db41ef693bb3444cb9b459ef73fb5bdb0d4764.tar.gz
gsoc2013-evolution-71db41ef693bb3444cb9b459ef73fb5bdb0d4764.tar.bz2
gsoc2013-evolution-71db41ef693bb3444cb9b459ef73fb5bdb0d4764.tar.lz
gsoc2013-evolution-71db41ef693bb3444cb9b459ef73fb5bdb0d4764.tar.xz
gsoc2013-evolution-71db41ef693bb3444cb9b459ef73fb5bdb0d4764.tar.zst
gsoc2013-evolution-71db41ef693bb3444cb9b459ef73fb5bdb0d4764.zip
Get the mailer's URI popup menu working.
Except for "Add to Address Book", which looks like a project unto itself. This also kills off another plugin (copy-tool).
Diffstat (limited to 'plugins')
-rw-r--r--plugins/copy-tool/ChangeLog67
-rw-r--r--plugins/copy-tool/Makefile.am20
-rw-r--r--plugins/copy-tool/copy-tool.c71
-rw-r--r--plugins/copy-tool/org-gnome-copy-tool.eplug.xml24
4 files changed, 0 insertions, 182 deletions
diff --git a/plugins/copy-tool/ChangeLog b/plugins/copy-tool/ChangeLog
deleted file mode 100644
index 5fab320dc8..0000000000
--- a/plugins/copy-tool/ChangeLog
+++ /dev/null
@@ -1,67 +0,0 @@
-2008-08-27 Sankar P <psankar@novell.com>
-
-License Changes
-
- * copy-tool.c:
-
-2008-08-12 Bharath Acharya <abharath@novell.com>
-
- * Makefile.am: Use NO_UNDEFINED. Link with more libraries. To generate
- dlls on Windows.
-
-2007-04-02 Sankar P <psankar@novell.com>
-
- * Committed on behalf of Gilles Dartiguelongue <dartigug@esiee.fr>
-
- * org-gnome-copy-tool.eplug.xml:
- Cleanup.
- Fixes part of #301149
-
-2006-05-19 Hiroyuki Ikezoe <poincare@ikezoe.net>
-
- ** Fixes bug #322771
- * copy-tool.c: Use GtkClipboard instead of GtkInvisible.
-
-2005-11-30 Simon Zheng <Simon.Zheng@Sun.Com>
-
- Fix for 322733.
-
- * copy-tool.c: (ct_selection_get): Removed printf() statement
- in order to avoid printing NULL point.
- (org_gnome_copy_tool_copy_address): Removed printf() statement.
- (ct_selection_clear_event): Removed printf() statement.
-
-2005-05-11 Not Zed <NotZed@Ximian.com>
-
- * Makefile.am: added built_sources/cleanfiles.
-
-2005-05-06 Not Zed <NotZed@Ximian.com>
-
- * Makefile.am:
- * org-gnome-copy-tool.eplug.xml: s/.in/.xml/ & i18n.
-
-2005-02-24 Björn Torkelsson <torkel@acc.umu.se>
-
- * org-gnome-copy-tool.eplug.in: Added a . to the end of description.
-
-2004-11-03 Not Zed <NotZed@Ximian.com>
-
- * org-gnome-copy-tool.eplug.in: gave it a better name and fixed
- the description and author tags.
-
-2004-11-01 JP Rosevear <jpr@novell.com>
-
- * Makefile.am: dist .eplug.in file
-
-2004-10-28 Not Zed <NotZed@Ximian.com>
-
- * org-gnome-copy-tool.eplug.in: fix folderview popup hook id.
-
-2004-10-21 JP Rosevear <jpr@novell.com>
-
- * org-gnome-copy-tool.eplug.in: s/image/icon/
-
-2004-10-20 Not Zed <NotZed@Ximian.com>
-
- * implemented a copy-utils plugin.
-
diff --git a/plugins/copy-tool/Makefile.am b/plugins/copy-tool/Makefile.am
deleted file mode 100644
index 5f9e3bb463..0000000000
--- a/plugins/copy-tool/Makefile.am
+++ /dev/null
@@ -1,20 +0,0 @@
-INCLUDES = \
- -I$(top_srcdir) \
- $(EVOLUTION_MAIL_CFLAGS)
-
-@EVO_PLUGIN_RULE@
-
-plugin_DATA = org-gnome-copy-tool.eplug
-plugin_LTLIBRARIES = liborg-gnome-copy-tool.la
-
-liborg_gnome_copy_tool_la_SOURCES = copy-tool.c
-liborg_gnome_copy_tool_la_LDFLAGS = -module -avoid-version $(NO_UNDEFINED)
-liborg_gnome_copy_tool_la_LIBADD = \
- $(EVOLUTION_MAIL_LIBS)
-
-EXTRA_DIST = org-gnome-copy-tool.eplug.xml
-
-BUILT_SOURCES = $(plugin_DATA)
-CLEANFILES = $(BUILT_SOURCES)
-
--include $(top_srcdir)/git.mk
diff --git a/plugins/copy-tool/copy-tool.c b/plugins/copy-tool/copy-tool.c
deleted file mode 100644
index 769bd00431..0000000000
--- a/plugins/copy-tool/copy-tool.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) version 3.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with the program; if not, see <http://www.gnu.org/licenses/>
- *
- *
- * Authors:
- * Michael Zucchi <notzed@novell.com>
- *
- * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
- *
- */
-
-/* Add 'copy to clipboard' things to various menu's.
-
- Uh, so far only to copy mail addresses from mail content */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <glib/gi18n-lib.h>
-#include <string.h>
-
-#include "mail/em-popup.h"
-
-#include <gtk/gtk.h>
-
-#include "camel/camel-internet-address.h"
-#include "camel/camel-url.h"
-
-void org_gnome_copy_tool_copy_address(gpointer ep, EMPopupTargetURI *t);
-
-void
-org_gnome_copy_tool_copy_address(gpointer ep, EMPopupTargetURI *t)
-{
- if (t->uri) {
- CamelInternetAddress *cia = camel_internet_address_new();
- CamelURL *curl;
- GtkClipboard *clipboard;
- gchar *addr;
- const gchar *tmp;
-
- curl = camel_url_new(t->uri, NULL);
- camel_address_decode((CamelAddress *)cia, curl->path);
- /* should it perhaps use address format? */
- addr = camel_address_encode((CamelAddress *)cia);
- tmp = addr && addr[0] ? addr : t->uri + 7;
-
- clipboard = gtk_clipboard_get (GDK_SELECTION_PRIMARY);
-
- gtk_clipboard_set_text (clipboard, tmp, strlen (tmp));
-
- clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
- gtk_clipboard_set_text (clipboard, tmp, strlen (tmp));
-
- g_free(addr);
- camel_url_free(curl);
- camel_object_unref(cia);
- }
-}
diff --git a/plugins/copy-tool/org-gnome-copy-tool.eplug.xml b/plugins/copy-tool/org-gnome-copy-tool.eplug.xml
deleted file mode 100644
index 3b6a30752d..0000000000
--- a/plugins/copy-tool/org-gnome-copy-tool.eplug.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0"?>
-<e-plugin-list>
- <e-plugin
- type="shlib"
- id="org.gnome.evolution.plugin.copyTool"
- location="@PLUGINDIR@/liborg-gnome-copy-tool@SOEXT@"
- _name="Copy Tool">
- <_description>Copy things to the clipboard.</_description>
- <author name="Michael Zucchi" email="notzed@ximian.com"/>
-
- <!-- hook into the uri popup menu -->
- <hook class="org.gnome.evolution.mail.popup:1.0">
- <menu id="org.gnome.evolution.mail.folderview.popup" target="uri">
- <item
- type="item"
- path="80.test"
- icon="gtk-copy"
- _label="Copy _Email Address"
- visible="mailto"
- activate="org_gnome_copy_tool_copy_address"/>
- </menu>
- </hook>
- </e-plugin>
-</e-plugin-list>