aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
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/gui/widgets
parent0469ab8effe8141f539cc410cbf7bb7746651588 (diff)
downloadgsoc2013-evolution-8ed89eea97303f2e95c04fd89dc81ec093e4bd8a.tar
gsoc2013-evolution-8ed89eea97303f2e95c04fd89dc81ec093e4bd8a.tar.gz
gsoc2013-evolution-8ed89eea97303f2e95c04fd89dc81ec093e4bd8a.tar.bz2
gsoc2013-evolution-8ed89eea97303f2e95c04fd89dc81ec093e4bd8a.tar.lz
gsoc2013-evolution-8ed89eea97303f2e95c04fd89dc81ec093e4bd8a.tar.xz
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/gui/widgets')
-rw-r--r--addressbook/gui/widgets/e-minicard-view.c17
1 files changed, 9 insertions, 8 deletions
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: