aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-06-12 06:26:59 +0800
committerChris Lahey <clahey@src.gnome.org>2002-06-12 06:26:59 +0800
commit8ed89eea97303f2e95c04fd89dc81ec093e4bd8a (patch)
tree85962ce162f15e55c3c908eab841e645ffe159f5 /addressbook
parent0469ab8effe8141f539cc410cbf7bb7746651588 (diff)
downloadgsoc2013-evolution-8ed89eea97303f2e95c04fd89dc81ec093e4bd8a.tar.gz
gsoc2013-evolution-8ed89eea97303f2e95c04fd89dc81ec093e4bd8a.tar.zst
gsoc2013-evolution-8ed89eea97303f2e95c04fd89dc81ec093e4bd8a.zip
Made double clicking on read only folders not do anything.
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. svn path=/trunk/; revision=17171
Diffstat (limited to 'addressbook')
-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: