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
committerMatthew Barnes <mbarnes@redhat.com>2009-05-24 22:12:26 +0800
commitc0b6183c73fc170913bba39e65794af3f596e30e (patch)
tree324e54cabe50fcbff2fd76ad51b6fbcc7f6f7598 /composer/e-composer-text-header.c
parent2ea8d8f1930bdc7f30e8556d6abeca33eb263af6 (diff)
downloadgsoc2013-evolution-c0b6183c73fc170913bba39e65794af3f596e30e.tar
gsoc2013-evolution-c0b6183c73fc170913bba39e65794af3f596e30e.tar.gz
gsoc2013-evolution-c0b6183c73fc170913bba39e65794af3f596e30e.tar.bz2
gsoc2013-evolution-c0b6183c73fc170913bba39e65794af3f596e30e.tar.lz
gsoc2013-evolution-c0b6183c73fc170913bba39e65794af3f596e30e.tar.xz
gsoc2013-evolution-c0b6183c73fc170913bba39e65794af3f596e30e.tar.zst
gsoc2013-evolution-c0b6183c73fc170913bba39e65794af3f596e30e.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 *