aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-composer-text-header.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2009-05-22 19:30:53 +0800
committerSrinivasa Ragavan <sragavan@novell.com>2009-05-22 20:13:57 +0800
commit9b0e9dc0aeffd627ce2bdea049cc7c47bb7418f0 (patch)
treef8ef1c6c1d8b2f84ea3e052564bb2f4750da3ad3 /composer/e-composer-text-header.c
parent634b906db04504eb34ad75e2d080753b516a95f5 (diff)
downloadgsoc2013-evolution-9b0e9dc0aeffd627ce2bdea049cc7c47bb7418f0.tar.gz
gsoc2013-evolution-9b0e9dc0aeffd627ce2bdea049cc7c47bb7418f0.tar.zst
gsoc2013-evolution-9b0e9dc0aeffd627ce2bdea049cc7c47bb7418f0.zip
Johnny's composer changes for Anjal.
Diffstat (limited to 'composer/e-composer-text-header.c')
-rw-r--r--composer/e-composer-text-header.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/composer/e-composer-text-header.c b/composer/e-composer-text-header.c
index 2945720c90..e676ef941c 100644
--- a/composer/e-composer-text-header.c
+++ b/composer/e-composer-text-header.c
@@ -1,3 +1,7 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+
+/*Modified for Anjal - Johnny Jacob <jjohnny@novell.com>*/
+
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -21,6 +25,11 @@
#define E_COMPOSER_TEXT_HEADER_GET_ENTRY(header) \
(GTK_ENTRY (E_COMPOSER_HEADER (header)->input_widget))
+struct _EComposerTextHeaderPrivate {
+ GtkLinkButton *linkbtn;
+ guint destination_index;
+};
+
static gpointer parent_class;
static void
@@ -99,19 +108,23 @@ e_composer_text_header_get_type (void)
}
EComposerHeader *
-e_composer_text_header_new_label (const gchar *label)
+e_composer_text_header_new_label (const gchar *label, const gchar *action_label)
{
return g_object_new (
E_TYPE_COMPOSER_TEXT_HEADER, "label", label,
- "button", FALSE, NULL);
+ "button", FALSE, "addaction", action_label && *action_label,
+ "addaction_text", action_label,
+ "visible", action_label == NULL, NULL);
}
EComposerHeader *
-e_composer_text_header_new_button (const gchar *label)
+e_composer_text_header_new_button (const gchar *label, const gchar *action_label)
{
return g_object_new (
E_TYPE_COMPOSER_TEXT_HEADER, "label", label,
- "button", TRUE, NULL);
+ "button", TRUE, "addaction", action_label != NULL,
+ "addaction_text", action_label,
+ "visible", action_label == NULL, NULL);
}
const gchar *