Changeset 9694


Ignore:
Timestamp:
Dec 9, 2009, 4:47:02 AM (12 years ago)
Author:
charles
Message:

(trunk gtk) #2650 "hide empty file list in property dialog for multiple torrents" -- fixed in trunk for 1.80

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/details.c

    r9682 r9694  
    9797
    9898    GtkWidget * file_list;
     99    GtkWidget * file_label;
    99100
    100101    GSList * ids;
     
    21522153    gtk_notebook_append_page( GTK_NOTEBOOK( n ), w, l );
    21532154
    2154     w = file_list_new( core, 0 );
    2155     gtk_container_set_border_width( GTK_CONTAINER( w ), GUI_PAD_BIG );
    2156     l = gtk_label_new( _( "Files" ) );
    2157     gtk_notebook_append_page( GTK_NOTEBOOK( n ), w, l );
    2158     di->file_list = w;
     2155    {
     2156        GtkWidget * v = gtk_vbox_new( FALSE, 0 );
     2157        di->file_list = file_list_new( core, 0 );
     2158        di->file_label = gtk_label_new( _( "File listing not available for combined torrent properties" ) );
     2159        gtk_box_pack_start( GTK_BOX( v ), di->file_list, TRUE, TRUE, 0 );
     2160        gtk_box_pack_start( GTK_BOX( v ), di->file_label, TRUE, TRUE, 0 );
     2161        gtk_container_set_border_width( GTK_CONTAINER( v ), GUI_PAD_BIG );
     2162        l = gtk_label_new( _( "Files" ) );
     2163        gtk_notebook_append_page( GTK_NOTEBOOK( n ), v, l );
     2164    }
    21592165
    21602166    w = options_page_new( di );
     
    21892195
    21902196        file_list_set_torrent( di->file_list, id );
     2197        gtk_widget_show( di->file_list );
     2198        gtk_widget_hide( di->file_label );
     2199        di->file_label = gtk_label_new( _( "File listing not available for combined torrent properties" ) );
    21912200    }
    21922201   else
    21932202   {
    21942203        file_list_clear( di->file_list );
     2204        gtk_widget_hide( di->file_list );
     2205        gtk_widget_show( di->file_label );
    21952206        g_snprintf( title, sizeof( title ), _( "%'d Torrent Properties" ), len );
    21962207    }
Note: See TracChangeset for help on using the changeset viewer.