aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-04-24 14:46:33 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-04-24 14:46:33 +0800
commit321d929aba20d12acf6243e2283eca74de93af94 (patch)
tree56a6efdab8233c137f03339e5593955c68dcf84a
parented5a1a630e0e39938d1ca74b8772ada952ab4363 (diff)
downloadgsoc2013-evolution-321d929aba20d12acf6243e2283eca74de93af94.tar
gsoc2013-evolution-321d929aba20d12acf6243e2283eca74de93af94.tar.gz
gsoc2013-evolution-321d929aba20d12acf6243e2283eca74de93af94.tar.bz2
gsoc2013-evolution-321d929aba20d12acf6243e2283eca74de93af94.tar.lz
gsoc2013-evolution-321d929aba20d12acf6243e2283eca74de93af94.tar.xz
gsoc2013-evolution-321d929aba20d12acf6243e2283eca74de93af94.tar.zst
gsoc2013-evolution-321d929aba20d12acf6243e2283eca74de93af94.zip
Added ENameSelectorList support.
svn path=/trunk/; revision=31875
-rw-r--r--composer/ChangeLog9
-rw-r--r--composer/e-msg-composer-hdrs.c23
2 files changed, 26 insertions, 6 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index cf4c370720..cc5a5229bc 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,12 @@
+2006-04-24 Srinivasa Ragavan <sragavan@novell.com>
+
+ Adding support for ENameSelectorList in composer. It is a enhanced
+ version of Name Selector, which provides a list view to the entry
+ data.
+ * e-msg-composer-hdrs.c: (create_addressbook_entry),
+ (header_new_recipient), (attach_couple): Added ENameSelectorList to
+ composer.
+
2006-04-05 Simon Zheng <simon.zheng@sun.com>
** Fixes bug #333213
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c
index 7c1a631ee1..1a875e0df5 100644
--- a/composer/e-msg-composer-hdrs.c
+++ b/composer/e-msg-composer-hdrs.c
@@ -38,6 +38,7 @@
#include <libgnome/gnome-i18n.h>
#include <libedataserverui/e-name-selector.h>
#include <libedataserverui/e-name-selector-entry.h>
+#include <libedataserverui/e-name-selector-list.h>
#include "Composer.h"
@@ -55,6 +56,7 @@
#include <text/e-entry.h>
#include "e-util/e-error.h"
+#include "e-util/e-icon-factory.h"
#include <camel/camel.h>
#include <camel/camel-store.h>
@@ -476,7 +478,7 @@ create_addressbook_entry (EMsgComposerHdrs *hdrs, const char *name)
name_selector_model = e_name_selector_peek_model (priv->name_selector);
e_name_selector_model_add_section (name_selector_model, name, name, NULL);
- name_selector_entry = e_name_selector_peek_section_entry (priv->name_selector, name);
+ name_selector_entry = (ENameSelectorEntry *)e_name_selector_peek_section_list (priv->name_selector, name);
g_signal_connect (name_selector_entry, "changed",
G_CALLBACK (addressbook_entry_changed), hdrs);
@@ -576,7 +578,8 @@ static EMsgComposerHdrPair
header_new_recipient (EMsgComposerHdrs *hdrs, const char *name, const char *tip)
{
EMsgComposerHdrPair ret;
-
+ GtkWidget *pixmap;
+
ret.label = gtk_button_new_with_mnemonic (name);
GTK_OBJECT_UNSET_FLAGS (ret.label, GTK_CAN_FOCUS);
g_signal_connect_data (ret.label, "clicked",
@@ -680,10 +683,18 @@ attach_couple (EMsgComposerHdrs *hdrs, EMsgComposerHdrPair *pair, int line)
line, line + 1,
GTK_FILL, GTK_FILL, 3, 3);
- gtk_table_attach (GTK_TABLE (hdrs),
- pair->entry, 1, 2,
- line, line + 1,
- GTK_FILL | GTK_EXPAND, 0, 3, 3);
+ if (line == LINE_TO || line == LINE_CC || line == LINE_BCC) {
+ gtk_table_attach (GTK_TABLE (hdrs),
+ pair->entry, 1, 2,
+ line, line + 1,
+ GTK_FILL | GTK_EXPAND, 0, 3, 3);
+ }
+ else {
+ gtk_table_attach (GTK_TABLE (hdrs),
+ pair->entry, 1, 2,
+ line, line + 1,
+ GTK_FILL | GTK_EXPAND, 0, 3, 3);
+ }
}
static void