47 lines
2.2 KiB
Plaintext
47 lines
2.2 KiB
Plaintext
$OpenBSD: patch-gtk_details_c,v 1.11 2009/09/06 15:03:18 naddy Exp $
|
|
--- gtk/details.c.orig Wed Aug 19 03:02:44 2009
|
|
+++ gtk/details.c Thu Aug 20 19:50:21 2009
|
|
@@ -757,14 +757,14 @@ refreshInfo( struct DetailsImpl * di, tr_torrent ** to
|
|
char piecebuf[128];
|
|
tr_strlsize( piecebuf, (uint64_t)pieceSize, sizeof( piecebuf ) );
|
|
g_snprintf( buf, sizeof( buf ),
|
|
- ngettext( "%1$s (%2$'d piece @ %3$s)",
|
|
- "%1$s (%2$'d pieces @ %3$s)", pieces ),
|
|
+ ngettext( "%1$s (%2$d piece @ %3$s)",
|
|
+ "%1$s (%2$d pieces @ %3$s)", pieces ),
|
|
sizebuf, pieces, piecebuf );
|
|
str = buf;
|
|
} else {
|
|
g_snprintf( buf, sizeof( buf ),
|
|
- ngettext( "%1$s (%2$'d piece)",
|
|
- "%1$s (%2$'d pieces)", pieces ),
|
|
+ ngettext( "%1$s (%2$d piece)",
|
|
+ "%1$s (%2$d pieces)", pieces ),
|
|
sizebuf, pieces );
|
|
str = buf;
|
|
}
|
|
@@ -1364,11 +1364,11 @@ refreshPeers( struct DetailsImpl * di, tr_torrent ** t
|
|
leechers = s->leechers;
|
|
completed += s->timesCompleted;
|
|
}
|
|
- g_snprintf( buf, sizeof( buf ), "%'d", seeders );
|
|
+ g_snprintf( buf, sizeof( buf ), "%d", seeders );
|
|
gtk_label_set_text( GTK_LABEL( di->seeders_lb ), buf );
|
|
- g_snprintf( buf, sizeof( buf ), "%'d", leechers );
|
|
+ g_snprintf( buf, sizeof( buf ), "%d", leechers );
|
|
gtk_label_set_text( GTK_LABEL( di->leechers_lb ), buf );
|
|
- g_snprintf( buf, sizeof( buf ), "%'d", completed );
|
|
+ g_snprintf( buf, sizeof( buf ), "%d", completed );
|
|
gtk_label_set_text( GTK_LABEL( di->completed_lb ), buf );
|
|
}
|
|
|
|
@@ -1968,7 +1968,7 @@ torrent_inspector_set_torrents( GtkWidget * w, GSList
|
|
{
|
|
file_list_clear( di->file_list );
|
|
tracker_list_clear( di->tracker_list );
|
|
- g_snprintf( title, sizeof( title ), _( "%'d Torrent Properties" ), len );
|
|
+ g_snprintf( title, sizeof( title ), _( "%d Torrent Properties" ), len );
|
|
}
|
|
|
|
gtk_window_set_title( GTK_WINDOW( w ), title );
|