aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/widgets/e-minicard-view.c17
2 files changed, 14 insertions, 8 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 2015c0af47..3267ea6656 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-11 Christopher James Lahey <clahey@ximian.com>
+
+ * gui/widgets/e-minicard-view.c (e_minicard_view_event): Made
+ double clicking on read only folders not do anything.
+
2002-06-10 Christopher James Lahey <clahey@ximian.com>
* backend/ebook/e-book-util.c (e_book_expand_uri): Made expand_uri
diff --git a/addressbook/gui/widgets/e-minicard-view.c b/addressbook/gui/widgets/e-minicard-view.c
index 8c758bb746..6b596bb754 100644
--- a/addressbook/gui/widgets/e-minicard-view.c
+++ b/addressbook/gui/widgets/e-minicard-view.c
@@ -307,17 +307,18 @@ e_minicard_view_event (GnomeCanvasItem *item, GdkEvent *event)
switch( event->type ) {
case GDK_2BUTTON_PRESS:
- if (((GdkEventButton *)event)->button == 1)
- {
- EBook *book;
+ if (((GdkEventButton *)event)->button == 1) {
gboolean editable;
- gtk_object_get(GTK_OBJECT(view), "book", &book, NULL);
gtk_object_get(GTK_OBJECT(view->adapter), "editable", &editable, NULL);
-
- g_assert (E_IS_BOOK (book));
-
- e_addressbook_show_contact_editor (book, e_card_new(""), TRUE, editable);
+
+ if (editable) {
+ EBook *book;
+ gtk_object_get(GTK_OBJECT(view), "book", &book, NULL);
+
+ if (book && E_IS_BOOK (book))
+ e_addressbook_show_contact_editor (book, e_card_new(""), TRUE, editable);
+ }
return TRUE;
}
case GDK_BUTTON_PRESS: