mirror of
https://github.com/transmission/transmission
synced 2025-02-04 05:22:40 +00:00
oops, don't use C++-style comments or we'll break on old compilers
This commit is contained in:
parent
c007e68222
commit
66ca0e588e
1 changed files with 23 additions and 23 deletions
|
@ -47,31 +47,31 @@ enum
|
|||
|
||||
enum
|
||||
{
|
||||
FC_STOCK,
|
||||
FC_LABEL,
|
||||
FC_PROG,
|
||||
FC_KEY,
|
||||
FC_INDEX,
|
||||
FC_SIZE,
|
||||
FC_HAVE,
|
||||
FC_PRIORITY,
|
||||
FC_ENABLED,
|
||||
FC_IS_FILE,
|
||||
FC_SUB_SIZE,
|
||||
FC_SUB_HAVE,
|
||||
FC_SUB_STATE,
|
||||
N_FILE_COLS
|
||||
FC_STOCK,
|
||||
FC_LABEL,
|
||||
FC_PROG,
|
||||
FC_KEY,
|
||||
FC_INDEX,
|
||||
FC_SIZE,
|
||||
FC_HAVE,
|
||||
FC_PRIORITY,
|
||||
FC_ENABLED,
|
||||
FC_IS_FILE,
|
||||
FC_SUB_SIZE,
|
||||
FC_SUB_HAVE,
|
||||
FC_SUB_STATE,
|
||||
N_FILE_COLS
|
||||
};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
TrTorrent * gtor;
|
||||
GtkWidget * top;
|
||||
GtkWidget * view;
|
||||
GtkTreeModel * model; /* same object as store, but recast */
|
||||
GtkTreeStore * store; /* same object as model, but recast */
|
||||
tr_file_stat * refresh_file_stat;
|
||||
guint timeout_tag;
|
||||
TrTorrent * gtor;
|
||||
GtkWidget * top;
|
||||
GtkWidget * view;
|
||||
GtkTreeModel * model; /* same object as store, but recast */
|
||||
GtkTreeStore * store; /* same object as model, but recast */
|
||||
tr_file_stat * refresh_file_stat;
|
||||
guint timeout_tag;
|
||||
}
|
||||
FileData;
|
||||
|
||||
|
@ -204,7 +204,7 @@ resetSubForeach( GtkTreeModel * model,
|
|||
GtkTreeIter * iter,
|
||||
gpointer gdata UNUSED )
|
||||
{
|
||||
// set the subs to the lowest values...
|
||||
/* set the subs to the lowest values... */
|
||||
gtk_tree_store_set( GTK_TREE_STORE( model ), iter,
|
||||
FC_SUB_STATE, 0,
|
||||
FC_SUB_SIZE, (uint64_t)0,
|
||||
|
@ -322,7 +322,7 @@ getActiveFilesForeach( GtkTreeModel * model,
|
|||
if( is_active )
|
||||
g_array_append_val( data->array, i );
|
||||
|
||||
return FALSE; /* walk the entire model */
|
||||
return FALSE; /* keep walking */
|
||||
}
|
||||
|
||||
static GArray*
|
||||
|
|
Loading…
Reference in a new issue