[evolution-patches] UI patch - for GW system address book/GAL
- From: Sushma Rai <rsushma novell com>
- To: "[evolution-patches]" <evolution-patches ximian com>
- Subject: [evolution-patches] UI patch - for GW system address book/GAL
- Date: Thu, 25 Nov 2004 13:38:27 +0530
Hi,
There were couple of mails on the lists, about
Global address list, in Exchange connector
not being intuitive, that one need to search
for contacts and they are not fetched by default.
This patch sets a different message, in such cases.
Thanks,
Sushma.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.1868
diff -u -r1.1868 ChangeLog
--- ChangeLog 25 Nov 2004 07:42:11 -0000 1.1868
+++ ChangeLog 25 Nov 2004 08:09:31 -0000
@@ -1,3 +1,14 @@
+2004-11-25 Sushma Rai <rsushma novell com>
+
+ * gui/widgets/e-addressbook-reflow-adapter.[ch]
+ e_addressbook_reflow_adapter_get_book(): Added new,
+ Which returns EBook.
+
+ * gui/widgets/e-minicard-view.c (set_empty_message):
+ Checking for the static capability "do-initial-query",
+ and setting a message which indicates to search for the
+ contact if it is not set.
+
2004-11-25 Hao Sheng <hao sheng sun com>
* gui/contact-editor/contact-editor.glade:
Index: gui/widgets/e-addressbook-reflow-adapter.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/e-addressbook-reflow-adapter.c,v
retrieving revision 1.31
diff -u -r1.31 e-addressbook-reflow-adapter.c
--- gui/widgets/e-addressbook-reflow-adapter.c 7 Oct 2004 01:33:10 -0000 1.31
+++ gui/widgets/e-addressbook-reflow-adapter.c 25 Nov 2004 08:09:57 -0000
@@ -514,3 +514,11 @@
return eab_model_get_contact (priv->model, index);
}
+
+EBook *
+e_addressbook_reflow_adapter_get_book (EAddressbookReflowAdapter *adapter)
+{
+ EAddressbookReflowAdapterPrivate *priv = adapter->priv;
+
+ return eab_model_get_ebook (priv->model);
+}
Index: gui/widgets/e-addressbook-reflow-adapter.h
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/e-addressbook-reflow-adapter.h,v
retrieving revision 1.6
diff -u -r1.6 e-addressbook-reflow-adapter.h
--- gui/widgets/e-addressbook-reflow-adapter.h 7 Nov 2003 05:51:39 -0000 1.6
+++ gui/widgets/e-addressbook-reflow-adapter.h 25 Nov 2004 08:10:06 -0000
@@ -41,4 +41,5 @@
/* Returns object with ref count of 1. */
EContact *e_addressbook_reflow_adapter_get_contact (EAddressbookReflowAdapter *adapter,
int index);
+EBook *e_addressbook_reflow_adapter_get_book (EAddressbookReflowAdapter *adapter);
#endif /* _E_ADDRESSBOOK_REFLOW_ADAPTER_H_ */
Index: gui/widgets/e-minicard-view.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/e-minicard-view.c,v
retrieving revision 1.66
diff -u -r1.66 e-minicard-view.c
--- gui/widgets/e-minicard-view.c 2 Nov 2004 08:36:05 -0000 1.66
+++ gui/widgets/e-minicard-view.c 25 Nov 2004 08:12:12 -0000
@@ -153,17 +153,24 @@
set_empty_message (EMinicardView *view)
{
char *empty_message;
- gboolean editable = FALSE;
+ gboolean editable = FALSE, system_address_book = FALSE;
+ EBook *book;
if (view->adapter) {
g_object_get (view->adapter,
"editable", &editable,
NULL);
+
+ book = e_addressbook_reflow_adapter_get_book (view->adapter);
+ if (!e_book_check_static_capability (book, "do-initial-query"))
+ system_address_book = TRUE;
}
if (editable)
empty_message = _("\n\nThere are no items to show in this view.\n\n"
"Double-click here to create a new Contact.");
+ else if (system_address_book)
+ empty_message = _("\n\nSearch for the Contact.");
else
empty_message = _("\n\nThere are no items to show in this view.");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]