aboutsummaryrefslogtreecommitdiff
path: root/src/addressbook.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-08-22 08:15:50 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-08-22 08:15:50 +0000
commit867b9d4c7c1422ddf8ebb2f58c87deaedea1563f (patch)
tree09404adfea7e6891e53df973ccc32937356cc3d1 /src/addressbook.c
parentf2cd5cfc7b9a7d0b95255b63ca1182cc13746c49 (diff)
fixed a bug of addressbook that multiple selection with Ctrl key didn't work with GTK+ 2.6.9.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@497 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/addressbook.c')
-rw-r--r--src/addressbook.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/addressbook.c b/src/addressbook.c
index 6012bdb1..a8c500ac 100644
--- a/src/addressbook.c
+++ b/src/addressbook.c
@@ -1094,6 +1094,7 @@ static void addressbook_tree_selected(GtkCTree *ctree, GtkCTreeNode *node,
AddressDataSource *ds = NULL;
ItemFolder *rootFolder = NULL;
+ if( addrbook.treeSelected == node ) return;
addrbook.treeSelected = node;
addrbook.listSelected = NULL;
addressbook_status_show( "" );
@@ -1247,7 +1248,7 @@ static void addressbook_list_row_selected( GtkCTree *clist, GtkCTreeNode *node,
addrbook.listSelected = node;
obj = gtk_ctree_node_get_row_data( clist, node );
if( obj != NULL ) {
- /* printf( "list select: %d : '%s'\n", obj->type, obj->name ); */
+ /* g_print( "list select: %d : '%s'\n", obj->type, obj->name ); */
addressbook_list_select_add( obj );
}
@@ -1401,7 +1402,7 @@ static gboolean addressbook_tree_button_pressed(GtkWidget *ctree,
event->button, event->time);
}
- return FALSE;
+ return TRUE;
}
static gboolean addressbook_tree_button_released(GtkWidget *ctree,