aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-minicard-view.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-04-11 15:50:57 +0800
committerChris Lahey <clahey@src.gnome.org>2001-04-11 15:50:57 +0800
commit9b8230a24c15f594069fec206bd93be86a502b9c (patch)
treee70d3f8697b34b48a9f9375cd404eb0ca4880818 /addressbook/gui/widgets/e-minicard-view.c
parent5c2ab36536714ed22a78d4fa5b45b9bafc58e239 (diff)
downloadgsoc2013-evolution-9b8230a24c15f594069fec206bd93be86a502b9c.tar
gsoc2013-evolution-9b8230a24c15f594069fec206bd93be86a502b9c.tar.gz
gsoc2013-evolution-9b8230a24c15f594069fec206bd93be86a502b9c.tar.bz2
gsoc2013-evolution-9b8230a24c15f594069fec206bd93be86a502b9c.tar.lz
gsoc2013-evolution-9b8230a24c15f594069fec206bd93be86a502b9c.tar.xz
gsoc2013-evolution-9b8230a24c15f594069fec206bd93be86a502b9c.tar.zst
gsoc2013-evolution-9b8230a24c15f594069fec206bd93be86a502b9c.zip
Added E_CARD_SIMPLE_FIELD_LAST_SIMPLE_STRING.
2001-04-11 Christopher James Lahey <clahey@ximian.com> * backend/ebook/e-card-simple.h: Added E_CARD_SIMPLE_FIELD_LAST_SIMPLE_STRING. * gui/component/addressbook-component.c (accepted_dnd_types): Fixed a warning here. * gui/widgets/e-addressbook-model.c: Modified this to have more columns, but not let them be edited if they're not a simple string. * gui/widgets/e-minicard-view.c (e_minicard_view_init): Fixed a warning and a memory leak here. svn path=/trunk/; revision=9230
Diffstat (limited to 'addressbook/gui/widgets/e-minicard-view.c')
-rw-r--r--addressbook/gui/widgets/e-minicard-view.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/addressbook/gui/widgets/e-minicard-view.c b/addressbook/gui/widgets/e-minicard-view.c
index caa7c729d4..972bbd1c9c 100644
--- a/addressbook/gui/widgets/e-minicard-view.c
+++ b/addressbook/gui/widgets/e-minicard-view.c
@@ -25,6 +25,7 @@
#include <gtk/gtkselection.h>
#include <gtk/gtkdnd.h>
#include <gal/widgets/e-canvas.h>
+#include <gal/widgets/e-unicode.h>
#include <libgnome/gnome-i18n.h>
#include "e-minicard-view.h"
@@ -144,6 +145,7 @@ selection_changed (ESelectionModel *selection, EMinicardView *view)
static void
e_minicard_view_init (EMinicardView *view)
{
+ char *empty_message;
view->book = NULL;
view->query = g_strdup("(contains \"x-evolution-any-field\" \"\")");
view->editable = FALSE;
@@ -160,12 +162,14 @@ e_minicard_view_init (EMinicardView *view)
gtk_signal_connect(GTK_OBJECT(view->selection), "selection_changed",
GTK_SIGNAL_FUNC(selection_changed), view);
-
- gtk_object_set(GTK_OBJECT(view),
- "empty_message",
- e_utf8_from_locale_string(_("\n\nThere are no items to show in this view\n\n"
- "Double-click here to create a new Contact.")),
- NULL);
+
+ empty_message = e_utf8_from_locale_string(_("\n\nThere are no items to show in this view\n\n"
+ "Double-click here to create a new Contact."));
+ gtk_object_set (GTK_OBJECT(view),
+ "empty_message",
+ empty_message,
+ NULL);
+ g_free (empty_message);
E_REFLOW_SORTED(view)->compare_func = (GCompareFunc) e_minicard_compare;
E_REFLOW_SORTED(view)->string_func = (EReflowStringFunc) e_minicard_get_card_id;