Changeset 5048
- Timestamp:
- Feb 16, 2008, 7:14:25 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gtk/torrent-cell-renderer.c
r5033 r5048 404 404 const GdkRectangle * area ) 405 405 { 406 const gboolean rtl = gtk_widget_get_direction( widget ) == GTK_TEXT_DIR_RTL; 406 407 #if 1 407 408 const double verified = torStat->haveValid / (double)info->totalSize; … … 430 431 || torStat->status == TR_STATUS_CHECK_WAIT; 431 432 432 int x = area->x;433 int x = rtl ? area->x + area->width : area->x; 433 434 int w = 0; 434 435 GdkGC * gc = gdk_gc_new( drawable ); … … 443 444 else 444 445 colors = self->priv->color_seeding; 445 rect.x = x;446 446 rect.width = w; 447 rect.x = rtl ? x-w : x; 447 448 fillRect( self, gc, drawable, &rect, colors, 2 ); 448 x += w;449 x += rtl ? -w : w; 449 450 } 450 451 … … 452 453 const GdkColor * colors = isActive ? self->priv->color_verifying 453 454 : self->priv->color_paused; 454 rect.x = x;455 455 rect.width = w; 456 rect.x = rtl ? x-w : x; 456 457 fillRect( self, gc, drawable, &rect, colors, 2 ); 457 x += w;458 x += rtl ? -w : w; 458 459 } 459 460 460 461 if(( w = missingWidth )) { 461 rect.x = x;462 462 rect.width = w; 463 rect.x = rtl ? x-w : x; 463 464 fillRect( self, gc, drawable, &rect, self->priv->color_missing, 2 ); 464 x += w;465 x += rtl ? -w : w; 465 466 } 466 467 467 468 if(( w = unwantedWidth )) { 468 rect.x = x;469 469 rect.width = w; 470 rect.x = rtl ? x-w : x; 470 471 fillRect( self, gc, drawable, &rect, self->priv->color_unwanted, 2 ); 471 x += w;472 x += rtl ? -w : w; 472 473 } 473 474 … … 476 477 ? self->priv->color_unavailable 477 478 : self->priv->color_missing; 478 rect.x = x;479 479 rect.width = w; 480 rect.x = rtl ? x-w : x; 480 481 fillRect( self, gc, drawable, &rect, colors, 2 ); 481 x += w;482 x += rtl ? -w : w; 482 483 } 483 484
Note: See TracChangeset
for help on using the changeset viewer.