aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-composer-text-header.c
diff options
context:
space:
mode:
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 *