Ignore:
Timestamp:
Sep 16, 2008, 4:49:10 PM (13 years ago)
Author:
charles
Message:

(gtk 1.3x) backport #1259 (r6719): "GLib-GObject-WARNING : value "-100" of type gint' is invalid or out of range for property value' of type `gint'"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3x/gtk/torrent-cell-renderer.c

    r6138 r6758  
    454454        if( 1 )
    455455        {
    456             g_object_set( p->progress_renderer, "value", (int)(torStat->percentDone*100.0),
     456            const double percent = MAX( 0.0, torStat->percentDone );
     457            g_object_set( p->progress_renderer, "value", (int)(percent*100.0),
    457458                                                "text", "",
    458459                                                NULL );
Note: See TracChangeset for help on using the changeset viewer.