Revision 600 src/summaryview.c

summaryview.c (revision 600)
789 789
	}
790 790
	summaryview->filtered = 0;
791 791

  
792
	summaryview->on_button_press = FALSE;
792 793
	summaryview->can_toggle_selection = TRUE;
793 794
	summaryview->on_drag = FALSE;
794 795
	if (summaryview->pressed_path) {
......
1288 1289
			 path, NULL, TRUE, 0.5, 0.0);
1289 1290
	} else {
1290 1291
		gtkut_tree_view_scroll_to_cell
1291
			(GTK_TREE_VIEW(summaryview->treeview), path);
1292
			(GTK_TREE_VIEW(summaryview->treeview), path,
1293
			 !summaryview->on_button_press);
1292 1294
	}
1293 1295

  
1294 1296
	gtk_tree_path_free(path);
......
1310 1312
				 path, NULL, TRUE, 0.5, 0.0);
1311 1313
		else
1312 1314
			gtkut_tree_view_scroll_to_cell
1313
				(GTK_TREE_VIEW(summaryview->treeview), path);
1315
				(GTK_TREE_VIEW(summaryview->treeview), path,
1316
				 FALSE);
1314 1317
		gtk_tree_path_free(path);
1315 1318
	}
1316 1319
}
......
2230 2233
			(GTK_NOTEBOOK(msgview->notebook)) == 0)))
2231 2234
			gtk_widget_grab_focus(summaryview->treeview);
2232 2235
		gtkut_tree_view_scroll_to_cell
2233
			(GTK_TREE_VIEW(summaryview->treeview), path);
2236
			(GTK_TREE_VIEW(summaryview->treeview), path,
2237
			 !summaryview->on_button_press);
2234 2238
		gtk_tree_path_free(path);
2235 2239
	}
2236 2240

  
......
4540 4544
	}
4541 4545

  
4542 4546
	if (event->button == 1) {
4547
		summaryview->on_button_press = TRUE;
4548

  
4543 4549
		if (summary_get_selection_type(summaryview) ==
4544 4550
			SUMMARY_SELECTED_MULTIPLE && is_selected &&
4545 4551
			!mod_pressed) {
......
4588 4594
					 NULL, FALSE);
4589 4595
	}
4590 4596

  
4597
	summaryview->on_button_press = FALSE;
4591 4598
	summaryview->can_toggle_selection = TRUE;
4592 4599
	summaryview->on_drag = FALSE;
4593 4600
	if (summaryview->pressed_path) {

Also available in: Unified diff