Back out Ian Spence's patch from bug 417695 in order to see if it is the cause of the Tp2 regression on Linux.

This commit is contained in:
reed@reedloden.com 2008-02-23 16:54:57 -08:00
Родитель 12a72e4043
Коммит b974d86c40
1 изменённых файлов: 7 добавлений и 33 удалений

Просмотреть файл

@ -491,42 +491,16 @@ static gint
ensure_tree_header_cell_widget()
{
if(!gTreeHeaderCellWidget) {
/*
* Some GTK engines paint the first and last cell
* of a TreeView header with a highlight.
* Since we do not know where our widget will be relative
* to the other buttons in the TreeView header, we must
* paint it as a button that is between two others,
* thus ensuring it is neither the first or last button
* in the header.
* GTK doesn't give us a way to do this explicitly,
* so we must paint with a button that is between two
* others.
*/
GtkTreeViewColumn* firstTreeViewColumn;
GtkTreeViewColumn* middleTreeViewColumn;
GtkTreeViewColumn* lastTreeViewColumn;
GtkTreeViewColumn* treeViewColumn;
ensure_tree_view_widget();
/* Create and append our three columns */
firstTreeViewColumn = gtk_tree_view_column_new();
gtk_tree_view_column_set_title(firstTreeViewColumn, "M");
gtk_tree_view_append_column(GTK_TREE_VIEW(gTreeViewWidget), firstTreeViewColumn);
treeViewColumn = gtk_tree_view_column_new();
gtk_tree_view_column_set_title(treeViewColumn, "M");
middleTreeViewColumn = gtk_tree_view_column_new();
gtk_tree_view_column_set_title(middleTreeViewColumn, "M");
gtk_tree_view_append_column(GTK_TREE_VIEW(gTreeViewWidget), middleTreeViewColumn);
lastTreeViewColumn = gtk_tree_view_column_new();
gtk_tree_view_column_set_title(lastTreeViewColumn, "M");
gtk_tree_view_append_column(GTK_TREE_VIEW(gTreeViewWidget), lastTreeViewColumn);
/* Use the middle column's header for our button */
gTreeHeaderCellWidget = middleTreeViewColumn->button;
gtk_tree_view_column_set_sort_indicator(middleTreeViewColumn, TRUE);
gTreeHeaderSortArrowWidget = middleTreeViewColumn->arrow;
gtk_tree_view_append_column(GTK_TREE_VIEW(gTreeViewWidget), treeViewColumn);
gTreeHeaderCellWidget = treeViewColumn->button;
gtk_tree_view_column_set_sort_indicator(treeViewColumn, TRUE);
gTreeHeaderSortArrowWidget = treeViewColumn->arrow;
}
return MOZ_GTK_SUCCESS;
}