aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
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/gui
parentff94893edeabb948c3868f5cfb54d171b0cfcc0c (diff)
downloadgsoc2013-evolution-eef595a9ceb4d1b5ce063ce40e8b11b71878628a.tar.gz
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/gui')
-rw-r--r--addressbook/gui/widgets/e-minicard-view.c26
1 files changed, 20 insertions, 6 deletions
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,