Changeset 11601


Ignore:
Timestamp:
Dec 27, 2010, 11:49:45 PM (12 years ago)
Author:
charles
Message:

(trunk gtk) #3847 "GTK+ 3 transition: use accessor functions unstead of direct access" -- use GTK_CELL_RENDERER() macro for casting a TorrentCellRenderer? to a GtkCellRenderer?. Thanks to ijuxda for the suggestion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/torrent-cell-renderer.c

    r11599 r11601  
    400400    name = tr_torrentInfo( tor )->name;
    401401    status = getShortStatusString( tor, st, p->upload_speed_KBps, p->download_speed_KBps );
    402     gtr_cell_renderer_get_padding( &cell->parent, &xpad, &ypad );
     402    gtr_cell_renderer_get_padding( GTK_CELL_RENDERER( cell ), &xpad, &ypad );
    403403
    404404    /* get the idealized cell dimensions */
     
    461461    status = getStatusString( tor, st, p->upload_speed_KBps, p->download_speed_KBps );
    462462    progress = getProgressString( tor, inf, st );
    463     gtr_cell_renderer_get_padding( &cell->parent, &xpad, &ypad );
     463    gtr_cell_renderer_get_padding( GTK_CELL_RENDERER( cell ), &xpad, &ypad );
    464464
    465465    /* get the idealized cell dimensions */
     
    566566    name = tr_torrentInfo( tor )->name;
    567567    status = getShortStatusString( tor, st, p->upload_speed_KBps, p->download_speed_KBps );
    568     gtr_cell_renderer_get_padding( &cell->parent, &xpad, &ypad );
     568    gtr_cell_renderer_get_padding( GTK_CELL_RENDERER( cell ), &xpad, &ypad );
    569569
    570570    fill_area = *background_area;
     
    644644    status = getStatusString( tor, st, p->upload_speed_KBps, p->download_speed_KBps );
    645645    progress = getProgressString( tor, inf, st );
    646     gtr_cell_renderer_get_padding( &cell->parent, &xpad, &ypad );
     646    gtr_cell_renderer_get_padding( GTK_CELL_RENDERER( cell ), &xpad, &ypad );
    647647
    648648    /* get the idealized cell dimensions */
Note: See TracChangeset for help on using the changeset viewer.