aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorSushma Rai <rsushma@src.gnome.org>2004-11-27 12:39:31 +0800
committerSushma Rai <rsushma@src.gnome.org>2004-11-27 12:39:31 +0800
commiteef595a9ceb4d1b5ce063ce40e8b11b71878628a (patch)
tree3d19b87a3042695530a2b262a030283ae05f5e89 /addressbook
parentff94893edeabb948c3868f5cfb54d171b0cfcc0c (diff)
downloadgsoc2013-evolution-eef595a9ceb4d1b5ce063ce40e8b11b71878628a.tar
gsoc2013-evolution-eef595a9ceb4d1b5ce063ce40e8b11b71878628a.tar.gz
gsoc2013-evolution-eef595a9ceb4d1b5ce063ce40e8b11b71878628a.tar.bz2
gsoc2013-evolution-eef595a9ceb4d1b5ce063ce40e8b11b71878628a.tar.lz
gsoc2013-evolution-eef595a9ceb4d1b5ce063ce40e8b11b71878628a.tar.xz
gsoc2013-evolution-eef595a9ceb4d1b5ce063ce40e8b11b71878628a.tar.zst
gsoc2013-evolution-eef595a9ceb4d1b5ce063ce40e8b11b71878628a.zip
Setting addressbook empty messages based on the type of addressbook.
svn path=/trunk/; revision=28004
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/gui/widgets/e-minicard-view.c26
2 files changed, 26 insertions, 6 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index bd2f7ddf78..255c8f8133 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2004-11-27 Sushma Rai <rsushma@novell.com>
+
+ * gui/widgets/e-minicard-view.c (set_empty_message):
+ Checking for the static capability "do-initial-query",
+ and setting the relevent empty addressbook message.
+
2004-11-26 JP Rosevear <jpr@novell.com>
* gui/component/select-names/e-select-names-popup.c
diff --git a/addressbook/gui/widgets/e-minicard-view.c b/addressbook/gui/widgets/e-minicard-view.c
index b5803dc658..e66bb6047a 100644
--- a/addressbook/gui/widgets/e-minicard-view.c
+++ b/addressbook/gui/widgets/e-minicard-view.c
@@ -153,19 +153,33 @@ static void
set_empty_message (EMinicardView *view)
{
char *empty_message;
- gboolean editable = FALSE;
+ gboolean editable = FALSE, perform_initial_query = FALSE;
+ EBook *book;
if (view->adapter) {
g_object_get (view->adapter,
"editable", &editable,
NULL);
+
+ g_object_get (view->adapter, "book", &book, NULL);
+ if (!e_book_check_static_capability (book, "do-initial-query"))
+ perform_initial_query = 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
- empty_message = _("\n\nThere are no items to show in this view.");
+ if (editable) {
+ if (perform_initial_query)
+ empty_message = _("\n\nSearch for the Contact\n\n"
+ "or double-click here to create a new Contact.");
+ else
+ empty_message = _("\n\nThere are no items to show in this view.\n\n"
+ "Double-click here to create a new Contact.");
+ }
+ else {
+ if (perform_initial_query)
+ empty_message = _("\n\nSearch for the Contact.");
+ else
+ empty_message = _("\n\nThere are no items to show in this view.");
+ }
g_object_set (view,
"empty_message", empty_message,