* src/textview.c
add 'Copy' to contextual menu on emails
+2005-02-12 [paul] 1.0.1cvs4.4
+
+ * src/textview.c
+ add 'Copy' to contextual menu on emails
+
2005-02-11 [colin] 1.0.1cvs4.3
* src/compose.c
2005-02-11 [colin] 1.0.1cvs4.3
* src/compose.c
( cvs diff -u -r 1.396.2.21 -r 1.396.2.22 ChangeLog; cvs diff -u -r 1.2504.2.47 -r 1.2504.2.48 ChangeLog.claws; cvs diff -u -r 1.391.2.21 -r 1.391.2.22 ChangeLog.jp; cvs diff -u -r 1.654.2.404 -r 1.654.2.405 configure.ac; cvs diff -u -r 1.382.2.97 -r 1.382.2.98 src/compose.c; ) > 1.0.1cvs4.1.patchset
( cvs diff -u -r 1.6.2.3 -r 1.6.2.4 po/Makefile.in.in; ) > 1.0.1cvs4.2.patchset
( cvs diff -u -r 1.382.2.98 -r 1.382.2.99 src/compose.c; ) > 1.0.1cvs4.3.patchset
( cvs diff -u -r 1.396.2.21 -r 1.396.2.22 ChangeLog; cvs diff -u -r 1.2504.2.47 -r 1.2504.2.48 ChangeLog.claws; cvs diff -u -r 1.391.2.21 -r 1.391.2.22 ChangeLog.jp; cvs diff -u -r 1.654.2.404 -r 1.654.2.405 configure.ac; cvs diff -u -r 1.382.2.97 -r 1.382.2.98 src/compose.c; ) > 1.0.1cvs4.1.patchset
( cvs diff -u -r 1.6.2.3 -r 1.6.2.4 po/Makefile.in.in; ) > 1.0.1cvs4.2.patchset
( cvs diff -u -r 1.382.2.98 -r 1.382.2.99 src/compose.c; ) > 1.0.1cvs4.3.patchset
+( cvs diff -u -r 1.96.2.44 -r 1.96.2.45 src/textview.c; ) > 1.0.1cvs4.4.patchset
BINARY_AGE=0
EXTRA_VERSION=4
EXTRA_RELEASE=
BINARY_AGE=0
EXTRA_VERSION=4
EXTRA_RELEASE=
if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
static void mail_to_uri_cb (TextView *textview,
guint action,
void *data);
static void mail_to_uri_cb (TextView *textview,
guint action,
void *data);
+static void copy_mail_to_uri_cb (TextView *textview,
+ guint action,
+ void *data);
static GtkItemFactoryEntry textview_link_popup_entries[] =
{
static GtkItemFactoryEntry textview_link_popup_entries[] =
{
{
{N_("/_Add to addressbook"), NULL, add_uri_to_addrbook_cb, 0, NULL},
{N_("/_Email"), NULL, mail_to_uri_cb, 0, NULL},
{
{N_("/_Add to addressbook"), NULL, add_uri_to_addrbook_cb, 0, NULL},
{N_("/_Email"), NULL, mail_to_uri_cb, 0, NULL},
+ {N_("/_Copy"), NULL, copy_mail_to_uri_cb, 0, NULL},
compose_new(account, uri->uri + 7, NULL);
}
compose_new(account, uri->uri + 7, NULL);
}
+static void copy_mail_to_uri_cb (TextView *textview, guint action, void *data)
+{
+ gchar *fromaddress;
+ RemoteURI *uri = g_object_get_data(G_OBJECT(textview->mail_popup_menu),
+ "menu_button");
+ if (uri == NULL)
+ return;
+
+ fromaddress = g_strdup(uri->uri + 7);
+
+ gtk_clipboard_set_text(gtk_clipboard_get(GDK_NONE), fromaddress, -1);
+ g_object_set_data(G_OBJECT(textview->mail_popup_menu), "menu_button",
+ NULL);
+
+ g_free(fromaddress);
+}