aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-view.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-02-13 07:49:39 +0800
committerChris Lahey <clahey@src.gnome.org>2002-02-13 07:49:39 +0800
commit2788f38ed6cd4e82a8eda5183242457e145019d1 (patch)
tree7c3dd73c6250660ce083c98a6c1e42bdbab0e61f /addressbook/gui/widgets/e-addressbook-view.c
parentf4d3822695cea3f07e8fb2a40231451884796da3 (diff)
downloadgsoc2013-evolution-2788f38ed6cd4e82a8eda5183242457e145019d1.tar
gsoc2013-evolution-2788f38ed6cd4e82a8eda5183242457e145019d1.tar.gz
gsoc2013-evolution-2788f38ed6cd4e82a8eda5183242457e145019d1.tar.bz2
gsoc2013-evolution-2788f38ed6cd4e82a8eda5183242457e145019d1.tar.lz
gsoc2013-evolution-2788f38ed6cd4e82a8eda5183242457e145019d1.tar.xz
gsoc2013-evolution-2788f38ed6cd4e82a8eda5183242457e145019d1.tar.zst
gsoc2013-evolution-2788f38ed6cd4e82a8eda5183242457e145019d1.zip
Added an argument to get the model.
2002-02-12 Christopher James Lahey <clahey@ximian.com> * gui/widgets/e-addressbook-reflow-adapter.c (addressbook_get_arg): Added an argument to get the model. * gui/widgets/e-addressbook-view.c (writable_status): Don't bother connecting to the writable_status callback on the book, simply rely on the writable_status callback on the addressbook model. * gui/widgets/e-minicard-view.c, gui/widgets/e-minicard-view.h (set_empty_message): Handle the case of a read only view here. svn path=/trunk/; revision=15698
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-view.c')
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index e89aa98691..a7e81d7c5b 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -320,13 +320,10 @@ e_addressbook_view_new (void)
}
static void
-book_writable_cb (EBook *book, gboolean writable, EAddressbookView *eav)
+writable_status (GtkObject *object, gboolean writable, EAddressbookView *eav)
{
eav->editable = writable;
- gtk_object_set (GTK_OBJECT (eav->model),
- "editable", eav->editable,
- NULL);
- writable_status (GTK_OBJECT(book), writable, eav);
+ command_state_change (eav);
}
#ifdef JUST_FOR_TRANSLATORS
@@ -507,9 +504,6 @@ e_addressbook_view_set_arg (GtkObject *object, GtkArg *arg, guint arg_id)
if (GTK_VALUE_OBJECT(*arg)) {
eav->book = E_BOOK(GTK_VALUE_OBJECT(*arg));
gtk_object_ref(GTK_OBJECT(eav->book));
- gtk_signal_connect (GTK_OBJECT (eav->book),
- "writable_status",
- book_writable_cb, eav);
}
else
eav->book = NULL;
@@ -1117,12 +1111,6 @@ stop_state_changed (GtkObject *object, EAddressbookView *eav)
}
static void
-writable_status (GtkObject *object, gboolean writable, EAddressbookView *eav)
-{
- command_state_change (eav);
-}
-
-static void
command_state_change (EAddressbookView *eav)
{
/* Reffing during emission is unnecessary. Gtk automatically refs during an emission. */