Changeset 10648


Ignore:
Timestamp:
May 16, 2010, 3:51:01 PM (8 years ago)
Author:
charles
Message:

(trunk gtk) futz with the filter bar a little bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/filter.c

    r10512 r10648  
    213213    /* skip separator */
    214214    gtk_tree_model_iter_next( model, &top );
    215 
    216     /* update the "public" subtree */
    217     gtk_tree_model_iter_next( model, &top );
    218     gtk_tree_model_iter_children( model, &iter, &top );
    219     category_model_update_count( store, &iter, public );
    220     gtk_tree_model_iter_next( model, &iter );
    221     category_model_update_count( store, &iter, private );
    222 
    223     /* update the "priority" subtree */
    224     gtk_tree_model_iter_next( model, &top );
    225     gtk_tree_model_iter_children( model, &iter, &top );
    226     category_model_update_count( store, &iter, high );
    227     gtk_tree_model_iter_next( model, &iter );
    228     category_model_update_count( store, &iter, normal );
    229     gtk_tree_model_iter_next( model, &iter );
    230     category_model_update_count( store, &iter, low );
    231215
    232216    /* update the "hosts" subtree */
     
    294278    }
    295279
     280    /* update the "public" subtree */
     281    gtk_tree_model_iter_next( model, &top );
     282    gtk_tree_model_iter_children( model, &iter, &top );
     283    category_model_update_count( store, &iter, public );
     284    gtk_tree_model_iter_next( model, &iter );
     285    category_model_update_count( store, &iter, private );
     286
     287    /* update the "priority" subtree */
     288    gtk_tree_model_iter_next( model, &top );
     289    gtk_tree_model_iter_children( model, &iter, &top );
     290    category_model_update_count( store, &iter, high );
     291    gtk_tree_model_iter_next( model, &iter );
     292    category_model_update_count( store, &iter, normal );
     293    gtk_tree_model_iter_next( model, &iter );
     294    category_model_update_count( store, &iter, low );
     295
    296296    /* cleanup */
    297297    g_ptr_array_foreach( hosts, (GFunc)g_free, NULL );
     
    319319    gtk_tree_store_insert_with_values( store, NULL, NULL, -1,
    320320        CAT_FILTER_COL_TYPE, CAT_FILTER_TYPE_SEPARATOR,
     321        -1 );
     322
     323    gtk_tree_store_insert_with_values( store, &iter, NULL, -1,
     324        CAT_FILTER_COL_NAME, _( "Trackers" ),
     325        CAT_FILTER_COL_COUNT, invisible_number,
     326        CAT_FILTER_COL_TYPE, CAT_FILTER_TYPE_PARENT,
    321327        -1 );
    322328
     
    353359        -1 );
    354360
    355     gtk_tree_store_insert_with_values( store, &iter, NULL, -1,
    356         CAT_FILTER_COL_NAME, _( "Trackers" ),
    357         CAT_FILTER_COL_COUNT, invisible_number,
    358         CAT_FILTER_COL_TYPE, CAT_FILTER_TYPE_PARENT,
    359         -1 );
    360 
    361361    g_object_set_data( G_OBJECT( store ), TORRENT_MODEL_KEY, tmodel );
    362362    category_filter_model_update( store );
     
    989989    h = gtk_hbox_new( FALSE, GUI_PAD_SMALL );
    990990
    991     /* add the category combobox */
    992     str = _( "_Category:" );
    993     w = category;
     991    /* add the activity combobox */
     992    str = _( "_Show:" );
     993    w = activity;
    994994    l = gtk_label_new( NULL );
    995995    gtk_label_set_markup_with_mnemonic( GTK_LABEL( l ), str );
     
    10031003    gtk_box_pack_start( GTK_BOX( h ), w, FALSE, FALSE, 0 );
    10041004
    1005     /* add the activity combobox */
    1006     str = _( "_Activity:" );
    1007     w = activity;
    1008     l = gtk_label_new( NULL );
    1009     gtk_label_set_markup_with_mnemonic( GTK_LABEL( l ), str );
    1010     gtk_label_set_mnemonic_widget( GTK_LABEL( l ), w );
    1011     gtk_box_pack_start( GTK_BOX( h ), l, FALSE, FALSE, 0 );
     1005    /* add the category combobox */
     1006    w = category;
    10121007    gtk_box_pack_start( GTK_BOX( h ), w, TRUE, TRUE, 0 );
    10131008
Note: See TracChangeset for help on using the changeset viewer.