Changeset 12827


Ignore:
Timestamp:
Sep 1, 2011, 10:49:35 PM (10 years ago)
Author:
jordan
Message:

(trunk) Roll back the right-to-left progressbar behavior added in #4281 -- it confused too many people.

Location:
trunk
Files:
2 edited

Legend:

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

    r12659 r12827  
    660660    g_object_set( p->icon_renderer, "pixbuf", icon, "sensitive", sensitive, NULL );
    661661    gtr_cell_renderer_render( p->icon_renderer, window, widget, &icon_area, flags );
    662     g_object_set( p->progress_renderer, "value", (int)(percentDone*100.0), "text", NULL,
    663         "sensitive", sensitive,
    664 #if GTK_CHECK_VERSION( 3,0,0 )
    665         "inverted", seed,
    666 #else
    667         "orientation", (seed ? GTK_PROGRESS_RIGHT_TO_LEFT : GTK_PROGRESS_LEFT_TO_RIGHT),
    668 #endif
    669         NULL );
     662    g_object_set( p->progress_renderer, "value", (int)(percentDone*100.0), "text", NULL, "sensitive", sensitive, NULL );
    670663    gtr_cell_renderer_render( p->progress_renderer, window, widget, &prog_area, flags );
    671664    g_object_set( p->text_renderer, "text", gstr_stat->str, "scale", SMALL_SCALE, "ellipsize", PANGO_ELLIPSIZE_END, FOREGROUND_COLOR_KEY, &text_color, NULL );
     
    781774    g_object_set( p->text_renderer, "text", gstr_prog->str, "scale", SMALL_SCALE, "weight", PANGO_WEIGHT_NORMAL, NULL );
    782775    gtr_cell_renderer_render( p->text_renderer, window, widget, &prog_area, flags );
    783     g_object_set( p->progress_renderer, "value", (int)(percentDone*100.0), "text", "", "sensitive", sensitive,
    784 #if GTK_CHECK_VERSION( 3,0,0 )
    785         "inverted", seed,
    786 #else
    787         "orientation", (seed ? GTK_PROGRESS_RIGHT_TO_LEFT : GTK_PROGRESS_LEFT_TO_RIGHT),
    788 #endif
    789         NULL );
     776    g_object_set( p->progress_renderer, "value", (int)(percentDone*100.0), "text", "", "sensitive", sensitive, NULL );
    790777    gtr_cell_renderer_render( p->progress_renderer, window, widget, &prct_area, flags );
    791778    g_object_set( p->text_renderer, "text", gstr_stat->str, FOREGROUND_COLOR_KEY, &text_color, NULL );
  • trunk/qt/torrent-delegate.cc

    r12697 r12827  
    331331        const int scaledProgress = invertedRatio * (myProgressBarStyle->maximum - myProgressBarStyle->minimum);
    332332        myProgressBarStyle->progress = myProgressBarStyle->minimum + scaledProgress;
    333         myProgressBarStyle->direction = (option.direction == Qt::RightToLeft ? Qt::LeftToRight : Qt::RightToLeft);
    334333    }
    335334    else
Note: See TracChangeset for help on using the changeset viewer.