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
This commit is contained in:
committed by
Chris Lahey
parent
0469ab8eff
commit
8ed89eea97
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user