(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:
parent
37a4a5c68e
commit
e2744cc376
|
@ -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 );
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue