(trunk gtk) #2337: GTK+ Tree view columns in the files dialog should be resizable. Thanks to lethalman for the patch

This commit is contained in:
Charles Kerr 2009-08-15 21:14:44 +00:00
parent 37a4a5c68e
commit e2744cc376
2 changed files with 1 additions and 3 deletions

View File

@ -692,7 +692,6 @@ file_list_new( TrCore * core, int torrentId )
/* create the view */
view = gtk_tree_view_new( );
tree_view = GTK_TREE_VIEW( view );
gtk_tree_view_set_fixed_height_mode( tree_view, TRUE );
gtk_tree_view_set_rules_hint( tree_view, TRUE );
gtk_container_set_border_width( GTK_CONTAINER( view ), GUI_PAD_BIG );
g_signal_connect( view, "button-press-event",
@ -713,7 +712,7 @@ file_list_new( TrCore * core, int torrentId )
"expand", TRUE,
"title", _( "File" ),
NULL ) );
gtk_tree_view_column_set_sizing( col, GTK_TREE_VIEW_COLUMN_FIXED );
gtk_tree_view_column_set_resizable( col, TRUE );
rend = gtk_cell_renderer_pixbuf_new( );
gtk_tree_view_column_pack_start( col, rend, FALSE );
gtk_tree_view_column_add_attribute( col, rend, "pixbuf", FC_ICON );

View File

@ -432,7 +432,6 @@ on_tree_view_button_released( GtkWidget * view,
{
GtkTreeSelection * selection = gtk_tree_view_get_selection( tv );
gtk_tree_selection_unselect_all ( selection );
return TRUE;
}
return FALSE;